The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Reference will now be made in detail to the present preferred embodiments of the invention, examples of which are illustrated in the accompanying drawing.
In the embodiment, an output circuit can drive a pair of input voltages to an output voltage between +5V to 0V and −5V to 0V only using switches with a voltage tolerance of 5V.
The operation amplifier OP21 is operated under VDDA and VSSA. The operation amplifier OP21 has an inverting input terminal, a non-inverting input terminal and an output terminal. The operation amplifier OP21 receives a positive input voltage INP via the non-inverting input terminal. The positive input voltage INP has a voltage swing between +5V and 0V. The output signal from the output terminal of the operation amplifier OP21 is feedback to the inverting input terminal of the operation amplifier OP21. In other words, the operation amplifier OP21 has a unity gain.
The operation amplifier OP22 is operated under VDDAN and VSSA. The operation amplifier OP22 has an inverting input terminal, a non-inverting input terminal and an output terminal. The operation amplifier OP22 receives a negative input voltage INN via the non-inverting input terminal. The negative input voltage INN has a voltage swing between −5V and 0V. The output signal from the output terminal of the operation amplifier OP22 is feedback to the inverting input terminal of the operation amplifier OP22. In other words, the operation amplifier OP22 has a unity gain.
The inverter INV21 receives and inverts an enable signal ENP into an inverted signal thereof. The inverter INV21 is operated under VDDA and VSSA. The enable signal ENP is further coupled to the transmission gate TM21. The inverted signal of the enable signal ENP output from the inverter INV21 is also coupled to the transmission gate TM21. The enable signal ENP has at least two logic states, positive logic high state (+5V) and logic low state (0V).
The inverter INV22 receives and inverts another enable signal ENN into an inverted signal thereof. The inverter INV22 is operated under VDDAN and VSSA. The enable signal ENN is further coupled to the transmission gate TM22. The inverted signal of the enable signal ENN output from the inverter INV22 is also coupled to the transmission gate TM22. The enable signal ENN has at least two logic states, negative logic high state (−5V) and logic low state (0V).
The transmission gate TM21 receives the output signal from the operation amplifier OP21. The transmission gate TM21 is operated under VDDA and VSSA. The transmission gate TM21 is conducted or non-conducted under control of the enable signal ENP and the inverted signal of the enable signal ENP. When the enable signal ENP is in the positive logic high state, the transmission gate TM21 is conducted. When the enable signal ENP is in the logic low state, the transmission gate TM21 is non-conducted. The transmission gate TM21 generates an output signal PNET to the switches TP21 and TN22. In general, when the transmission gate TM21 is conducted, the output signal PNET from the transmission gate TM21 has the same voltage value as the positive input voltage INP.
The transmission gate TM22 receives the output signal from the operation amplifier OP22. The transmission gate TM22 is operated under VDDAN and VSSA. The transmission gate TM22 is conducted or non-conducted under control of the enable signal ENN and the inverted signal of the enable signal ENN. When the enable signal ENN is in the logic low state, the transmission gate TM22 is conducted. When the enable signal ENN is in the negative logic high state, the transmission gate TM22 is non-conducted. The transmission gate TM21 generates an output signal PNET to the switches TP21 and TN22. The transmission gate TM22 generates an output signal NNET to the switches TN21 and TP22. In general, when the transmission gate TM22 is conducted, the output signal NNET from the transmission gate TM22 has the same voltage value as the negative input voltage INN.
In the embodiment, the switches TP21˜TP22 and TN21˜TN22 are implemented by P-type MOSFETs and N-type MOSFETs, respectively. However, the invention is not limited thereby.
The switch TP21 has a source terminal coupled to the output signal PNET from the transmission gate TM21, a gate terminal receiving a switch control signal SWN and a drain terminal coupled to an output signal SOUT of the output circuit. Further, the bulk terminal of the switch TP21 is coupled to the source terminal of the switch TP21. The switch control signal SWP has at least two logic states, negative logic high state (−1.8V) and logic low state (0V).
The switch TP22 has a source terminal coupled to VSSA, a gate terminal receiving a switch control signal SWNB and a drain terminal coupled to the output signal NNET from the transmission gate TM22. Further, the bulk terminal of the switch TP22 is coupled to the source terminal of the switch TP22. The switch control signal SWNB has at least two logic states, negative logic high state (−5V) and logic low state (0V).
The switch TN21 has a source terminal coupled to the output signal NNET from the transmission gate TM22, a gate terminal receiving a switch control signal SWP and a drain terminal coupled to the output signal SOUT of the output circuit. Further, the bulk terminal of the switch TN21 is coupled to the source terminal of the switch TN21. The switch control signal SWN has at least two logic states, positive logic high state (+1.8V) and logic low state (0V).
The switch TN22 has a source terminal coupled to VSSA, a gate terminal receiving a switch control signal SWPB and a drain terminal coupled to the output signal PNET from the transmission gate TM21. Further, the bulk terminal of the switch TN22 is coupled to the source terminal of the switch TN22. The switch control signal SWPB has at least two logic states, positive logic high state (+5V) and logic low state (0V).
In this embodiment, the positive input voltage INP has a voltage swing between VDDA (+5V) and VSSA (0V) and the negative input voltage INN has a voltage swing between VDDAN (−5V) and VSSA (0V). Further, four scenarios are described below. In scenario A, the positive input voltage INP is between VDDA and 0.5*VDDA, i.e. +5V˜+2.5V. In scenario B, the positive input voltage INP is between 0V and 0.5*VDDA, i.e. 0V˜+2.5V. In scenario C, the negative input voltage INN is between VDDAN and 0.5*VDDAN, i.e. −5V˜−2.5V. In scenario D, the negative input voltage INN is between 0 and 0.5*VDDAN, i.e. 0V˜−2.5V.
Scenario A: INP Between VDDA˜0.5*VDDA
In scenario A, the signals ENP, SWPB, SWP, ENN, SWNB and SWN are positive logic high (+5V), logic low (0V), logic low (0V), negative logic high (−5V), negative logic high (−5V) and logic low (0V), respectively. Therefore, the transmission gate TM21, the switches TP21 and TP22 are turned on; and the transmission gate TM22, the switches TN21 and TN22 are turned off. Because the transmission gate TM21 is turned on, the output signal from the operation amplifier OP21, having the same voltage value as the positive input voltage INP, is passed by the transmission gate TM21 and the output signal PNET from the transmission gate TM21 has the same voltage value as the positive input voltage INP. Because the switch TP21 is turned on, the output signal SOUT has the same voltage value as the output signal PNET. In other words, SOUT=PNET=INP. In scenario A, the reason why the switch TP22 is turned on relies on that, in worst case, if in initial state, the signal NNET has a non-zero negative voltage value, the ON switch TP22 pulls high the signal NNET to 0V. Under scenario A, VSG and VDG of the switches TP21 and TP22 and VGS and VGD of the switches TN21 and TN22 are listed as Table 1.
From Table 1, it is known that, VSG (or VGS) and VDG (or VGD) of anyone of the switches in scenario A is not higher than +5V (or −5V).
Scenario B: INP Between VSSA˜0.5*VDDA
In scenario B, the signals ENP, SWPB, SWP, ENN, SWNB and SWN are positive logic high (+5V), logic low (0V), negative logic high (−1.8V), negative logic high (−5V), negative logic high (−5V) and logic low (0V), respectively. Therefore, the transmission gate TM21, the switches TP21 and TP22 are turned on; and the transmission gate TM22, the switches TN21 and TN22 are turned off. Because the transmission gate TM21 is turned on, the output signal from the operation amplifier OP21, having the same voltage value as the positive input voltage INP, is passed by the transmission gate TM21 and the output signal PNET from the transmission gate TM21 has the same voltage value as the positive input voltage INP. Because the switch TP21 is turned on, the output signal SOUT has the same voltage value as the output signal PNET. In other words, SOUT=PNET=INP. In scenario B, the reason why the switch TP22 is turned on is similar to that in scenario A. In other words, in worst case, if in initial state, the signal NNET has a non-zero negative voltage value, the ON switch TP22 pulls high the signal NNET to 0V. Under scenario B, VSG and VDG of the switches TP21 and TP22 and VGS and VGD of the switches TN21 and TN22 are listed as Table 2.
From Table 2, it is known that, VSG (or VGS) and VDG (or VGD) of anyone of the switches in scenario B is not higher than +5V (or −5V).
Scenario C: INN Between 0.5*VDDAN˜VDDAN
In scenario C, the signals ENP, SWPB, SWP, ENN, SWNB and SWN are logic low (0V), positive logic high (+5V), logic low (0V), logic low (0V), logic low (0V) and logic low (0V), respectively. Therefore, the transmission gate TM21, the switches TP21 and TP22 are turned off; and the transmission gate TM22, the switches TN21 and TN22 are turned on. Because the transmission gate TM22 is turned on, the output signal from the operation amplifier OP22, having the same voltage value as the positive input voltage INN, is passed by the transmission gate TM22 and the output signal NNET from the transmission gate TM22 has the same voltage value as the positive input voltage INN. Because the switch TN21 is turned on, the output signal SOUT has the same voltage value as the output signal NNET. In other words, SOUT=NNET=INN. In scenario C, the reason why the switch TN22 is turned on is similar to that in scenario A. In other words, in worst case, if in initial state, the signal PNET has a non-zero positive voltage value, the ON switch TN22 pulls low the signal PNET to 0V. Under scenario C, VSG and VDG of the switches TP21 and TP22 and VGS and VGD of the switches TN21 and TN22 are listed as Table 3.
From Table 3, it is known that, VSG (or VGS) and VDG (or VGD) of anyone of the switches in scenario C is not higher than +5V (or −5V).
Scenario D: INN Between 0.5*VDDAN˜VSSA
In scenario D, the signals ENP, SWPB, SWP, ENN, SWNB and SWN are logic low (0V), positive logic high (+5V), logic low (0V), logic low (0V), logic low (0V) and positive logic high (+1.8V), respectively. Therefore, the transmission gate TM21, the switches TP21 and TP22 are turned off; and the transmission gate TM22, the switches TN21 and TN22 are turned on. Because the transmission gate TM22 is turned on, the output signal from the operation amplifier OP22, having the same voltage value as the positive input voltage INN, is passed by the transmission gate TM22 and the output signal NNET from the transmission gate TM22 has the same voltage value as the positive input voltage INN. Because the switch TN21 is turned on, the output signal SOUT has the same voltage value as the output signal NNET. In other words, SOUT=NNET=INN. In scenario D, the reason why the switch TN22 is turned on is similar to that in scenario A. In other words, in worst case, if in initial state, the signal PNET has a non-zero positive voltage value, the ON switch TN22 pulls low the signal PNET to 0V. Under scenario D, VSG and VDG of the switches TP21 and TP22 and VGS and VGD of the switches TN21 and TN22 are listed as Table 4.
From Table 4, it is known that, VSG (or VGS) and VDG (or VGD) of anyone of the switches in scenario D is not higher than +5V (or −5V).
From the above description, in any scenario, voltage drop between any two terminals of any of the switches TP21˜TP22 and TN21˜TN22 is not higher than +5V (VDDA) or −5V (VDDAN). Therefore, in the embodiment, the output signal SOUT from the output circuit has a voltage swing of +5V˜−5V by using switches having low voltage tolerance, for example, only 5V tolerance. A switch having low voltage tolerance has a reduced circuit layout. Thus, the output circuit in the embodiment has a reduced circuit area.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing descriptions, it is intended that the present invention covers modifications and variations of this invention if they fall within the scope of the following claims and their equivalents.