Comparing circuit and comparing module with hysteresis
10924089 ยท 2021-02-16
Assignee
Inventors
Cpc classification
International classification
Abstract
A comparing circuit and a comparing module with hysteresis are provided. The comparing module includes a first resistor, a second resistor, and the comparing circuit, which are electrically connected to each other. A comparison voltage is determined according to an input voltage and the resistances of the first resistor and the second resistor. The comparing circuit includes an input circuit, an eternal circuit, and a coupling module. The coupling module includes a first coupling transistor, a second coupling transistor, a third transistor, and a fourth coupling resistor. Control terminals of the first coupling transistor and the second coupling transistor are selectively electrically connected to either one of a first terminal and a second terminal. The second terminals of the third coupling transistor and the fourth coupling transistor are selectively electrically connected to either one of the first terminal and the second terminal.
Claims
1. A comparing circuit with hysteresis, comprising: an input circuit, comprising: a first input transistor, configured for receiving a reference voltage; and a second input transistor, configured for receiving a comparison voltage; an external circuit, comprising: a first external transistor, electrically connected to the first input transistor through a first terminal; and a second external transistor, electrically connected to the second input transistor through a second terminal; and a coupling module, comprising: a first current amplification circuit, comprising: a first coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the first coupling transistor is electrically connected to the first terminal, and the control terminal of the first coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal; and a second coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the second coupling transistor is electrically connected to the second terminal, and the control terminal of the second coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal; and a second current amplification circuit, comprising: a third coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the third coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal, and the control terminal of the third coupling transistor is electrically connected to the second terminal; and a fourth coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the fourth coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal, and the control terminal of the fourth coupling transistor is electrically connected to the first terminal.
2. The comparing circuit according to claim 1, wherein when the comparing circuit is in a first mode, the control terminal of the first coupling transistor is electrically connected to the first terminal; the control terminal of the second coupling transistor is electrically connected to the second terminal; the second terminal of the third coupling transistor is electrically connected to the first terminal; and the second terminal of the fourth coupling transistor is electrically connected to the second terminal.
3. The comparing circuit according to claim 2, wherein the coupling module further comprises: a first switch, electrically connected to the second terminal of the third coupling transistor and the first terminal; a second switch, electrically connected to the second terminal of the fourth coupling transistor and the second terminal; a third switch, electrically connected to the control terminal of the first coupling transistor and the first terminal; and a fourth switch, electrically connected to the control terminal of the second coupling transistor and the second terminal, wherein the first, the second, the third, and the fourth switches are switched on in the first mode.
4. The comparing circuit according to claim 1, wherein when the comparing circuit is in a second mode, the control terminal of the first coupling transistor is electrically connected to the second terminal; the control terminal of the second coupling transistor is electrically connected to the first terminal; the second terminal of the third coupling transistor is electrically connected to the second terminal; and the second terminal of the fourth coupling transistor is electrically connected to the first terminal.
5. The comparing circuit according to claim 4, wherein the coupling module further comprises: a fifth switch electrically connected to the second terminal of the third coupling transistor and the second terminal; a sixth switch electrically connected to the second terminal of the fourth coupling transistor and the first terminal; a seventh switch electrically connected to the control terminal of the first coupling transistor and the second terminal; and an eighth switch electrically connected to the control terminal of the second coupling transistor and the first terminal, wherein the fifth, the sixth, the seventh, and the eighth switches are switched on in the second mode.
6. The comparing circuit according to claim 1, wherein the first terminal of each of the coupling transistors is electrically connected to a supply voltage.
7. The comparing circuit according to claim 1, further comprising: a current mirror circuit, comprising: a reference source transistor, electrically connected to the first external transistor; and a mirror transistor, electrically connected to the second external transistor.
8. The comparing circuit according to claim 7, wherein the mirror transistor generates an output signal, the output signal being at a first level in the first mode, and being at a second level different from the first level in the second mode.
9. The comparing circuit according to claim 1, further comprising: a current source, electrically connected to the first input transistor and the second input transistor, configured for providing a total current to the first input transistor and the second input transistor.
10. The comparing circuit according to claim 9, wherein when the first input transistor and the second input transistor are conducted, the total current is the sum of a first current flowing through the first input transistor and a second current flowing through the second input transistor.
11. The comparing circuit according to claim 9, wherein when the first input transistor is conducted and the second input transistor is non-conducted, the total current is equivalent to a first current flowing through the first input transistor.
12. The comparing circuit according to claim 1, wherein the coupling module further comprises: a switch circuit, electrically connected to the first terminal, the second terminal and the coupling transistors, configured for receiving a first control signal and a second control signal, wherein the switch circuit selectively conducts the first terminal to the control terminal of the first coupling transistor, the control terminal of the second coupling terminal, the second terminal of the third coupling transistor and the second terminal of the fourth coupling transistor according to the control signals, wherein the switch circuit selectively conducts the second terminal to the control terminal of the first coupling transistor, the control terminal of the second coupling terminal, the second terminal of the third coupling transistor, and the second terminal of the fourth coupling transistor according to the control signals.
13. The comparing circuit according to claim 12, wherein the first control signal and an output signal are in phase, and the second control signal and the output signal are in antiphase.
14. The comparing circuit according to claim 1, wherein a first current amplification factor of the first coupling transistor is equivalent to a second current amplification factor of the second coupling transistor.
15. The comparing circuit according to claim 1, wherein a third current amplification factor of the third coupling transistor is equivalent to a fourth current amplification factor of the fourth coupling transistor.
16. The comparing circuit according to claim 1, wherein a third current amplification factor of the third coupling transistor is greater than a first current amplification factor of the first coupling transistor.
17. The comparing circuit according to claim 1, wherein the first input transistor and the second input transistor are NMOS transistors, and the first external transistor, the second external transistor, and the coupling transistors are PMOS transistors.
18. A comparing module with hysteresis, comprising: a first resistor having a first resistance for receiving an input voltage; a second resistor having a second resistance and electrically connected to the first resistor, configured for receiving a ground voltage, wherein a comparison voltage is determined according to the input voltage, the first resistance of the first resistor and the second resistance of the second resistor; and a comparing circuit, comprising: an input circuit, comprising: a first input transistor, configured for receiving a reference voltage; and a second input transistor, configured for receiving the comparison voltage; an external circuit, comprising: a first external transistor, electrically connected to the first input transistor through a first terminal; and a second external transistor, electrically connected to the second input transistor through a second terminal; and a coupling module, comprising: a first current amplification circuit, comprising: a first coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the first coupling transistor is electrically connected to the first terminal, and the control terminal of the first coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal; and a second coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the second coupling transistor is electrically connected to the second terminal, and the control terminal of the second coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal; and a second current amplification circuit, comprising: a third coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the third coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal, and the control terminal of the third coupling transistor is electrically connected to the second terminal; and a fourth coupling transistor having a first terminal, a second terminal and a control terminal, wherein the second terminal of the fourth coupling transistor is selectively electrically connected to either one of the first terminal and the second terminal, and the control terminal of the fourth coupling transistor is electrically connected to the first terminal.
19. The comparing module according to claim 18, wherein the coupling module further comprises: a first inverter, electrically connected to the comparing circuit, configured for receiving an output signal and generating a first control signal, wherein the output signal and the first control signal being in antiphase; and a second inverter, electrically connected to the first inverter and the comparing circuit, configured for receiving the first control signal and generating a second control signal, wherein the output signal and the second control signal are in phase.
20. The comparing module according to claim 18, further comprising: a first switch, electrically connected to the second terminal of the third coupling transistor and the first terminal; a second switch, electrically connected to the second terminal of the fourth coupling transistor and the second terminal; a third switch, electrically connected to the control terminal of the first coupling transistor and the first terminal; a fourth switch, electrically connected to the control terminal of the second coupling transistor and the second terminal, a fifth switch, electrically connected to the second terminal of the third coupling transistor and the second terminal; a sixth switch, electrically connected to the second terminal of the fourth coupling transistor and the first terminal; a seventh switch, electrically connected to the control terminal of the first coupling transistor and the second terminal; and an eighth switch, electrically connected to the control terminal of the second coupling transistor and the first terminal, wherein in a first mode, the first, the second, the third, and the fourth switches are switched on, and the fifth, the sixth, the seventh, and the eighth switches are switched off, wherein in a second mode, the first, the second, the third, and the fourth switches are switched off, and the fifth, the sixth, the seventh, and the eighth switches are switched on.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16) In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
DETAILED DESCRIPTION
(17) Please refer to
(18) One terminal of the resistor R1 is electrically connected to the input voltage Vin, and the other terminal of the resistor R1 is electrically connected to a comparison terminal Ncmp. One terminal of the resistor R2 is electrically connected to the comparison terminal Ncmp, and the other terminal of the resistor R2 is electrically connected to the ground voltage Gnd. For illustration purposes only, the voltage at the comparison terminal Ncmp is defined as a comparison voltage Vcmp, and the symbols R1 and R2 represent the resistances of the resistors R1 and R2, respectively.
(19) The comparing circuit 13 receives the reference voltage Vref at the inverting terminal and receives the comparison voltage Vcmp at the non-inverting terminal to generate an output signal Vo. The comparing module 10 may further include inverters 11a and 11b. The input terminal of the inverter 11a is electrically connected to the output terminal of the comparing circuit 13, the input terminal of the inverter 11b is electrically connected to the output terminal of the inverter 11a, and the output terminals of both the inverters 11a and 11b are electrically connected to the comparing circuit 13. The output terminal of the inverters 11a and 11b feed control signals Sct and Sctn back to the comparing circuit 13, respectively. Especially, the control signal Sctn and the output signal Vo are in phase, and the control signal Sct and the output signal Vo are in antiphase.
(20) The comparing circuit 13 receives the reference voltage Vref and the comparison voltage Vcmp. Different applications may adopt different reference voltages Vref. In one application, the reference voltage Vref has a preset fixed value, and the comparison voltage Vcmp changes with the input voltage Vin. As shown in
(21)
(22) When the comparison voltage Vcmp is equivalent to the reference voltage Vref, the output signal Vo generated by the comparing circuit 13 changes, for example, changing from a low level to a high level or changing from a high level to a low level. At this time, the comparison voltage Vcmp is at a transition point. Two transition points are shown in
(23) The change of the output signal Vo in response to an increasing comparison voltage Vcmp starting from 0V is described first. In the beginning, the comparison voltage Vcmp is assumed to be 0V, and the output signal Vo is at a low level. Then, when the comparison voltage Vcmp increases to fall within an open interval between 0V and the upward inverse voltage Vinvu, the output signal Vo retains the low level. Afterward, once the comparison voltage Vcmp reaches the upward inverse voltage Vinvu, the output signal Vo is altered from the low level to a high level immediately. When the comparison voltage Vcmp further increases beyond the upward inverse voltage Vinvu, the output signal Vo retains the high level.
(24) Subsequently, the change of the output signal Vo in response to a decreasing comparison voltage Vcmp starting from the upward inverse voltage Vinvu is described. In the beginning, the comparison voltage Vcmp is assumed to be equivalent to the upward inverse voltage Vinvu, and the output signal Vo is at a high level. Then, when the comparison voltage Vcmp decreases to fall within an open interval between the downward inverse voltage Vinvd and the upward inverse voltage Vinvu, the output signal Vo retains the high level. Afterward, once the comparison voltage Vcmp reaches the downward inverse voltage Vinvd, the output signal Vo is altered from the high level to a low level immediately. When the comparison voltage Vcmp further decreases, the output signal Vo retains the low level. The voltage difference between the upward inverse voltage Vinvu and the downward inverse voltage Vinvd is defined as the hysteresis voltage Vhys.
(25) From the above description, the change of the output signal Vo occurs when the comparison voltage Vcmp and the reference voltage Vref received at the input terminals of the comparing circuit 13 are equivalent to each other. Equation (1) is obtained from Vcmp=[R2/(R1+R2)]*Vin:
Vref=Vcmp=[R2/(R1+R2)]*VinEquation (1)
(26) When the comparison voltage Vcmp is at the transition point, Equation (1) is rearranged to obtain Equation (2):
Vin=Vref*[(R1+R2)/R2]Equation (2)
(27) From Equation (2), the transition point of the output signal Vo occurs at Vin=Vref*[(R1+R2)/R2]. Hence, the transition point of the input voltage Vin (Vref*[(R1+R2)/R2]) of the comparing module 10 in
(28)
(29) The comparing circuit 13 is operable in two operation modes wherein one is a hysteresis mode, and the other one is a high gain mode. In this disclosure, Mode 1 denotes the hysteresis mode, and Mode 2 denotes the high gain mode. In the hysteresis mode (Mode 1), the comparing circuit 13 has high noise tolerance for disturbing the comparison voltage Vcmp. In the high gain mode (Mode 2), the comparing circuit 13 provides high gain to generate rapid response to the difference between the comparison voltage Vcmp and the reference voltage Vref.
(30)
(31) The first-stage amplifier 15 includes the input circuit 151, the current source 153, and a portion of the coupling module 18. The input circuit 151 further includes input transistors 151a and 151b. The first-stage amplifier 15 receives the reference voltage Vref through the input transistor 151a and receives the comparison voltage Vcmp through the input transistor 151b. The current source 153 provides a total current to the input circuit 151. The first-stage amplifier 15 generates a first amplifier signal with the first gain A.sub.VN1 at the terminals N1 and N2.
(32) The second-stage amplifier 17 includes the external circuit 173, the current mirror circuit 171, and the other portion of the coupling module 18. The external circuit 173 further includes external transistors 173a and 173b. The external transistor 173a is electrically connected to the terminal N1, and the external transistor 173b is electrically connected to the terminal N2. The current mirror circuit 171 further includes a reference source transistor 171a and a mirror transistor 171b. The reference source transistor 171a is electrically connected to the external transistor 173a, and the mirror transistor 171b is electrically connected to the external transistor 173b. The second-stage amplifier 17 receives the first amplifier signal through the terminals N1 and N2, and then generates a second amplifier signal with the second gain A.sub.VN2 as the output signal Vo.
(33)
(34) The input circuit 151 includes transistors MN1 (input transistor 151a) and MN2 (input transistor 151b). The gate terminal of the transistor MN1 receives the reference voltage Vref, and the gate terminal of the transistor MN2 receives the comparison voltage Vcmp. The drain terminals of the transistors MN1 and MN2 are electrically connected to the coupling module 18 through the terminals N1 and N2, respectively. The source terminals of the transistors MN1 and MN2 are electrically connected to the current source 153.
(35) The current source 153 includes a transistor MN5 of which a source terminal is electrically connected to the ground Gnd, a drain terminal is electrically connected to the source terminals of the transistors MN1 and MN2, and a gate terminal receives a bias voltage VPB. The bias voltage VPB makes the transistor MN5 conducted to provide a total current I.sub.mn5 continuously.
(36) In the current mirror circuit 171, a transistor MN3 serves as the reference source transistor 171a to provide a reference current I.sub.mn3, and a transistor MN4 servers as the mirror transistor 171b to generate a mirror current Imn4 corresponding to the reference current I.sub.mn3. The drain terminal and the gate terminal of the transistor MN3 are electrically connected to each other and further electrically connected to the gate terminal of the transistor MN4. The source terminals of the transistors MN3 and MN4 are electrically connected to the ground voltage Gnd. The drain terminal of the transistor MN3 is electrically connected to the external transistor 173a, and the drain terminal of the transistor MN4 is electrically connected to the external transistor 173b.
(37) The transistors MP1 and MP2 serve as the external transistors 173a and 173b, respectively. The source terminals of the transistors MP1 and MP2 are electrically connected to the supply voltage Vdd. The drain terminal of the transistor MP1 is electrically connected to the drain terminal of the transistor MN3, and the gate terminal of the transistor MP1 is electrically connected to the terminal N1. The drain terminal of the transistor MP2 is electrically connected to the drain terminal of the transistor MN4, and the gate terminal of the transistor MP2 is electrically connected to the terminal N2. In the diagram, the transistors MP1MP6 are implemented by PMOS transistors, and the transistors MN1MN6 are implemented by NMOS transistors, but the types of the transistors are not limited to the embodiment and could be selected to meet various requirements.
(38) As shown in
(39) TABLE-US-00001 TABLE 1 associated switch terminal associated transistor S1 N1 drain terminal of transistor MP5 S2 N2 drain terminal of transistor MP6 S3 N1 gate terminal of transistor MP3 S4 N2 gate terminal of transistor MP4 S5 N2 drain terminal of transistor MP5 S6 N1 drain terminal of transistor MP6 S7 N2 gate terminal of transistor MP3 S8 N1 gate terminal of transistor MP4
(40) The operations of the transistors MP3MP6 are respectively explained in the following description to realize the coupling relationship between the transistors MP3MP6 and the terminals N1 and N2 in response to the switching of the switches S1S8. Please refer to
(41) The gate terminal of the transistor MP3 is electrically connected to both the switches S3 and S7. When the switch S3 is switched on, the gate terminal of the transistor MP3 is electrically connected to the terminal N1. When the switch S7 is switched on, the gate terminal of the transistor MP3 is electrically connected to the terminal N2. Because the switches S3 and S7 are switched on in turn, the gate terminal of the transistor MP3 is electrically connected to either the terminal N1 or the terminal N2. Furthermore, the drain terminal of the transistor MP3 is directly electrically connected to the terminal N1 without any interposed switch.
(42) The gate terminal of the transistor MP4 is electrically connected to both the switches S8 and S4. When the switch S8 is switched on, the gate terminal of the transistor MP4 is electrically connected to the terminal N1. When the switch S4 is switched on, the gate terminal of the transistor MP4 is electrically connected to the terminal N2. Because the switches S8 and S4 are switched on in turn, the gate terminal of the transistor MP4 is electrically connected to either the terminal N1 or the terminal N2. Furthermore, the drain terminal of the transistor MP4 is directly electrically connected to the terminal N1 without any interposed switch.
(43) The gate terminal of the transistor MP5 is directly electrically connected to the terminal N2 without any interposed switch. Further, the drain terminal of the transistor MP5 is electrically connected to both the switches S1 and S5. When the switch S1 is switched on, the drain terminal of the transistor MP5 is electrically connected to the terminal N1. When the switch S5 is switched on, the drain terminal of the transistor MP5 is electrically connected to the terminal N2. Because the switches S1 and S5 are switched on in turn, the drain terminal of the transistor MP5 is electrically connected to either the terminal N1 or the terminal N2.
(44) The gate terminal of the transistor MP6 is directly electrically connected to the terminal N1 without any interposed switch. Further, the drain terminal of the transistor MP6 is electrically connected to both the switches S6 and S2. When the switch S6 is switched on, the drain terminal of the transistor MP6 is electrically connected to the terminal N1. When the switch S2 is switched on, the drain terminal of the transistor MP6 is electrically connected to the terminal N2. Because the switches S6 and S2 are switched on in turn, the drain terminal of the transistor MP6 is electrically connected to either the terminal N1 or the terminal N2.
(45) According to the above description, the transistors MP3MP6 are electrically connected to the terminals in two ways. In a first way, the gate terminal has a fixed connection, and the drain terminal is electrically connected to different terminals in different operation modes (that is, the transistors MP5 and MP6). In a second way, the drain terminal has a fixed connection, and the gate terminal is electrically connected to different terminals in different operation modes (that is, the transistors MP3 and MP4). In the disclosure, the transistors are classified according to their current amplification factors. For example, the transistors MP5 and MP6 are defined as high current amplification transistors, and the transistors MP3 and MP4 are defined as low current amplification transistors. Similarly, a combination of the transistors MP5 and MP6 is defined as a high current amplification circuit, and a combination of the transistors MP3 and MP4 is defined as a low current amplification circuit.
(46) According to the present disclosure, the switches S1S8 are divided into two groups. One group, including the switches S1S4, is controlled with the control signal Sct, and the other group, including the switches S5S8, is controlled with the control signal Sctn. Table 2 shows the actions of and associated control signals to the respective switches S1S8 in different operation modes.
(47) TABLE-US-00002 TABLE 2 associated hysteresis high gain mode control signal mode (Mode 1) (Mode 2) switches control signal Sct ON OFF S1~S4 switches control signal Sctn OFF ON S5~S8
(48) As shown in
(49) As the output signal Vo is at the low level in the hysteresis mode (Mode 1), the control signals Sct and Sctn are at the high level and the low level in the hysteresis mode (Mode 1), respectively. Consequently, the switches S1S4 being controlled with the control signal Sct are switched on in the hysteresis mode (Mode 1), and the switches S5S8 controlled with the control signal Sctn are switched off in the hysteresis mode (Mode 1). Thus, the switch S1 makes the terminal N1 electrically connected to the drain terminal of the transistor MP5; the switch S2 makes the terminal N2 electrically connected to the drain terminal of the transistor MP6; the switch S3 makes the terminal N1 electrically connected to the gate terminal of the transistor MP3; and the switch S4 makes the terminal N2 electrically connected to the gate terminal of the transistor MP4.
(50) On the other hand, as the output signal Vo is at the high level in the high gain mode (Mode 2), the control signals Sct and Sctn are at the low level and the high level in the high gain mode (Mode 2), respectively. Consequently, the switches S1S4 being controlled with the control signal Sct are switched off in the high gain mode (Mode 2), and the switches S5S8 controlled with the control signal Sctn are switched on in the high gain mode (Mode 2). Thus, the switch S5 makes the terminal N2 electrically connected to the drain terminal of the transistor MP5; the switch S6 makes the terminal N1 electrically connected to the drain terminal of the transistor MP6; the switch S7 makes the terminal N2 electrically connected to the gate terminal of the transistor MP3; and the switch S8 makes the terminal N1 electrically connected to the gate terminal of the transistor MP4.
(51) The properties of respective transistors MN1-MN5 and MP1-MP8 are denoted by symbols with a subscript in lowercase letters. For example, the current flowing through the transistor MP1 is denoted as Imo, the current amplification factor of the transistor MP6 is denoted as .sub.mp6, the channel width of the transistor MP3 is denoted as W.sub.mp3, and the channel length of the transistor MP3 is denoted as L.sub.mp3. Other symbols representing the properties of respective transistors could be derived according to the same principle and are not specified herein.
(52)
(53)
(54) On the one hand, as shown in
(55) According to the present disclosure, the design of the coupling module 18 makes the operation of the comparing circuit 13 flexible. Based on the structure, the switches S1S8 can switch between the hysteresis mode (Mode 1) and the high gain mode (Mode 2). As a consequence of the switching actions of the switches S1S8, the coupling relation between the transistors MP3MP6 and the terminals N1 and N2 is adjustable. Therefore, the configuration of the first-stage amplifier 15 and the second-stage amplifier 17 changes with the operation modes.
(56) The comparing circuit 13 operated in the hysteresis mode (Mode 1) is described with reference to
(57) Please refer to both
(58) Please refer to both
(59)
(60) TABLE-US-00003 TABLE 3 transistor source drain gate MP3 supply voltage terminal N1 terminal N1 Vdd (switch S3 is ON) MP4 terminal N2 terminal N2 (switch S4 is ON) MP5 terminal N1 terminal N2 (switch S1 is ON) MP6 terminal N2 terminal N1 (switch S2 is ON)
(61) Please refer to both
(62)
(63) Please refer to both
(64) Further, the status of the transistors MP5, MP4, and MP2 with gate terminals electrically connected to the terminal N2 is explained. The transistor MN2 is non-conducted because the comparison voltage Vcmp received at its gate terminal is not great enough to make the transistor MN2 conducted. As a result, the gate terminals of the transistors MP5, MP4, and MP2 electrically connected to the terminal N2 are floating. Thus, the transistors MP5, MP4, and MP2 are non-conducted.
(65) At this time, the transistor MP6 is conducted because its gate terminal receives a low voltage at the terminal N1. However, the drain terminal of the transistor MP6 is electrically connected to the floating terminal N2 so that no current flows through the transistor MP6. As shown in
(66) When the comparison voltage Vcmp gradually increases to VrefVgs.sub.mn1+Vt.sub.mn2, the transistor MN2 becomes conducted. The threshold voltage for conducting the transistor MN2 is represented as Vt.sub.mn2. Therefore, the threshold voltage Vth in
(67) Please refer to both
(68) At first, the status of the transistors MP3, MP1, and MP6 with gate terminals electrically connected to the terminal N1 is explained. The transistor MN1 is conducted because its gate terminal continuously receives the reference voltage Vref so as to generate the current I.sub.mn1 flowing through the transistor MN1. The current I.sub.mn1 lowers the voltage at the terminal N1 and makes the transistors MP3, MP1, and MP6 conducted. At this time, the current I.sub.mn1 flowing through the transistor MN1 is equivalent to the current I.sub.mp3 flowing through the transistor MP3.
(69) Further, the status of the transistors MP5, MP4, and MP2 with gate terminals electrically connected to the terminal N2 is explained. The transistor MN2 is conducted because the comparison voltage Vcmp received at its gate terminal is great enough to make the transistor MN2 conducted. At this time, the current I.sub.mp6 flowing through the transistor MP6 raises the voltage at the terminal N2, and the transistors MP5, MP4, and MP2 are remained non-conducted. The current I.sub.mp6 flowing through the transistor MP6 further flows through the transistor MN2 to form the current I.sub.mn2, that is, I.sub.mp6=I.sub.mn2.
(70) As shown in
(71) Please refer to both
(72) Hence, the relationship of the currents along the line segment L1c is shown in the following Equations (3)-(6).
I.sub.mn1=I.sub.mp3Equation (3)
I.sub.mn2=I.sub.mp6Equation (4)
I.sub.mp6=(.sub.mp6/.sub.mp3)*I.sub.mp3=[(W.sub.mp6/L.sub.mp6)/(W.sub.mp3/L.sub.mp3)]*I.sub.mp3 Equation (5)
I.sub.mn2=I.sub.mn5I.sub.mn1Equation (6)
(73) As shown in
Vref=Vgs.sub.mn1+Vds.sub.mn5Equation (7)
(74) Further, as shown in
Vcmp=Vgs.sub.mn2+Vds.sub.mn5Equation (8)
(75) Further, at the rising transition point, the comparison voltage Vcmp is equivalent to the sum of the reference voltage Vref and the hysteresis voltage Vhys, as expressed in Equation (9):
Vcmp=Vref+VhysEquation (9)
(76) Equation (8) and Equation (9) are combined to obtain Equation (10).
Vcmp=Vref+Vhys=Vgs.sub.mn2+Vds.sub.mn5Equation (10)
(77) Form Equation (10), the hysteresis voltage Vhys is the difference between the voltage difference Vgs.sub.mn2 between the gate terminal and the source terminal of the transistor MN2 and the voltage difference Vgs.sub.mn1 between the gate terminal and the source terminal of the transistor MN1, as expressed in Equation (11).
Vhys=Vgs.sub.mn2+Vds.sub.mn5Vref
=Vgs.sub.mn2+Vds.sub.mn5(Vgs.sub.mn1+Vds.sub.mn5)
=Vgs.sub.mn2Vgs.sub.mn1Equation (11)
(78) According to the behavior of the transistor, the current I.sub.mn2 flowing through the transistor MN2 can be expressed by the voltage difference Vgs.sub.mn2 between the gate terminal and the source terminal of the transistor MN2 and the current amplification factor .sub.mn2 of the transistor MN2, that is,
(79)
so that Equation (12) is obtained:
(80)
(81) Similarly, the current I.sub.mn1 flowing through the transistor MN1 can be expressed by the voltage difference Vgs.sub.mn1 between the gate terminal and the source terminal of the transistor MN1 and the current amplification factor .sub.mn1 of the transistor MN1, that is,
(82)
so that Equation (13) is obtained:
(83)
(84) Equation (12) and Equation (13) are substituted into Equation (11) to obtain the hysteresis voltage Vhys:
(85)
(86) From Equation (14), it is realized the hysteresis voltage Vhys of the comparing circuit 13 only depends on the current amplification factor .sub.mn1 of the transistor MN1, the current amplification factor .sub.mn2 of the transistor MN2, the current I.sub.mn1 flowing through the transistor MN1, and the current I.sub.mn2 flowing through the transistor MN2. Therefore, the hysteresis voltage Vhys does not vary with the reference voltage Vref.
(87) According to the above description, the transistors MP5, MP4, and MP2 are non-conducted, and the transistors MN1, MP1, MP3, MP6, MN3, MN4, and MN5 are conducted in the hysteresis mode (Mode 1). Further, the transistor MN2 is non-conducted when the comparison voltage Vcmp is smaller than the threshold voltage Vth (that is, Vcmp<Vth). Otherwise, the transistor MN2 is conducted when the comparison voltage Vcmp is greater than or equivalent to the threshold voltage Vth (that is, VcmpVth).
(88) Subsequently, the comparing circuit 13 operated in the high gain mode (Mode 2) is described with reference to
(89) Please refer to both
(90) Please refer to both
(91)
(92) TABLE-US-00004 TABLE 4 transistor source drain gate MP3 supply voltage terminal N1 terminal N2 Vdd (switch S7 is ON) MP4 terminal N2 terminal N1 (switch S8 is ON) MP5 terminal N2 terminal N2 (switch S5 is ON) MP6 terminal N1 terminal N1 (switch S6 is ON)
(93) Please refer to both
(94)
(95) The relationship between the currents in
(96) As shown in
(97)
(98) Further, the transistors MN1, MN2, MP3, and MP4 collectively form the first-stage amplifier 15, which determines the voltages at the terminals N1 and N2 according to the reference voltage Vref and the comparison voltage Vcmp. The first gain A.sub.VN1 provided by the first-stage amplifier 15 is determined according to the transconductance gm.sub.mn2 of the transistor MN2, the transconductance gm.sub.mp5 of the transistor MP5 and the transconductance gm.sub.mp4 of the transistor MP4.
(99)
(100) Further, the ratio of the transconductances of the transistors is equivalent to the ratio of the current amplification factor of the transistors, that is,
(101)
Thus, the first gain A.sub.VN1 in Equation (16) is expressed as Equation (17):
(102)
(103) The first gain A.sub.VN1 in Equation (17) and the second gain A.sub.VN2 in Equation (15) can be used to calculate the gain A.sub.VN of the comparing circuit 13 in the high gain mode (Mode 2). The gain A.sub.VN of the comparing circuit 13 in the high gain mode (Mode 2) is the product of the first gain A.sub.VN1 and the second gain A.sub.VN2 to obtain Equation (18):
(104)
(105) From Equation (18), a gain factor
(106)
is introduced to calculate the gain A.sub.VN. The gain effect can be increased by selecting proper current amplification factors .sub.mp4 and .sub.mp5 to increase the gain factor C. For example, the ratio .sub.mp4/.sub.mp5 is 3/4 corresponding to a gain A.sub.VN of 4.
(107) From the description with reference to
(108) Please refer to Table 5, which collects the coupling relation of the terminals of respective transistors in the coupling module 18 in different operation modes. The relative details have been given in the previous description and are not further described.
(109) TABLE-US-00005 TABLE 5 transistor terminal coupling relation MP3 source supply voltage Vdd drain terminal N1 gate Mode 1 terminal N1 (switch S3 is ON) Mode 2 terminal N2 (switch S7 is ON) MP4 source supply voltage Vdd drain terminal N2 gate Mode 1 Terminal N2 (switch S4 is ON) Mode 2 Terminal N1 (switch S8 is ON) MP5 source supply voltage Vdd drain Mode 1 terminal N1 (switch S1 is ON) Mode 2 terminal N2 (switch S5 is ON) gate Terminal N2 supply voltage Vdd MP6 source Mode 1 terminal N2 drain (switch S2 is ON) Mode 2 terminal N1 (switch S6 is ON) gate terminal N1
(110)
(111) In
(112) Please refer to both
(113) Please refer to both
(114) To sum up, in the transistors MP5 and MP6, the gate terminals have fixing connection and the drain terminals are electrically connected to the terminals N2 and N1, respectively, which are exchanged in different operation modes. For example, the drain terminal of the transistor MP5 is electrically connected to the terminal N1 in the hysteresis mode (Mode 1) and is switched to be electrically connected to the terminal N2 in the high gain mode (Mode 2). Further, the drain terminal of the transistor MP6 is electrically connected to the terminal N2 in the hysteresis mode (Mode 1), and is switched to be electrically connected to the terminal N1 in the high gain mode (Mode 2).
(115) On the other hand, in the transistors MP3 and MP4, the drain terminals have fixing connections and the gate terminals are electrically connected to the terminals N2 and N1, respectively, which are exchanged in different operation modes. For example, the gate terminal of the transistor MP3 is electrically connected to the terminal N1 in the hysteresis mode (Mode 1) and is switched to be electrically connected to the terminal N2 in the high gain mode (Mode 2). Further, the gate terminal of the transistor MP4 is electrically connected to the terminal N2 in the hysteresis mode (Mode 1) and is switched to be electrically connected to the terminal N1 in the high gain mode (Mode 2).
(116) As shown in
(117)
(118) Table 6 shows that the transistors in the high current amplification circuit 18a and the low current amplification circuit 18b of the comparing circuit 13 are cross-coupled or coupled to the transistor MP1 or MP2 to form the external current mirror in corresponding modes.
(119) TABLE-US-00006 TABLE 6 high amplification circuit low amplification circuit transistor MP5, MP6 MP3, MP4 current amplification high low factor Model1 cross-coupled forming external current mirrors with MP1, MP2, respectively belonging to first-stage belonging to amplifier second-stage amplifier Mode2 forming external current cross-coupled mirrors with MP2 and MP1, respectively belonging to belonging to first-stage second-stage amplifier amplifier
(120) In the hysteresis mode (Mode 1), the transistors MP5 and MP6 of the high current amplification circuit 18a are cross-coupled. At this time, the transistors MP3 and MP4 of the low current amplification circuit 18a are electrically connected to the transistors MP1 and MP2 to form the external current mirrors 21a and 21b, respectively. Accordingly, the high current amplification circuit 18a belongs to the first-stage amplifier 15, while the low current amplification circuit 18b belongs to the second-stage amplifier 17 in the hysteresis mode (Mode 1).
(121) In the high gain mode (Mode 2), the transistors MP3 and MP4 of the low current amplification circuit 18b are cross-coupled. At this time, the transistors MP5 and MP6 of the high current amplification circuit 18a are electrically connected to the transistors MP2 and MP1 to form the external current mirrors 22b and 22a, respectively. Accordingly, the low current amplification circuit 18b belongs to the first-stage amplifier 15, while the high current amplification circuit 18a belongs to the second-stage amplifier 17 in the high gain mode (Mode 2).
(122) According to the present disclosure, the comparing circuit 13 has a symmetric structure advantageous to circuit layout with a lower mismatch. Further, the present disclosure considers both hysteresis and gain of the comparing circuit 13 without increasing power consumption and circuit area.
(123) To sum up, the present disclosure disposes of a specific switch circuit in the comparing circuit. The switch circuit can dynamically adjust the coupling relation among the transistors of the comparing circuit in response to different operation modes. Each of the first-stage amplifier and the second-stage amplifier of the comparing circuit has different circuit arrangements in different operation modes.
(124) In the comparing circuit of the present disclosure, the hysteresis voltage Vhys depends only on the sizes of the transistors MN1, MN2, MN3, and MN6, the current I.sub.mn1 flowing through the transistor MN1 and the current I.sub.mn2 flowing through the transistor MN2. The hysteresis voltage Vhys is not affected by the reference voltage Vref. Further, the comparing circuit of the present disclosure can provide a higher gain in the high gain mode (Mode 2).
(125) It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.