Circuit and DC-DC converter for detecting voltage of node to be tested
By designing a temperature compensation circuit in the DC-DC converter, the problems of reduced conversion efficiency and inaccurate ZCD function under light loads are solved, and accurate inductor current detection and system stability are achieved at different temperatures.
Patent Information
- Application Number
- CN202210775518.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-07-01
AI Technical Summary
Under light load conditions, the conversion efficiency of the DC-DC converter decreases, and the zero current detection (ZCD) function is inaccurate at different temperatures, resulting in inaccurate inductor current detection, affecting system efficiency and stability.
A circuit for detecting the voltage of the node to be tested is designed, including a temperature compensation circuit. By setting the positive temperature coefficient of the components in the temperature compensation circuit, the positive temperature coefficient of the transistor is offset, ensuring that the comparison signal is accurately output at different temperatures. , controls the conduction and turn-off of the transistor to prevent the inductor current from becoming a negative current.
Effectively prevent the inductor current from becoming negative current, improve the efficiency at light load, and maintain the accuracy of inductor current detection at different temperatures, ensuring the stability of the DC-DC converter and the ripple characteristics of the output voltage.
Smart Images

Figure CN115267313B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of integrated circuits, and in particular, to a circuit for detecting a voltage of a node to be tested, and a direct current to direct current (DC-DC) converter. Background Art
[0002] With the development of integrated circuit technology, DC-DC converters are often used to convert DC voltage in various electronic devices. When the DC-DC converter is lightly loaded, the duty cycle decreases, the inductor current flowing through the inductor decreases, and it is in the inductor current discontinuous mode. In order to prevent the inductor current from backflowing, which causes the conversion efficiency of the DC-DC converter to decrease under light load, the freewheeling transistor in the DC-DC converter needs to be turned off when the inductor current drops to zero. This can be called zero current detection (ZCD). The ZCD function is widely used to prevent the inductor current from becoming a negative current to improve the efficiency under light load. Summary of the invention
[0003] The embodiments described herein provide a circuit for detecting a voltage of a node to be measured, and a DC-DC converter.
[0004] According to a first aspect of the present disclosure, a circuit for detecting the voltage of a node to be measured is provided. The circuit includes: a first resistor, a second resistor, a third resistor, a fourth resistor, a first current source, a second current source, a comparator, and a temperature compensation circuit. Among them, the first end of the first resistor is coupled to the first voltage end. The second end of the first resistor is coupled to the first input end of the comparator and the first end of the first current source. The first end of the second resistor is coupled to the second end of the first current source. The second end of the second resistor is coupled to the temperature compensation circuit. The first current source is configured to generate a first controlled current according to a first voltage difference between the first end of the first current source and the second end of the first current source. The first end of the third resistor is coupled to the first voltage end. The second end of the third resistor is coupled to the second input end of the comparator and the first end of the second current source. The first end of the fourth resistor is coupled to the second end of the second current source. The second end of the fourth resistor is coupled to the node to be measured. The second current source is configured to generate a second controlled current according to a second voltage difference between the first end of the second current source and the second end of the second current source. The temperature compensation circuit is coupled to the second voltage terminal and is configured to provide a compensation voltage equal to the voltage change value generated by the voltage of the node to be measured due to the temperature change to the second terminal of the second resistor. The output terminal of the comparator outputs a comparison signal. The comparison signal indicates whether the voltage of the node to be measured is equal to or greater than the voltage of the second terminal of the second resistor.
[0005] In some embodiments of the present disclosure, the temperature compensation circuit includes a first transistor, wherein a control electrode and a first electrode of the first transistor are coupled to a second voltage terminal, and a second electrode of the first transistor is coupled to a second end of a second resistor.
[0006] In some embodiments of the present disclosure, the temperature compensation circuit includes a thermistor with a positive temperature coefficient, wherein a first terminal of the thermistor is coupled to a second terminal of a second resistor, and a second terminal of the thermistor is coupled to a second voltage terminal.
[0007] In some embodiments of the present disclosure, the sum of the first controlled current and the second controlled current is equal to the constant current.
[0008] In some embodiments of the present disclosure, the constant current is a mirror current of the bias current generated by the bias current module. The resistor used to generate the bias current in the bias current module has a negative temperature coefficient.
[0009] In some embodiments of the present disclosure, a resistance value of the first resistor is equal to a resistance value of the third resistor.
[0010] In some embodiments of the present disclosure, a resistance value of the second resistor is equal to a resistance value of the fourth resistor.
[0011] According to a second aspect of the present disclosure, a DC-DC converter is provided. The DC-DC converter comprises: the circuit according to the first aspect of the present disclosure, a second transistor, a third transistor, an inductor, and a capacitor. The control electrode of the second transistor is coupled to the first drive control terminal. The first electrode of the second transistor is coupled to the test node. The second electrode of the second transistor is coupled to the input voltage terminal. The control electrode of the third transistor is coupled to the second drive control terminal. The first electrode of the third transistor is coupled to the second voltage terminal. The second electrode of the third transistor is coupled to the test node. The first end of the inductor is coupled to the test node. The second end of the inductor is coupled to the output voltage terminal. The first end of the capacitor is coupled to the output voltage terminal. The second end of the capacitor is coupled to the second voltage terminal.
[0012] In some embodiments of the present disclosure, the first transistor and the third transistor are of the same type.
[0013] In some embodiments of the present disclosure, a temperature coefficient of the first transistor is smaller than a temperature coefficient of the third transistor. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0015] Figure 1is an exemplary circuit diagram of a DC-DC converter;
[0016] Figure 2 yes Figure 1 An exemplary circuit diagram of a DC-DC converter is shown;
[0017] Figure 3 is an exemplary circuit diagram of a DC-DC converter according to an embodiment of the present disclosure;
[0018] Figure 4 yes Figure 3 An exemplary circuit diagram of a DC-DC converter is shown; and
[0019] Figure 5 yes Figure 3 Another exemplary circuit diagram of a DC-DC converter is shown.
[0020] In the drawings, reference numerals with the same last two digits correspond to the same elements. It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0023] In all embodiments of the present disclosure, since the source and drain (emitter and collector) of the transistor are symmetrical, and the conduction current directions between the source and drain (emitter and collector) of the N-type transistor and the P-type transistor are opposite, in the embodiments of the present disclosure, the controlled middle end of the transistor is referred to as the control electrode, and the remaining two ends of the transistor are referred to as the first electrode and the second electrode, respectively. In addition, terms such as "first" and "second" are only used to distinguish one component (or a part of a component) from another component (or another part of a component).
[0024] Figure 1 An exemplary circuit diagram of a DC-DC converter 100 is shown. The DC-DC converter 100 includes: a voltage detection circuit 110, a transistor Mn1, a transistor Mn2, an inductor L, and a capacitor C. The voltage detection circuit 110 is used to detect the voltage value of the node to be measured SW. The control electrode of the transistor Mn1 is coupled to the first drive control terminal CTL1. The first electrode of the transistor Mn1 is coupled to the node to be measured SW. The second electrode of the transistor Mn1 is coupled to the input voltage terminal Vin. The control electrode of the transistor Mn2 is coupled to the second drive control terminal CTL2. The first electrode of the transistor Mn2 is grounded. The second electrode of the transistor Mn2 is coupled to the node to be measured SW. The first end of the inductor L is coupled to the node to be measured SW. The second end of the inductor L is coupled to the output voltage terminal Vout. The first end of the capacitor C is coupled to the output voltage terminal Vout. The second end of the capacitor C is grounded. Figure 1 A load current source Iload is also shown.
[0025] exist Figure 1 In the example of FIG. 1 , although not shown, the DC-DC converter 100 may include a first drive circuit and a second drive circuit. The first drive circuit may output a first drive control signal from a first drive control terminal CTL1 to control the on and off of the transistor Mn1. The second drive circuit may output a second drive control signal from a second drive control terminal CTL2 to control the on and off of the transistor Mn2.
[0026] The voltage detection circuit 110 includes: a resistor r1, a resistor r2, a resistor r3, a resistor r4, a first current source Iflip1, a second current source Iflip2, and a comparator COMP. The first end of the resistor r1 is coupled to the power supply voltage terminal VCC. The second end of the resistor r1 is coupled to the non-inverting input terminal of the comparator COMP and the first end of the first current source Iflip1. The first current source Iflip1 is configured to generate a first controlled current Iflip1 according to a first voltage difference between the first end of the first current source Iflip1 and the second end of the first current source Iflip1. The first end of the resistor r2 is coupled to the second end of the first current source Iflip1. The second end of the resistor r2 is coupled to the reference node PGND. The reference node PGND is grounded. The first end of the resistor r3 is coupled to the power supply voltage terminal VCC. The second end of the resistor r3 is coupled to the inverting input terminal of the comparator COMP and the first end of the second current source Iflip2. The second current source Iflip2 is configured to generate a second controlled current Iflip2 according to a second voltage difference between a first terminal of the second current source Iflip2 and a second terminal of the second current source Iflip2. A first terminal of the resistor r4 is coupled to the second terminal of the second current source Iflip2. A second terminal of the resistor r4 is coupled to the test node SW. A comparison signal V is output from an output terminal of the comparator COMP. NOCL . Comparison signal V NOCL Indicates whether the voltage at the second end of the resistor r3 is equal to or greater than the voltage at the second end of the resistor r1.
[0027] exist Figure 1 In the example of , the resistance values of the resistor r1 and the resistor r3 are the same. The sum of the first controlled current Iflip2 and the second controlled current Iflip2 is equal to the constant current.
[0028] Figure 2 FIG. 4 shows a circuit for generating the first controlled current Iflip1 and the second controlled current Iflip2. Figure 2In the example, the bias current module provides a constant bias current Ibias to transistor Mp1. The bias current Ibias is mirrored as the drain-source current of transistor Mp2. The drain-source current of transistor Mp2 is provided to transistor Q1 and transistor Q4. The collector-emitter current of transistor Q1 is mirrored as the collector-emitter current of transistor Q2. The collector-emitter current of transistor Q2 is referred to as the first controlled current Iflip1 in the context. The collector-emitter current of transistor Q4 is mirrored as the collector-emitter current of transistor Q3. The collector-emitter current of transistor Q3 is referred to as the second controlled current Iflip2 in the context. It can be seen that the first controlled current Iflip1 and the second controlled current Iflip2 are shunt currents of the mirrored current of the bias current generated by the bias current module. In other words, the sum of the first controlled current Iflip1 and the second controlled current Iflip2 is equal to the bias current Ibias. The shunt ratio of the first controlled current Iflip1 and the second controlled current Iflip2 depends on the ratio of the gate-source voltage of transistor Q2 (i.e., the above-mentioned first voltage difference) and the gate-source voltage of transistor Q3 (i.e., the above-mentioned second voltage difference).
[0029] The second voltage difference is associated with the voltage of the node SW to be measured. When the voltage of the node SW to be measured is lower than the voltage of the reference node PGND, the second voltage difference is greater than the first voltage difference, so Iflip2 > Iflip1. When the voltage of the node SW to be measured is higher than the voltage of the reference node PGND, the second voltage difference is less than the first voltage difference, so Iflip2 < Iflip1. When the voltage of the node SW to be measured is equal to the voltage of the reference node PGND, the second voltage difference is equal to the first voltage difference, so Iflip2 = Iflip1.
[0030] Back to Figure 1 the example, when transistor Mn1 is turned on and transistor Mn2 is turned off, the input voltage Vin from the input voltage terminal Vin charges the inductor L, and the inductor current flows from the node SW to be measured to the output voltage terminal Vout. When transistor Mn1 is turned off and transistor Mn2 is turned on, the inductor L discharges, and the inductor current flowing through the inductor L gradually decreases. At this time, the inductor current still flows from the node SW to be measured to the output voltage terminal Vout. In the context, the inductor current flowing from the node SW to be measured to the output voltage terminal Vout is referred to as the positive current. In Figure 1 it is represented by I+ for the positive current. When the positive current I+ decreases to 0 A, the inductor current becomes from the output voltage terminal Vout to the node SW to be measured. In the context, the inductor current flowing from the output voltage terminal Vout to the node SW to be measured is referred to as the negative current. In Figure 1 it is represented by I- for the negative current.
[0031] In some application scenarios, it is necessary to control transistor Mn2 to be turned off when the inductor current is zero to prevent the inductor current from becoming negative. In this case, the resistance values of resistors r2 and r4 are set to be the same. In this way, the voltage comparison between the node to be tested SW and the reference node PGND is equivalent to the voltage comparison between the second end of resistor r3 and the second end of resistor r1. In other words, the comparison signal V NOCL Indicates whether the voltage of the node to be tested SW is equal to or greater than the voltage of the reference node PGND.
[0032] When the inductor current is greater than 0A, that is, when the inductor current is a positive current I+, the voltage value of the node to be measured SW is negative, and the voltage of the node to be measured SW is less than the voltage of the reference node PGND. Therefore, the second controlled current Iflip2 is greater than the first controlled current Iflip1, and the voltage value of the second end of the resistor r3 is less than the voltage value of the second end of the resistor r1. At this time, the comparison signal V NOCL is at a high level. When the inductor current is equal to 0A, the voltage of the node to be measured SW is equal to the voltage of the reference node PGND. At this time, the second controlled current Iflip2 is equal to the first controlled current Iflip1, and the voltage value of the second end of the resistor r3 is equal to the voltage value of the second end of the resistor r1. At this time, the comparison signal V NOCL At low level. The comparison signal V at low level NOCL is provided to the second driving circuit to control the transistor Mn2 to turn off. When the transistor Mn2 is turned off, the inductor current can be quickly returned to zero through the body diode of the transistor Mn2.
[0033] Ignoring the output delay of the comparator COMP and the second driving circuit according to the comparison signal V NOCL In the case where the logic delay of turning off the transistor Mn2 is controlled, the voltage detection circuit 110 can be used to prevent the inductor current from becoming a negative current.
[0034] Based on the above principle, by setting the difference △r between the resistance values of resistors r2 and r4, the comparator COMP can output a low level when the inductor current is equal to the preset current value to control the transistor Mn2 to turn off. The negative overcurrent limit (NOCL) function is implemented based on this principle. Setting the preset current value to a negative value can achieve NOCL. When the output delay of the comparator COMP is ignored and the second drive circuit is based on the comparison signal V NOCL To control the logic delay of transistor Mn2 turning off, according to Kirchhoff's voltage law, the comparison signal V output by the comparator COMP can be obtained. NOCL When the level flips:
[0035] I NOCL =Iflip1×△r / R MN2 (1)
[0036] Among them, I NOCL Represents the comparison signal V NOCL The inductor current value flowing through the inductor L when the level of is flipped, Iflip1 represents the current value of the first controlled current Iflip1, △r represents the difference between the resistance values of the resistor r2 and the resistor r4, R MN2 represents the on-resistance value of transistor Mn2 when it is on. It should be noted that when the comparison signal V NOCL When the level of I is reversed, Iflip1=Iflip2. The resistance value of resistor r2 can be set to be smaller than the resistance value of resistor r4 (that is, △r is a negative value) to make I NOCL Is a negative value.
[0037] As described above, the first controlled current Iflip1 and the second controlled current Iflip2 are shunts of the mirror current of the bias current generated by the bias current module. In the bias current module, the magnitude of the bias current is associated with the bandgap reference voltage. The resistor used to generate the bias current in the bias current module has a negative temperature coefficient. When the comparison signal V NOCL When the level of is flipped, the first controlled current Iflip1 is equal to the second controlled current Iflip2, and the ratio of the first controlled current Iflip1 to the bias current Ibias is 1:k. Therefore:
[0038] Iflip1=Iflip2=k×V BG / Rbias (2)
[0039] Among them, V BG represents the voltage value of the bandgap reference voltage, and Rbias represents the resistance value of the resistor used to generate the bias current in the bias current module.
[0040] According to formula (1) and formula (2), we can get:
[0041] I NOCL =k×△r×V BG / (Rbias×R MN2 ) (3)
[0042] In traditional designs, the resistor used to generate the bias current is selected from the same type of resistor (with the same temperature coefficient) as resistors R2 and R4. Thus, from equation (3), it can be seen that when the temperature changes, I NOCL The value will change with the on-resistance value R of transistor Mn2. MN2 That is, I NOCL The degree of change with temperature depends only on the temperature characteristics of transistor Mn2. In the traditional design, the input voltage of the DC-DC converter can reach 18V, then its power switch tube (for example, Figure 1The withstand voltage of the transistor Mn2 in the circuit needs to reach 20V. The on-resistance value of this type of transistor has a high positive temperature coefficient. NOCL Because the on-resistance value R of transistor Mn2 MN2 Therefore, Figure 1 The inductor current values I detected when the DC-DC converter 100 triggers the NOCL function at different temperatures NOCL There are obvious changes, causing the NOCL function to be inaccurate.
[0043] Figure 3 An exemplary circuit diagram for a DC-DC converter 300 according to an embodiment of the present disclosure is shown. The DC-DC converter 300 may include: a circuit 310 for detecting a voltage of a node to be measured, a second transistor M2, a third transistor M3, an inductor L, and a capacitor C. Among them, the control electrode of the second transistor M2 is coupled to the first drive control terminal CTL1. The first electrode of the second transistor M2 is coupled to the measured node SW. The second electrode of the second transistor M2 is coupled to the input voltage terminal Vin. The control electrode of the third transistor M3 is coupled to the second drive control terminal CTL2. The first electrode of the third transistor M3 is coupled to the second voltage terminal V2. The second electrode of the third transistor M3 is coupled to the measured node SW. The first end of the inductor L is coupled to the measured node SW. The second end of the inductor L is coupled to the output voltage terminal Vout. The first end of the capacitor C is coupled to the output voltage terminal Vout. The second end of the capacitor C is coupled to the second voltage terminal V2. Figure 3 A load current source Iload is also shown.
[0044] exist Figure 3 In the example of FIG. 3 , although not shown, the DC-DC converter 300 may include a first drive circuit and a second drive circuit. The first drive circuit may output a first drive control signal from a first drive control terminal CTL1 to control the on and off of the second transistor M2. The second drive circuit may output a second drive control signal from a second drive control terminal CTL2 to control the on and off of the third transistor M3.
[0045] The circuit 310 for detecting the voltage of the node to be measured may include: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first current source Iflip1, a second current source Iflip2, a comparator COMP, and a temperature compensation circuit 311. The first end of the first resistor R1 is coupled to the first voltage terminal V1. The second end of the first resistor R1 is coupled to the first input terminal of the comparator COMP and the first end of the first current source Iflip1. The first current source Iflip1 is configured to generate a first controlled current Iflip1 according to a first voltage difference between the first end of the first current source Iflip1 and the second end of the first current source Iflip1. The first end of the second resistor R2 is coupled to the second end of the first current source Iflip1. The second end of the second resistor R2 is coupled to the temperature compensation circuit 311. The first end of the third resistor R3 is coupled to the first voltage terminal V1. The second end of the third resistor R3 is coupled to the second input terminal of the comparator COMP and the first end of the second current source Iflip2. The second current source Iflip2 is configured to generate a second controlled current Iflip2 according to a second voltage difference between a first end of the second current source Iflip2 and a second end of the second current source Iflip2. A first end of the fourth resistor R4 is coupled to the second end of the second current source Iflip2. A second end of the fourth resistor R4 is coupled to the test node SW. The temperature compensation circuit 311 is coupled to the second voltage terminal V2 and is configured to provide a compensation voltage equal to a voltage change value generated by a voltage change of the test node SW with temperature to the second end of the second resistor R2. A comparison signal V is output from the output terminal of the comparator COMP. NOCL . Comparison signal V NOCL It may indicate whether the voltage at the second end of the third resistor R3 is equal to or greater than the voltage at the second end of the first resistor R1 .
[0046] exist Figure 3 In the example, a high voltage signal is input from the first voltage terminal V1, and the second voltage terminal V2 is grounded. The first input terminal of the comparator is the non-inverting input terminal. The second input terminal of the comparator is the inverting input terminal. The resistance value of the first resistor R1 is equal to the resistance value of the third resistor R3. The resistance value of the second resistor R2 is equal to the resistance value of the fourth resistor R4. In this way, the voltage comparison between the second end of the second resistor R2 and the second end of the fourth resistor R4 is equivalent to the voltage comparison between the second end of the first resistor R1 and the second end of the third resistor R3. In other words, the comparison signal V NOCLIt can indicate whether the voltage at the second end (the node to be tested SW) of the fourth resistor R4 is equal to or greater than the voltage at the second end of the second resistor R2. The sum of the first controlled current Iflip1 and the second controlled current Iflip2 is equal to the constant current. The constant current is a mirror current of the bias current generated by the bias current module. The specific circuit structure of the generation circuit of the first controlled current Iflip1 and the second controlled current Iflip2 can be compared with Figure 2 The examples shown are the same and are not repeated here.
[0047] When the second transistor M2 is turned on and the third transistor M3 is turned off, the input voltage Vin from the input voltage terminal Vin charges the inductor L, and the inductor current flows from the node to be measured SW to the output voltage terminal Vout. When the second transistor M2 is turned off and the third transistor M3 is turned on, the inductor L discharges, and the inductor current flowing through the inductor L gradually decreases. At this time, the inductor current still flows from the node to be measured SW to the output voltage terminal Vout, that is, it is a positive current. Figure 3 I+ is used to represent positive current. When the positive current I+ decreases to 0A, the inductor current flows from the output voltage terminal Vout to the node to be measured SW, which is a negative current. Figure 3 I- is used to represent negative current.
[0048] As mentioned above, the inductor current value I NOCL Affected by temperature, the voltage Vsw of the node SW to be tested is R M3 ×I NOCL Will be affected by temperature, among which R M3 represents the on-resistance value of the third transistor M3 when it is turned on. The temperature compensation circuit 311 can provide a compensation voltage to the second end of the second resistor R2 that is equal to the voltage change value caused by the voltage of the node SW to be measured due to the temperature change. In this way, the comparison signal V NOCL It can accurately indicate the inductor current value I when the temperature changes NOCL Is it equal to or less than the preset current value? NOCL When the current is equal to or less than the preset current value, the comparison signal V NOCL The level of is flipped to a low level, so as to control the third transistor M3 to be turned off through the second drive control signal CTL2. The inductor current is quickly returned to zero through the body diode of the third transistor M3. In this way, negative overcurrent can be effectively limited, and the efficiency of the system under light load can be improved.
[0049] The withstand voltage of the third transistor M3 may exceed 20V, so its on-resistance has a positive temperature coefficient with a relatively high amplitude. In some embodiments of the present disclosure, the temperature compensation circuit 311 may include a component with a resistance value having a positive temperature coefficient. Assume that the resistance value of the component is △R. By setting the value of △R, the comparator COMP can be made to NOCL When the current value is equal to the preset value, a low level is output to control the transistor Mn2 to be turned off.
[0050] Ignoring the output delay of the comparator COMP and the second driving circuit according to the comparison signal V NOCL To control the logic delay of the third transistor M3 being turned off, the comparison signal V output by the comparator COMP can be obtained according to Kirchhoff's voltage law. NOCL When the level flips:
[0051] I NOCL =Iflip1×△R / R M3 (4)
[0052] Among them, I NOCL Indicates that the comparison signal V NOCL The current value flowing through the inductor L when the level of is flipped, Iflip1 represents the current value of the first controlled current Iflip1, △R represents the resistance value of the components in the temperature compensation circuit 311, R M3 represents the on-resistance value of the third transistor M3 when it is turned on. NOCL When the level is flipped, Iflip1=Iflip2.
[0053] As described above, the first controlled current Iflip1 and the second controlled current Iflip2 can be shunts of the mirror current of the bias current generated by the bias current module. In the bias current module, the magnitude of the bias current is associated with the bandgap reference voltage. The resistor used to generate the bias current in the bias current module has a negative temperature coefficient. When the comparison signal V output by the comparator COMP NOCL When the level of is flipped, the first controlled current Iflip1 is equal to the second controlled current Iflip2, and the ratio of the first controlled current Iflip1 to the bias current Ibias is 1:k. Therefore:
[0054] Iflip1=Iflip2=k×V BG / Rbias (5)
[0055] Among them, V BG represents the voltage value of the bandgap reference voltage, and Rbias represents the resistance value of the resistor used to generate the bias current in the bias current module.
[0056] According to formula (4) and formula (5), we can get:
[0057] I NOCL =k×△R×V BG / (Rbias×R M3 ) (6)
[0058] It can be seen from equation (6) that, when the resistor generating the bias current has a relatively low negative temperature coefficient, by setting the size of the positive temperature coefficient of the components in the temperature compensation circuit 311, the positive temperature characteristic of the third transistor M3 on the inductor current I NOCL Thus, the inductor current value I detected when the DC-DC converter according to the embodiment of the present disclosure triggers the NOCL function at different temperatures is NOCL are equal to the preset current value.
[0059] Figure 4 Shows Figure 3 FIG. 3 is an exemplary circuit diagram of a temperature compensation circuit 311. Figure 4 In the example of , the temperature compensation circuit 311 may include a first transistor M1. The control electrode and the first electrode of the first transistor M1 are coupled to the second voltage terminal V2. The second electrode of the first transistor M1 is coupled to the second end of the second resistor R2. In this way, the first transistor M1 is in a normally open state.
[0060] In some embodiments of the present disclosure, the first transistor M1 and the third transistor M3 are of the same type, for example, both are P-type transistors. The temperature coefficient of the first transistor M1 and the temperature coefficient of the third transistor M3 are of the same type, for example, both are positive temperature coefficients. The temperature coefficient of the first transistor M1 is smaller than the temperature coefficient of the third transistor M3.
[0061] exist Figure 4 In the example of , △R in formula (6) can represent the on-resistance value of the first transistor M1 when it is turned on. The temperature coefficient of the on-resistance value of the first transistor M1 when it is turned on is less than the temperature coefficient of the on-resistance value of the third transistor M3 when it is turned on. M3 The temperature coefficient of △R can be calculated to effectively offset the effect of temperature on the inductor current I when the temperature changes. NOCL impact.
[0062] Figure 5 Shows Figure 3 Another exemplary circuit diagram of the temperature compensation circuit 311 is shown in FIG. Figure 5 In an example, the temperature compensation circuit 311 may include a thermistor R5 having a positive temperature coefficient, wherein a first end of the thermistor R5 is coupled to a second end of the second resistor R2, and a second end of the thermistor R5 is coupled to a second voltage terminal V2.
[0063] exist Figure 5In the example of , △R in formula (6) can represent the resistance value of thermistor R5. The temperature coefficient of thermistor R5 is less than the temperature coefficient of the on-resistance value when the third transistor M3 is turned on. M3 The temperature coefficient of △R can be calculated to effectively offset the effect of temperature on the inductor current I when the temperature changes. NOCL impact.
[0064] In summary, the circuit for detecting the voltage of the node to be measured according to the embodiment of the present disclosure takes into account the influence of temperature on the voltage of the node to be measured, and compensates for the voltage change value of the node to be measured caused by the temperature change, so as to make the detection of the voltage of the node to be measured more accurate. The DC-DC converter according to the embodiment of the present disclosure uses the above circuit to improve the inductor current value I flowing through the inductor L when the NOCL function is triggered. NOCL Affected by temperature changes, the DC-DC converter has stable performance at different temperatures. This is of great significance for improving the ripple characteristics of the output voltage and transient response characteristics of the DC-DC converter in a specific working mode.
[0065] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device and method according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0066] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0067] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.
[0068] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.
Claims
1. A circuit for detecting a voltage of a node to be tested, comprising: a first resistor, a second resistor, a third resistor, a fourth resistor, a first current source, a second current source, a comparator, and a temperature compensation circuit, Wherein, a first end of the first resistor is coupled to a first voltage end, and a second end of the first resistor is coupled to a first input end of the comparator and a first end of the first current source; A first end of the second resistor is coupled to a second end of the first current source, and a second end of the second resistor is coupled to the temperature compensation circuit; The first current source is configured to generate a first controlled current according to a first voltage difference between the first terminal of the first current source and the second terminal of the first current source; A first end of the third resistor is coupled to the first voltage end, and a second end of the third resistor is coupled to the second input end of the comparator and the first end of the second current source; A first end of the fourth resistor is coupled to the second end of the second current source, and a second end of the fourth resistor is coupled to the node to be measured; the second current source being configured to generate a second controlled current according to a second voltage difference between the first terminal of the second current source and the second terminal of the second current source; The temperature compensation circuit is coupled to the second voltage terminal and is configured to provide a compensation voltage to the second terminal of the second resistor that is equal to a voltage change value generated when the voltage of the node to be measured changes with temperature; The output terminal of the comparator outputs a comparison signal, and the comparison signal indicates whether the voltage of the node to be tested is equal to or greater than the voltage of the second terminal of the second resistor.
2. The circuit according to claim 1, wherein The temperature compensation circuit includes a first transistor, The control electrode and the first electrode of the first transistor are coupled to the second voltage terminal, and the second electrode of the first transistor is coupled to the second terminal of the second resistor.
3. The circuit according to claim 1, wherein: The temperature compensation circuit includes a thermistor having a positive temperature coefficient, The first end of the thermistor is coupled to the second end of the second resistor, and the second end of the thermistor is coupled to the second voltage end.
4. The circuit according to claim 1, wherein: The sum of the first controlled current and the second controlled current is equal to a constant current.
5. The circuit according to claim 4, wherein: The constant current is a mirror current of a bias current generated by a bias current module, and a resistor in the bias current module for generating the bias current has a negative temperature coefficient.
6. The circuit according to any one of claims 1 to 4, wherein: The resistance value of the first resistor is equal to the resistance value of the third resistor.
7. The circuit according to any one of claims 1 to 4, wherein: The resistance value of the second resistor is equal to the resistance value of the fourth resistor.
8. A DC-DC converter, comprising: The circuit according to claim 1, the second transistor, the third transistor, the inductor, and the capacitor, Wherein, the control electrode of the second transistor is coupled to the first driving control terminal, the first electrode of the second transistor is coupled to the node to be measured, and the second electrode of the second transistor is coupled to the input voltage terminal; The control electrode of the third transistor is coupled to the second driving control terminal, the first electrode of the third transistor is coupled to the second voltage terminal, and the second electrode of the third transistor is coupled to the node to be tested; The first end of the inductor is coupled to the node to be measured, and the second end of the inductor is coupled to the output voltage end; The first terminal of the capacitor is coupled to the output voltage terminal, and the second terminal of the capacitor is coupled to the second voltage terminal.
9. The DC-DC converter according to claim 8, wherein: The temperature compensation circuit includes a first transistor, The control electrode and the first electrode of the first transistor are coupled to the second voltage terminal, and the second electrode of the first transistor is coupled to the second terminal of the second resistor; The first transistor and the third transistor are of the same type.
10. The DC-DC converter according to claim 9, wherein: A temperature coefficient of the first transistor is smaller than a temperature coefficient of the third transistor.
