The present invention relates to a comparator circuit.
One example of conventional temperature sensing devices is disclosed in Patent Document 1 identified below. In the temperature sensing device of Patent Document 1, a diode is used as a temperature sensor. This temperature sensing device senses temperature by utilizing the characteristic that when a constant current is fed to a diode, the value of the forward voltage of the diode changes with temperature.
Conventional temperature sensing devices that use a diode as a temperature sensor as described above include a comparator circuit that uses a forward voltage generated in the diode as a temperature sensing voltage and compares the temperature sensing voltage with a triangular wave signal. This comparator circuit outputs a pulse signal with a duty ratio commensurate with temperature.
Here, in the above-described comparator circuit, there is a demand for adapting to a wider range of levels of an input signal as a target of comparison with the triangular wave signal. This problem, however, is not confined to comparator circuits for use in temperature sensing devices.
In light of the foregoing, an object of the present invention is to provide a comparator circuit capable of adapting to a wider range of an input signal.
According to one aspect of the present invention, a comparator circuit includes a first comparator configured to receive input of an input signal and a comparison target signal to be compared with the input signal, a first output stage including an N-channel transistor having a control terminal to which a first control terminal voltage output from the first comparator is applied, and a first clamp unit configured to limit the first control terminal voltage to be not higher than a first predetermined voltage that is higher than a first threshold voltage of the N-channel transistor but is lower than a first high side voltage output as high level from the first comparator when the first control terminal voltage is not limited (a first configuration).
In the first configuration described above, preferably, the first predetermined voltage has a value twice the first threshold voltage (a second configuration).
In the first or second configuration described above, preferably, the comparison target signal is a triangular wave signal (a third configuration).
In any one of the first to third configurations described above, preferably, the first output stage includes a first constant current source connected to the N-channel transistor on a higher potential side than the N-channel transistor (a fourth configuration).
In any one of the first to fourth configurations described above, preferably, the first clamp unit includes a diode-connected NMOS transistor (a fifth configuration).
Preferably, any one of the first to fifth configurations described above further includes a second comparator configured to receive input of the input signal and the comparison target signal, a second output stage including a P-channel transistor having a control terminal to which a second control terminal voltage output from the second comparator is applied, a second clamp unit configured to limit the second control terminal voltage to be not lower than a second predetermined voltage that is lower than a third threshold voltage lower, by a second threshold voltage of the P-channel transistor, than a second high side voltage output as high level from the second comparator but is higher than a low level voltage output as low level from the second comparator when the second control terminal voltage is not limited, and an output unit configured to generate a third output signal on detecting whichever of rising timing/falling timing of each of a first output signal of the first output stage and a second output signal of the second output stage is earlier (a sixth configuration).
According to another aspect of the present invention, a comparator circuit includes a second comparator configured to receive input of an input signal and a comparison target signal to be compared with the input signal, a second output stage including a P-channel transistor having a control terminal to which a second control terminal voltage output from the second comparator is applied, and a second clamp unit configured to limit the second control terminal voltage to be not lower than a second predetermined voltage that is lower than a third threshold voltage lower, by a second threshold voltage of the P-channel transistor, than a second high side voltage output as high level from the second comparator but is higher than a low level voltage output as low level from the second comparator when the second control terminal voltage is not limited (a seventh configuration).
In the seventh configuration described above, preferably, the second predetermined voltage is lower than the second high side voltage by a voltage twice the second threshold voltage (an eighth configuration).
In the seventh or eighth configuration described above, preferably, the comparison target signal is a triangular wave signal (a ninth configuration).
In any one of the seventh to ninth configurations described above, preferably, the second output stage includes a second constant current source connected to the P-channel transistor on a lower potential side than the P-channel transistor (a tenth configuration).
In any one of the seventh to tenth configurations described above, preferably, the second clamp unit includes a diode-connected PMOS transistor (an eleventh configuration).
According to still another aspect of the present invention, a temperature monitor circuit includes the comparator circuit having any one of the above-described configurations, and a constant current circuit configured to feed a constant current to a diode. Here, the input signal is a signal based on a forward voltage of the diode (a twelfth configuration).
According to yet another aspect of the present invention, an IC package includes the temperature monitor circuit having the configuration described above, a pulse generator configured to generate a pulse based on a temperature sensing signal output from the temperature monitor circuit, an isolation transformer configured to transmit the pulse, and a logic unit configured to operate such that a temperature output signal is externally output from an external terminal based on the pulse transmitted by the isolation transformer (a thirteenth configuration).
According to the present invention, a comparator circuit can adapt to a wider range of the input signal.
Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings.
<Configuration of Gate Driver>
The gate driver 10 includes a primary side circuit 1, a secondary side circuit 2, and an isolation transformer 3. The gate driver 10 is an IC package that includes, as external terminals (lead terminals) for establishing external electric connection, a VCC1 terminal, an INA terminal, an INB terminal, a SENS terminal, a GND1 terminal, a VCC2 terminal, an OUT terminal, a TO terminal, a TC terminal, and a GND2 terminal.
The primary side circuit 1 includes a first Schmitt trigger 11, a second Schmitt trigger 12, an AND circuit 13, a pulse generator 14, a first under voltage lock out (UVLO) unit 15, a PMOS transistor 16, an NMOS transistor 17, and a logic unit 18.
The secondary side circuit 2 includes a logic unit 21, a PMOS transistor 22, an NMOS transistor 23, a second UVLO unit 24, an overvoltage protection (OVP) unit 25, a pulse generator 26, and a temperature monitor circuit 27.
The isolation transformer 3 is disposed so as to connect the primary side circuit 1 and the secondary side circuit 2. The isolation transformer 3, while isolating the primary side circuit 1 and the secondary side circuit 2 from each other, transmits a signal coming from one of the primary side circuit 1 and the secondary side circuit 2 to the other.
The first UVLO unit 15 monitors a power supply voltage Vcc1 applied to the VCC1 terminal, and shuts down the primary side circuit 1 when the power supply voltage Vcc1 falls to be lower than a predetermined voltage.
The first Schmitt trigger 11 transmits a first input signal In1, which is externally fed to the INA terminal, to a first input terminal of the AND circuit 13. The second Schmitt trigger 12 transmits a second input signal In2, which is externally fed to the INB terminal, to a second input terminal of the AND circuit 13.
The AND circuit 13 takes the logical product of the level of a signal fed to the first input terminal and a level obtained by inverting the level of a signal fed to the second input terminal. Accordingly, in cases where the first input signal In1 is at low level and the second input signal In2 is at low level, where the first input signal In1 is at low level and the second input signal In2 is at high level, and where the first input signal In1 is at high level and the second input signal In2 is at high level, the output of the AND circuit 13 is at low level, while, in a case where the first input signal In1 is at high level and the second input signal In2 is at low level, the output of the AND circuit 13 is at high level.
The pulse generator 14, with a fall of the output of the AND circuit 13 from high level to low level as a trigger, generates a pulse with a width narrower than that of the output of the AND circuit 13, and outputs the generated pulse to the primary side of the isolation transformer 3. The pulse fed to the primary side of the isolation transformer 3 causes a change in current, whereby, on the secondary side of the isolation transformer 3, a current is generated, and this current is fed to the logic unit 21. In this case, a high-level signal is output from the logic unit 21 to be fed to the gate of the PMOS transistor 22 and to the gate of the NMOS transistor 23.
Here, the PMOS transistor 22 (a switch element) and the NMOS transistor 23 (a switch element) are connected in series between a power supply voltage Vcc2, which is applied to the VCC2 terminal, and a second ground GND2, which is applied to the GND2 terminal, and thereby form a switching arm. Specifically, the source of the PMOS transistor 22 is connected to the application terminal for the power supply voltage Vcc2. The drain of the PMOS transistor 22 is connected to the drain of the NMOS transistor 23 at node N2. The source of the NMOS transistor 23 is connected to the application terminal for the second ground GND2.
Node N1, at which the gate of the PMOS transistor 22 and the gate of the NMOS transistor 23 are connected, is connected to the output terminal of the logic unit 21.
Node N2 is connected to the OUT terminal. To the OUT terminal, one end of a resistor R1 is externally connected. The other end of the resistor R1 is connected to the gate of the NMOS transistor M1. The source of the NMOS transistor M1 is externally connected to the GND2 terminal. Note that the second ground GND2, serving as a reference voltage for the secondary side circuit 2, is different from a first ground GND1, which is applied to the GND1 terminal to serve as a reference voltage for the primary side circuit 1.
Here, in a case where, as described previously, a high-level signal from the logic unit 21 is applied to node N1, the PMOS transistor 22 is turned off, the NMOS transistor 23 is turned on, and an output voltage Out, which is a voltage of the OUT terminal, becomes the second ground GND2 (low level). Accordingly, the NMOS transistor M1 is turned off.
By contrast, the pulse generator 14, with a rise of the output of the AND circuit 13 from low level to high level as a trigger, generates a pulse with a width narrower than that of the output of the AND circuit 13, and outputs the generated pulse to the primary side of the isolation transformer 3. The pulse fed to the primary side of the isolation transformer 3 causes a change in current, whereby, on the secondary side of the isolation transformer 3, a current is generated, and this current is fed to the logic unit 21. In this case, a low-level signal is output from the logic unit 21 to be applied to node N1.
In this case, the PMOS transistor 22 is turned on, the NMOS transistor 23 is turned off, and the output voltage Out becomes the power supply voltage Vcc2 (high level). Accordingly, the NMOS transistor M1 is turned on.
Here, the target transistor to be driven by the gate driver 10 may be constituted by an IGBT instead of the NMOS transistor M1. In that case, the other end of the resistor R1 is connected to the gate of the IGBT, and the GND2 terminal is connected to the emitter of the IGBT.
The second UVLO unit 24 monitors the power supply voltage Vcc2, which is applied to the VCC2 terminal, and when the power supply voltage Vcc2 falls to be lower than a predetermined voltage, the second UVLO unit 24 shuts down the secondary side circuit 2. The OVP unit 25 is a circuit that senses an overvoltage of the power supply voltage Vcc2.
To the TO terminal, the anode of a diode D1 is externally connected. Here, the diode D1 may be constituted by a plurality of elements as shown in
To the TC terminal, one end of a resistor RTC is connected. The other end of the resistor RTC is externally connected to the GND2 terminal.
The temperature monitor circuit 27 is a circuit that senses temperature by using the diode D1 as a temperature sensor. The resistor RTC is an element that sets the current value of a constant current generated in the temperature monitor circuit 27.
The temperature monitor circuit 27 outputs, to the pulse generator 26, a sensed temperature as a temperature sensing signal Ts, which is a pulse signal. The pulse generator 26, similarly to the pulse generator 14 described previously, generates a pulse with a width shorter than that of the pulse signal (the temperature sensing signal Ts) fed from the temperature monitor circuit 27, and outputs the generated pulse to the secondary side of the isolation transformer 3. The pulse fed to the secondary side of the insulation transformer 3 causes a change in current, whereby, on the primary side of the insulation transformer 3, a current is generated, and this current is fed to the logic unit 18. In this case, a high-level or low-level signal is output from the logic unit 18 to be fed to the gate of the PMOS transistor 16 and to the gate of the NMOS transistor 17.
Here, the PMOS transistor 16 (a switch element) and the NMOS transistor 17 (a switch element) are connected in series between a power supply voltage Vcc1, which is applied to the VCC1 terminal, and a first ground GND1, which is applied to the GND1 terminal, and thereby form a switching arm. Specifically, the source of the PMOS transistor 16 is connected to the application terminal for the power supply voltage Vcc1. The drain of the PMOS transistor 16 is connected to the drain of the NMOS transistor 17 at node N4. The source of the NMOS transistor 17 is connected to the application terminal for the first ground GND1.
Node N3, at which the gate of the PMOS transistor 16 and the gate of the NMOS transistor 17 are connected, is connected to the output terminal of the logic unit 18. Node N4 is connected to the SENS terminal.
Based on a pulse output from the logic unit 18, by the switching arm constituted by the PMOS transistor 16 and the NMOS transistor 17, a temperature output signal Tsout, which is a pulse signal, is externally output from the SENS terminal. In this manner, temperature information sensed by the diode D1 serving as a temperature sensor can be output outside the IC. Note that the first input signal In1, the second input signal In2, and the temperature output signal Tsout are communicated, for example, between an electronic control unit (ECU) (not shown) outside the IC (the gate driver 10) and the IC.
<Configuration of Temperature Monitor Circuit>
The constant current circuit 271 includes an error amplifier 271A, an NMOS transistor 271B, and POS transistors 271C and 271D.
To the non-inverting input terminal (+) of the error amplifier 271A, a reference voltage Vtc is applied. To the inverting input terminal (−) of the error amplifier 271A, via the TC terminal, the one end of the resistor RTC is connected. The output terminal of the error amplifier 271A is connected to the gate of the NMOS transistor 271B. The source of the NMOS transistor 271B is connected to the TC terminal.
The PMOS transistors 271C and 271D constitute a current mirror. Specifically, the gate and the drain of the PMOS transistor 271C are short-circuited. The drain of the PMOS transistor 271C is connected to the drain of the NMOS transistor 271B. The gate of the PMOS transistor 271C is connected to the gate of the PMOS transistor 271D. The sources of the PMOS transistors 271C and 271D are connected to the VCC2 terminal. The drain of the PMOS transistor 271D is connected to the TO terminal.
With this configuration, control is performed such that the voltage of the TC terminal agrees with the reference voltage Vtc, and through the NMOS transistor 271B passes a constant current Iin with a current value determined by the reference voltage Vtc and a resistance value Rtc of the resistor RTC. Then, by the current mirror constituted by the PMOS transistors 271C and 271D, the constant current Iin has its current value increased by 10 times, for example, to become a constant current Tout to be fed from the TO terminal to the diode D1. That is, the constant current circuit 271 generates the constant current Tout to be fed to the diode D1.
The diode D1 has a characteristic that, under a constant current, its forward voltage decreases as temperature rises. Accordingly, the temperature can be sensed by feeding the constant current Tout to the diode D1 serving as a temperature sensor and measuring the forward voltage generated in the diode D1.
The comparator circuit 273 compares a voltage Vto of the TO terminal generated as the forward voltage of the diode D1 with a triangular wave signal Str generated by the oscillator 272, and outputs, as a comparison result, the temperature sensing signal Ts, which is a pulse signal. The temperature sensing signal Ts is a pulse signal with a duty ratio corresponding to the sensed temperature.
<First Embodiment of Comparator Circuit>
Next, descriptions will be given of various embodiments of the comparator circuit 273 in the temperature monitor circuit 27.
First, a first embodiment of the comparator circuit 273 will be described.
As shown in
To the non-inverting input terminal (+) of the comparator 273E, the voltage Vto (see
The source of the NMOS transistor 273F is connected to an application terminal for a second ground GND2. The constant current source 273G is disposed between an application terminal for the high side voltage Vh and the drain of the NMOS transistor 273F. The NMOS transistor 273F is turned on/off in accordance with the gate signal Gt, and thereby, at node N13, at which the constant current source 273G and the drain of the NMOS transistor 273F are connected, the temperature sensing signal Ts is generated. That is, from the output stage NOUT, the temperature sensing signal Ts is output.
Now, a description will be given of an operation of the thus-configured comparator circuit 2731X according to the first comparative example, with reference to timing charts shown in
In both
In both
Thereafter, at timing t3, at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage VthN at timing t4, the NMOS transistor 273F is turned on, and the temperature sensing signal Ts falls to low level.
Thereafter, at timing t5, at which the triangular wave signal Str rises to cross the input signal Sin from below to above the input signal Sin, the gate signal Gt starts to fall toward low level. Then, when the gate signal Gt reaches the threshold voltage VthN at timing t6, the NMOS transistor 273F is turned off, and the temperature sensing signal Ts rises to high level. Thereafter, the gate signal Gt continues to fall and reaches low level.
In this manner, in the example shown in
Thereafter, at timing t12, the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, but the comparatively high input signal Sin causes the time period from timing t11 to timing t12 to be short, so that the gate signal Gt starts to rise before reaching the threshold voltage VthN. Accordingly, the NMOS transistor 273F remains on, and thus the temperature sensing signal Ts remains at low level. Thereafter, the gate signal Gt reaches high level.
In this manner, the example shown in
Thus, a comparator circuit 2731 according to the first embodiment of the present invention has a configuration as shown in
The clamp unit 273H has a function of limiting the gate signal Gt to be not higher than a first predetermined voltage V1 that is lower than the high side voltage Vh but is higher than the threshold voltage VthN.
Now, a description will be given of an operation of the thus-configured comparator circuit 2731 according to the first embodiment, with reference to the timing charts shown in
Thereafter, at timing t23, at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage VthN at timing t24, the NMOS transistor 273F is turned on, and the temperature sensing signal Ts falls to low level.
In this manner, by having the gate signal Gt limited, by the clamp unit 273H, to be not higher than the first predetermined voltage V1, it is possible to reduce the difference between the voltage difference between the first predetermined voltage V1 and the threshold voltage VthN and the voltage difference between the threshold voltage VthN and the second ground GND2, and thus it is possible to reduce the delay time difference between delay time T11 (timing t21 to timing t22) until the temperature sensing signal Ts rises when the triangular wave signal Str crosses the input signal Sin to above the input signal Sin and delay time T12 (timing t23 to timing t24) until the temperature sensing signal Ts falls when the triangular wave signal Str crosses the input signal Sin to below the input signal Sin. In particular, in
Thereafter, at timing t33, at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage VthN at timing t34, the NMOS transistor 273F is turned on, and the temperature sensing signal Ts falls to low level.
In this manner, in
In this manner, with the comparator circuit 2731 according to this embodiment, regardless of whether the input signal Sin is high or low, the temperature sensing signal Ts can be generated properly, and thus it is possible to adapt to a wider range of the input signal Sin.
<Second Embodiment of Comparator Circuit>
Next, a second embodiment of the comparator circuit will be described.
The comparator circuit 2732X according to the second comparative example is different in configuration from the first comparative example (
Now, a description will be given of an operation of the thus-configured comparator circuit 2732X according to the second comparative example, with reference to timing charts shown in
In
Thereafter, at timing t43 at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Thereafter, at timing t44, the triangular wave signal Str crosses the input signal Sin from below to above the input signal Sin. The comparatively low input signal Sin causes the time period between timing t43 and timing t44 to be short, so that the gate signal Gt starts to fall before reaching the threshold voltage (Vh−VthP). Accordingly, the PMOS transistor 273I remains on, and thus the temperature sensing signal Ts remains at high level. Thereafter, the gate signal Gt reaches low level.
In this manner, the example shown in
Thereafter, at timing t53, at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage (Vh−VthP) at timing t54, the PMOS transistor 273I is turned off, and the temperature sensing signal Ts falls to low level. Thereafter, the gate signal Gt continues to rise and reaches high level.
In this manner, in the example shown in
Thus, a comparator circuit 2732 according to the second embodiment of the present invention has a configuration as shown in
The clamp unit 273K has a function of limiting the gate signal Gt to be not lower than a second predetermined voltage V2 that is lower than the threshold voltage (Vh−VthP) but higher than the second ground GND2 (a low level voltage).
Now, a description will be given of an operation of the thus-configured comparator circuit 2732 according to the second embodiment, with reference to the timing charts shown in
Thereafter, at timing t63, at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage (Vh−VthP) at timing t64, the PMOS transistor 273I is turned off, and the temperature sensing signal Ts falls to low level.
Thereafter, at timing t65, the triangular wave signal Str rises to cross the input signal Sin from below to above the input signal Sin, and thus the gate signal Gt starts to fall toward low level.
In this manner, in
Further, by having the gate signal Gt limited, by the clamp unit 273K, to be not lower than the second predetermined voltage V2, it is possible to reduce the difference between the voltage difference between the threshold voltage (Vh−VthP) and the high side voltage Vh and the voltage difference between the threshold voltage (Vh−VthP) and the second predetermined voltage V2, and thus it is possible to reduce the delay time difference between delay time T31 (timing t61 to timing t62) until the temperature sensing signal Ts rises when the triangular wave signal Str crosses the input signal Sin to above the input signal Sin and delay time T32 (timing t63 to timing t64) until the temperature sensing signal Ts falls when the triangular wave signal Str crosses the input signal Sin to below the input signal Sin. In particular, in
Thereafter, at timing t73 at which the triangular wave signal Str falls to cross the input signal Sin from above to below the input signal Sin, the gate signal Gt starts to rise toward high level. Then, when the gate signal Gt reaches the threshold voltage (Vh−VthP) at timing t74, the PMOS transistor 273I is turned off, and the temperature sensing signal Ts falls to low level.
In the case of
In this manner, the comparator circuit 2732 according to this embodiment can also generate proper temperature sensing signal Ts regardless of whether the input signal Sin is high or low, and thus can adapt to a wider range of the input signal Sin.
<Third Embodiment of Comparator Circuit>
Next, a third embodiment of the comparator circuit 273 will be described.
In this embodiment, to the configuration of the first embodiment described previously, the configuration of the second embodiment is added. That is, as shown in
The input signal Sin and the triangular wave signal Str are both fed to the comparator 273E′ as well as to the comparator 273E.
The comparator circuit 2733 further includes an output unit 273L. The output unit 273L receives a first output signal Out1 generated at node N13 and a second output signal Out2 generated at node 14, and the output unit 273L outputs the temperature sensing signal Ts (a third output signal). The output unit 273L raises the temperature sensing signal Ts at whichever of rising timing of the first output signal Out1 and rising timing of the second output signal Out2 is earlier, and lowers the temperature sensing signal Ts at whichever of falling timing of the first output signal Out1 and falling timing of the second output signal Out2 is earlier.
For example, in a case where the input signal Sin is comparatively low, the comparator circuit 2733 operates as shown in
Regarding the rising of the output signals, the output stage POUT constituted by the PMOS transistor 273I and the constant current source 273J is faster in operation speed than the output stage NOUT constituted by the NMOS transistor 273F and the constant current source 273G. Regarding the falling of the output signals, the output stage NOUT is faster in operation speed than the output stage POUT.
Accordingly, the timing (t62 in
It should be understood that the above embodiments are examples in all respects and are not limiting; the technological scope of the present invention is not indicated by the above description of the embodiments but by the claims; and all modifications within the scope of the claims and the meaning equivalent to the claims are covered.
The present invention is usable in temperature monitor circuits, for example.
Number | Date | Country | Kind |
---|---|---|---|
2020-060599 | Mar 2020 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2021/004604 | 2/8/2021 | WO |