Constant current control circuit and LED constant current control system
By designing a constant current control circuit, the sampling voltage and current limit reference voltage are used to generate overcurrent detection signals, and the constant current reference voltage and clock signals are switched, the traditional DC-DC constant current control chip has high power consumption in the short-circuit protection state. The problem is that lower average power consumption is achieved.
Patent Information
- Application Number
- CN202323630857.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2033-12-28
AI Technical Summary
Traditional DC-DC constant current control chips consume high power in the short-circuit protection state, and there is a problem of high power consumption in hiccup mode.
A constant current control circuit is designed, including a sampling unit, a current limiting unit, a constant current unit, a reference and frequency generation unit and a driving unit. The overcurrent detection signal is generated by comparing the sampling voltage and the current limiting reference voltage, and the constant current reference voltage and Clock signal switching reduces power consumption during short circuit protection.
It effectively reduces the power consumption of the system in the short-circuit protection state, increases the period of the hiccup state, and reduces the average power consumption of the system.
Smart Images

Figure CN222030100U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of power management, in particular to a constant current control circuit and an LED constant current control system. Background Art
[0002] The output short-circuit control method in the traditional DC-DC constant current control chip often determines whether it has entered a short-circuit state by detecting the peak current and the comparison signal output by the comparator. When it is determined that it has entered a short-circuit state, the DC-DC constant current control chip will turn off the power tube, causing the current on the inductor to switch from rising to falling. At this time, the current limiting signal is released until the comparison signal output by the comparator is flipped again, and the DC-DC constant current control chip will exit the short-circuit protection; if the current limiting signal has not been released, the DC-DC constant current control chip will enter the hiccup mode, and the power consumption of the DC-DC constant current control chip is relatively high. Utility Model Content
[0003] The utility model provides a constant current control circuit and an LED constant current control system, which are used to solve the problem of high power consumption of the constant current control circuit in a short circuit protection state in the prior art.
[0004] In a first aspect, an embodiment of the utility model provides a constant current control circuit, comprising: a sampling unit, a current limiting unit, a constant current unit, a reference and frequency generating unit, and a driving unit;
[0005] The sampling unit is connected between the input terminal and the sampling terminal, and the sampling unit outputs a sampling voltage;
[0006] The current limiting unit receives the sampling voltage and the current limiting reference voltage, and outputs an overcurrent detection signal according to a comparison result between the sampling voltage and the current limiting reference voltage, wherein when the sampling voltage is greater than or equal to the current limiting reference voltage, the overcurrent detection signal is valid, and when the sampling voltage is less than the current limiting reference voltage, the overcurrent detection signal is invalid;
[0007] The reference and frequency generating unit is connected to the input terminal, receives an input voltage, and outputs the current limiting reference voltage according to the input voltage;
[0008] The constant current unit receives the sampling voltage and the constant current reference voltage, outputs a constant current control signal and a second inverted signal which is inverted with the constant current control signal, when the sampling voltage is greater than or equal to the constant current reference voltage, the second inverted signal is invalid, when the sampling voltage is less than the constant current reference voltage, the second inverted signal is valid;
[0009] The reference and frequency generating unit receives the overcurrent detection signal and the second inverted signal, and outputs a clock signal and a constant current reference voltage: when the overcurrent detection signal is valid and the second inverted signal is invalid, the constant current reference voltage is switched from the first constant current reference voltage to the second constant current reference voltage, and the clock signal is switched from the first clock signal to the second clock signal; when the overcurrent detection signal is invalid and the second inverted signal is valid, the reference and frequency generating unit switches the constant current reference voltage from the second constant current reference voltage to the first constant current reference voltage, and the clock signal is switched from the second clock signal to the first clock signal; the first constant current reference voltage is greater than the second constant current reference voltage; the frequency of the first clock signal is greater than the frequency of the second clock signal;
[0010] The driving unit receives the clock signal, the overcurrent detection signal and the constant current control signal, and outputs a driving signal.
[0011] In a possible implementation, the reference and frequency generating unit includes:
[0012] a reference generating unit, receiving the input voltage and the switching control signal, and outputting the current limiting reference voltage and the constant current reference voltage: when the switching control signal is valid, the constant current reference voltage is switched from the first constant current reference voltage to the second constant current reference voltage; when the switching control signal is invalid, the constant current reference voltage is switched from the second constant current reference voltage to the first constant current reference voltage;
[0013] The frequency generating unit receives the overcurrent detection signal and the second inverted signal, and outputs the switching control signal and the clock signal; when the overcurrent detection signal is valid and the second inverted signal is invalid, the switching control signal is switched from invalid to valid, and the clock signal is switched from the first clock signal to the second clock signal; when the overcurrent detection signal is invalid and the second inverted signal is valid, the switching control signal is switched from valid to invalid, and the clock signal is switched from the second clock signal to the first clock signal.
[0014] In a possible implementation, the reference generation unit includes a power supply module and a reference switching module;
[0015] The power supply module is connected to the input end, receives the input voltage, and outputs the current limiting reference voltage and the first constant current reference voltage according to the input voltage;
[0016] The reference switching module receives the first constant-current reference voltage and the switching control signal, and outputs the constant-current reference voltage.
[0017] In a possible implementation, the reference switching module includes a first inverter, a first comparator, a triode, a first resistor, a second resistor, a first switch tube, and a second switch tube;
[0018] The input end of the first inverter is electrically connected to the control end of the second switch tube, and the switching control signal is input, and the output end of the first inverter is electrically connected to the control end of the first switch tube;
[0019] The first end of the first switch tube is electrically connected to the first end of the first resistor, the second input end of the first comparator and the second end of the triode, and the second end of the first switch tube is electrically connected to the second end of the second switch tube to output the constant current reference voltage;
[0020] The first end of the second switch tube is electrically connected to the second end of the first resistor and the first end of the second resistor;
[0021] The second end of the second resistor is electrically connected to the ground end;
[0022] The first constant current reference voltage is input into a first input terminal of the first comparator, and an output terminal of the first comparator is electrically connected to a control terminal of the transistor;
[0023] The first end of the transistor is electrically connected to the power supply end.
[0024] In a possible implementation, the current limiting unit includes a second comparator;
[0025] The sampling voltage is input into the first input terminal of the second comparator, the current limiting reference voltage is input into the second input terminal of the second comparator, and the overcurrent detection signal is output from the output terminal of the second comparator.
[0026] In a possible implementation, the constant current unit includes a transconductance amplification module, a comparison module, a compensation module and an inversion module;
[0027] The transconductance amplification module inputs the sampling voltage and the constant current reference voltage, and the transconductance amplification module integrates the difference between the sampling voltage and the constant current reference voltage, and outputs compensation;
[0028] The comparison module inputs the peak reference voltage and the compensation voltage, and outputs the constant current control signal according to the comparison result of the peak reference voltage and the compensation voltage: when the compensation voltage is greater than or equal to the peak reference voltage, the constant current control signal is valid, and when the compensation voltage is less than the peak reference voltage, the constant current control signal is invalid, wherein the peak reference voltage is K times the sampling voltage, and K is a positive number greater than 1;
[0029] The inverting module inputs the constant current control signal, and the inverting module inverts the constant current control signal and then outputs the second inverted signal;
[0030] The compensation module is connected between the output terminal of the transconductance amplification module and a ground terminal.
[0031] In a possible implementation, the transconductance amplification module includes a first transconductance amplifier;
[0032] The sampling voltage is input into the second input terminal of the first transconductance amplifier, the constant current reference voltage is input into the first input terminal of the first transconductance amplifier, and the compensation voltage is output into the output terminal of the first transconductance amplifier.
[0033] In a possible implementation, the comparison module includes a third comparator;
[0034] The compensation voltage is inputted into the first input terminal of the third comparator, the peak reference voltage is inputted into the second input terminal of the third comparator, and the constant current control signal is outputted into the output terminal of the third comparator.
[0035] In a possible implementation, the compensation module includes a third resistor and a first capacitor;
[0036] A first end of the third resistor is electrically connected to the output end of the first transconductance amplifier, and a second end of the third resistor is electrically connected to the first end of the first capacitor;
[0037] The second end of the first capacitor is electrically connected to the ground end.
[0038] In a possible implementation, the inversion module includes a fourth inverter;
[0039] The input end of the fourth inverter inputs the constant current control signal, and the output end of the fourth inverter outputs the second inverted signal.
[0040] In a possible implementation, the frequency generating unit includes a trigger module and a clock switching module;
[0041] The trigger module inputs the second inverted signal and the overcurrent detection signal, and outputs the switching control signal;
[0042] The clock switching module inputs the switching control signal and outputs the clock signal.
[0043] In a possible implementation, the trigger module includes a first trigger;
[0044] The reset terminal of the first trigger inputs the second inverted signal, the set terminal of the first trigger inputs the overcurrent detection signal, and the output terminal of the first trigger outputs the switching control signal.
[0045] In a possible implementation, the clock switching module includes a second inverter, a first current source, a second current source, a first switch, a second switch, a third switch, a second capacitor, and a sawtooth wave processing module;
[0046] The switching control signal is input to an input terminal of the second inverter, and an output terminal of the second inverter is electrically connected to a control terminal of the first switch;
[0047] The second end of the first switch is connected to the output end of the first current source and the first end of the second switch, and the first end of the first switch is electrically connected to the output end of the second current source;
[0048] The first terminal of the first current source is electrically connected to the first terminal of the second current source and a power supply terminal;
[0049] The second end of the second switch is connected to the first end of the second capacitor and the first end of the third switch to output the first sawtooth wave or the second sawtooth wave, and the control end of the second switch receives a charging control signal;
[0050] The second end of the third switch is connected to the second end of the second capacitor and to the ground, and the control end of the third switch receives a discharge control signal;
[0051] The sawtooth wave processing module inputs the first sawtooth wave or the second sawtooth wave, outputs the charging control signal and the discharging control signal, and outputs the discharging control signal as a clock signal to the driving unit.
[0052] In a possible implementation, the sawtooth wave processing module includes a fourth comparator, a fifth comparator, a second trigger and a third inverter;
[0053] The first input terminal of the fourth comparator and the second input terminal of the fifth comparator are input with the first sawtooth wave or the second sawtooth wave, the second input terminal of the fourth comparator is input with a third reference voltage, and the output terminal of the fourth comparator is electrically connected with the reset terminal of the second trigger;
[0054] A fourth reference voltage is input to a first input terminal of the fifth comparator, and an output terminal of the fifth comparator is electrically connected to a set terminal of the second trigger;
[0055] The output terminal of the second trigger is electrically connected to the input terminal of the third inverter to output the charging control signal;
[0056] The output terminal of the third inverter outputs the discharge control signal, and outputs the discharge control signal as a clock signal to the driving unit.
[0057] In a possible implementation, the sampling unit includes a second transconductance amplifier and a fourth resistor;
[0058] The sampling unit is connected to two ends of the sampling resistor, the first end of the sampling resistor is the input end, and the second end of the sampling resistor is the sampling end;
[0059] The first input terminal of the second transconductance amplifier is electrically connected to the input terminal, the second input terminal of the second transconductance amplifier is electrically connected to the sampling terminal, the output terminal of the second transconductance amplifier is electrically connected to the first terminal of the fourth resistor, and outputs the sampling voltage;
[0060] The second end of the fourth resistor is electrically connected to the ground end.
[0061] In a possible implementation, the driving unit includes a NAND gate, a fifth inverter, a NOR gate, a sixth inverter, a third trigger, a seventh inverter, a delay module, a third switch tube and a fourth switch tube;
[0062] The input end of the NAND gate receives the constant current control signal, and the NAND gate is also connected to the delay module to receive a delay signal that delays the driving signal for a preset time;
[0063] The input terminal of the fifth inverter is connected to the output terminal of the NAND gate;
[0064] The first input end of the NOR gate is connected to the output end of the fifth inverter, and the second input end of the NOR gate receives the overcurrent detection signal;
[0065] The input end of the sixth inverter is connected to the output end of the NOR gate;
[0066] The reset terminal of the third flip-flop is connected to the output terminal of the sixth inverter, the set terminal of the third flip-flop receives the clock signal, and the output terminal of the third flip-flop is connected to the input terminal of the seventh inverter;
[0067] The output end of the seventh inverter is electrically connected to the control end of the third switch tube and the control end of the fourth switch tube;
[0068] The first end of the third switch tube is electrically connected to the power supply end, and the second end of the third switch tube is electrically connected to the first end of the fourth switch tube to output the driving signal;
[0069] The second end of the fourth switch tube is connected to the ground end.
[0070] In a second aspect, an embodiment of the utility model further provides an LED constant current control system, comprising a constant current control circuit as described in any one of the first aspects, and further comprising a sampling resistor, an LED, an inductor, a power tube and a freewheeling diode;
[0071] The sampling resistor is connected between the input terminal and the sampling terminal;
[0072] The cathode of the freewheeling diode is connected to the input end, and the anode of the freewheeling diode is connected to the first end of the inductor and the first end of the power tube;
[0073] The second end of the inductor is connected to the cathode of the LED;
[0074] The anode of the LED is connected to the sampling end;
[0075] The second end of the power tube is connected to the ground end, and the control end of the power tube receives the driving signal output by the constant current control circuit;
[0076] The sampling unit in the constant current control circuit is connected between the input terminal and the sampling terminal.
[0077] In a possible implementation, it also includes an input capacitor and an output capacitor;
[0078] The first end of the input capacitor is connected to the input end, and the second end of the input capacitor is connected to the ground end;
[0079] The output capacitor is connected in parallel with the LED.
[0080] The beneficial effects of the utility model are as follows:
[0081] In the embodiment of the utility model, the current limiting unit generates an overcurrent detection signal based on the sampling voltage and the current limiting reference voltage, the constant current module outputs a constant current control signal and a second inverted signal based on the sampling voltage and the constant current reference voltage, the reference and frequency generating unit outputs a current limiting reference voltage based on the input voltage, and the reference and frequency generating unit generates a constant current reference voltage and a clock signal based on the overcurrent detection signal and the second inverted signal; when the overcurrent detection signal is valid and the second inverted signal is invalid, the constant current reference voltage is switched from the first constant current reference voltage to the second constant current reference voltage, and the clock signal is switched from the first clock signal to the second clock signal; when the overcurrent detection signal is invalid and the second inverted signal is valid, the constant current reference voltage is switched from the second constant current reference voltage to the first constant current reference voltage, and the clock signal is switched from the second clock signal to the first clock signal, wherein the first constant current reference voltage is greater than the second constant current reference voltage, and the frequency of the first clock signal is greater than the frequency of the second clock signal. When a short circuit occurs in the system, that is, the overcurrent detection signal is valid and the second inverting signal is invalid, the constant current reference voltage is switched to a second constant current reference voltage with a smaller voltage, and the clock signal is switched to a second clock signal with a smaller frequency, thereby increasing the period of the hiccup state and reducing system power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0083] Figure 1 A schematic diagram of the structure of an LED constant current control system provided by an embodiment of the utility model;
[0084] Figure 2 A structural schematic diagram of a constant current control circuit provided by an embodiment of the utility model;
[0085] Figure 3 A schematic diagram of the structure of a sampling unit provided in an embodiment of the utility model;
[0086] Figure 4 A schematic diagram of the structure of a reference switching module provided by an embodiment of the utility model;
[0087] Figure 5 A structural schematic diagram of another constant current control circuit provided by an embodiment of the utility model;
[0088] Figure 6 A schematic diagram of the structure of a clock switching module provided by an embodiment of the utility model;
[0089] Figure 7 A working waveform diagram of a first clock signal generated when a constant current control system provided by an embodiment of the utility model works normally;
[0090] Figure 8 A working waveform diagram of a constant current control system provided by an embodiment of the utility model generating a second clock signal in a short circuit protection state;
[0091] Fig. 9 A schematic diagram of the structure of a driving unit provided in an embodiment of the utility model;
[0092] Fig.10 A timing diagram of a constant current control system in a short-circuit state provided for related technologies;
[0093] Fig.11 A timing diagram of a constant current control system in a short-circuit state provided by an embodiment of the utility model. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical solution and advantages of the utility model clearer, the utility model will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0095] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0096] The present utility model provides a constant current control system, such as Figure 1 As shown, the constant current control system includes a constant current control circuit 10, a sampling resistor RS, an LED, an inductor L, a power tube M and a freewheeling diode D;
[0097] The sampling resistor RS is connected between the input terminal VIN and the sampling terminal VCS;
[0098] The cathode of the freewheeling diode D is connected to the input terminal VIN, and the cathode of the freewheeling diode D is connected to the first end of the inductor L and the first end of the power tube M;
[0099] A first end of the inductor L is connected to the cathode of the LED;
[0100] The second end of the power tube M is connected to the ground end, and the control end of the power tube receives the driving signal GATE output by the constant current control circuit 10;
[0101] The sampling unit ( Figure 1 The input terminal VIN and the output terminal VCS are connected between the input terminal VIN and the output terminal VCS.
[0102] Figure 1 The constant current control system provided by the embodiment of the utility model shown may also include an input capacitor Cin and an output capacitor Cout;
[0103] A first end of the input capacitor Cin is connected to the input terminal VIN, and a second end of the input capacitor Cin is connected to the ground terminal;
[0104] The output capacitor Cout is connected in parallel with the LED.
[0105] Figure 1 The constant current control system shown is a system structure of a DC-DC BUCK topology. When the power tube M is turned on, the current direction in the constant current control system is from the input terminal VIN, the sampling resistor RS, the LED, the inductor L and the power tube M to the ground terminal, and the inductor L is in the charging stage; when the power tube M is turned off, the current direction in the constant current control system is from the input terminal VIN, the sampling resistor RS, the LED, the inductor L and the freewheeling diode D, and the inductor L is in the discharging stage; in a specific implementation, the entire constant current loop is controlled by the voltage across the sampling resistor RS.
[0106] like Figure 2 FIG. 1 is a schematic diagram of a constant current control circuit provided by an embodiment of the utility model, from Figure 2 It can be seen that the constant current control circuit includes a sampling unit 11, a reference and frequency generating unit 12, a current limiting unit 13, a constant current unit 14 and a driving unit 15;
[0107] The sampling unit 11 is connected between the input terminal VIN and the sampling terminal VCS, and the sampling unit 11 outputs a sampling voltage VSAMP;
[0108] The current limiting unit 13 receives the sampling voltage VSAMP and the current limiting reference voltage Vrefli, and outputs an overcurrent detection signal V1 according to the comparison result between the sampling voltage VSAMP and the current limiting reference voltage Vrefli. When the sampling voltage VSAMP is greater than or equal to the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is valid, and when the sampling voltage VSAMP is less than the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is invalid;
[0109] The reference and frequency generating unit 12 is connected to the input terminal VIN, receives the input voltage Vin, and outputs the current limiting reference voltage Vrefli according to the input voltage Vin;
[0110] The constant current unit 14 receives the sampling voltage VSAMP and the constant current reference voltage, and outputs a constant current control signal V2 and a second inverted signal XV2 which is inverted to the constant current control signal V2. When the sampling voltage VSAMP is greater than or equal to the constant current reference voltage, the second inverted signal XV2 is invalid. When the sampling voltage VSAMP is less than the constant current reference voltage, the second inverted signal XV2 is valid.
[0111] The reference and frequency generating unit 12 receives the overcurrent detection signal V1 and the second inverted signal XV2, and outputs a clock signal and a constant current reference voltage: when the overcurrent detection signal V1 is valid and the second inverted signal XV2 is invalid, the constant current reference voltage is switched from the first constant current reference voltage Vref1 to the second constant current reference voltage Vref2, and the clock signal is switched from the first clock signal CLK1 to the second clock signal CLK2; when the overcurrent detection signal V1 is invalid and the second inverted signal XV2 is valid, the reference and frequency generating unit 12 switches the constant current reference voltage from the second constant current reference voltage Vref2 to the first constant current reference voltage Vref1, and the clock signal is switched from the second clock signal Vref2 to the first clock signal Vref1; the first constant current reference voltage Vref1 is greater than the second constant current reference voltage Vref2; the frequency of the first clock signal CLK1 is greater than the frequency of the second clock signal CLK2;
[0112] The driving unit 15 receives a clock signal, an over-current detection signal V1 and a constant current control signal V2, and outputs a driving signal GATE.
[0113] In the embodiment of the utility model, the current limiting unit 13 generates an overcurrent detection signal V1 based on the sampling voltage VSAMP and the current limiting reference voltage Vrefli, the constant current unit 14 outputs a constant current control signal V2 and a second inverted signal XV2 based on the sampling voltage VSAMP and the constant current reference voltage, the reference and frequency generating unit 12 outputs a current limiting reference voltage Vrefli based on the input voltage Vin, and the reference and frequency generating unit 12 generates a constant current reference voltage and a clock signal based on the overcurrent detection signal V1 and the second inverted signal XV2. When the overcurrent detection signal V1 is valid and the second inverted signal XV2 is invalid, the constant current reference The voltage is switched from the first constant current reference voltage Vref1 to the second constant current reference voltage Vref2, and the clock signal is switched from the first clock signal CLK to the second clock signal CLK2. When the overcurrent detection signal V1 is invalid and the second inverted signal XV2 is valid, the constant current reference voltage is switched from the second constant current reference voltage Vref2 to the first constant current reference voltage Vref1, and the clock signal is switched from the second clock signal CLK2 to the first clock signal CLK1, wherein the first constant current reference voltage is greater than the second constant current reference voltage Vref2, and the frequency of the first clock signal CLK1 is greater than the frequency of the second clock signal CLK2. Since when a short circuit occurs in the system, that is, when the overcurrent detection signal V1 is valid and the second inverted signal XV2 is invalid, the constant current reference voltage is switched to the second constant current reference voltage Vref2 with a smaller voltage, and the clock signal is switched to the second clock signal CLK2 with a smaller frequency, the period of the hiccup state can be increased and the system power consumption can be reduced.
[0114] In a specific implementation, the first constant current reference voltage Vref1 is M times the second constant current reference voltage Vref2, where M is a positive number greater than 1; the frequency of the first clock signal CLK1 is N times the frequency of the second clock signal CLK2, where N is a positive number greater than 1.
[0115] In the embodiment of the utility model, the sampling unit 11 is connected between the input terminal VIN and the sampling terminal VCS. Figure 1 , the sampling resistor Rs is also connected between the input terminal VIN and the sampling terminal VCS. Therefore, the sampling unit inputs the input voltage Vin and the sampling voltage Vcs, and outputs the sampling voltage VSAMP. Specifically, Figure 3As shown, the sampling unit 11 includes a second transconductance amplifier U2 and a fourth resistor R4. The sampling unit 11 is connected to both ends of the sampling resistor. The first end of the sampling resistor is the input end VIN, and the second end of the sampling resistor is the sampling end VCS. The first input end of the second transconductance amplifier U2 receives the input voltage Vin, and the second input end of the second transconductance amplifier U2 receives the sampling voltage Vcs. The second transconductance amplifier U2 converts the differential voltage between the sampling voltage Vcs and the input voltage Vin into an output current that is output from the output end of the second transconductance amplifier U2; the fourth resistor R4 is connected between the output end of the second transconductance amplifier U2 and the ground end, and the output current of the second transconductance amplifier U2 generates a sampling voltage VSAMP on the fourth resistor R4. The connection node between the second transconductance amplifier U2 and the fourth resistor R4 serves as the output end of the sampling unit 11 to output the sampling voltage VSAMP.
[0116] The first input terminal of the second transconductance amplifier U2 is the positive phase input terminal of the transconductance amplifier, and the second input terminal of the second transconductance amplifier U2 is the negative phase input terminal of the transconductance amplifier.
[0117] In one embodiment, if Figure 2 As shown, the reference and frequency generating unit 12 includes a reference generating unit 121 and a frequency generating unit 122;
[0118] The reference generating unit 121 receives an input voltage Vin and a switching control signal SLP, and outputs a current limiting reference voltage Vrefli and a constant current reference voltage: when the switching control signal SLP is valid, the constant current reference voltage is switched from the first constant current reference voltage Vref1 to the second constant current reference voltage Vref2; when the switching control signal SLP is invalid, the constant current reference voltage is switched from the second constant current reference voltage Vref2 to the first constant current reference voltage Vref1;
[0119] The frequency generating unit 122 receives the overcurrent detection signal V1 and the second inverted signal XV2, and outputs a switching control signal SLP and a clock signal: when the overcurrent detection signal V1 is valid and the second inverted signal XV2 is invalid, the switching control signal SLP is switched from invalid to valid, and the clock signal is switched from the first clock signal CLK1 to the second clock signal CLK2; when the overcurrent detection signal V1 is invalid and the second inverted signal XV2 is valid, the switching control signal SLP is switched from valid to invalid, and the clock signal is switched from the second clock signal CLK2 to the first clock signal CLK1.
[0120] In an embodiment of the utility model, the frequency generating unit 122 outputs a switching control signal SLP and a clock signal based on the overcurrent detection signal V1 and the second inverted signal XV2, wherein the switching control signal SLP can control the voltage value of the constant current reference voltage output by the reference generating unit 121, for example, switching from the first constant current reference voltage Vref1 to the second constant current reference voltage Vref2, or switching from the second constant current reference voltage Vref2 to the first constant current reference voltage Vref1, wherein the voltage value of the first constant current reference voltage Vref1 is greater than the voltage value of the second constant current reference voltage Vref2. In addition, the clock signal output by the frequency generating unit 122 outputs clock signals of different frequencies under the control of the overcurrent detection signal V1 and the second inverted signal XV2, for example, switching from the first clock signal CLK1 to the second clock signal CLK2, or switching from the second clock signal CLK2 to the first clock signal CLK1, wherein the frequency of the first clock signal CLK1 is greater than the frequency of the second clock signal CLK2. The second reference constant current voltage Vref2 with a smaller voltage value and the second clock signal CLK2 with a smaller frequency can increase the period of the hiccup state and reduce system power consumption.
[0121] In the specific implementation, Figure 2 As shown, the reference generation unit 121 includes a power supply module 1211 and a reference switching module 1212;
[0122] The power supply module 1211 receives an input voltage Vin, and the power supply module 1212 outputs a current limiting reference voltage Vrefli and a first constant current reference voltage Vref1 according to the input voltage Vin;
[0123] The reference switching module 1212 inputs a switching control signal SLP and a first constant current reference voltage Vref1. The reference switching module 1212 outputs a constant current reference voltage according to the switching control signal SLP and the first constant current reference voltage Vref1, wherein the constant current reference voltage includes the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2. That is, the reference switching module 1212 outputs the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2.
[0124] In the embodiment of the utility model, the power supply module 1211 can convert the input voltage Vin to obtain the current limiting reference voltage Vrefli and the first constant current reference voltage Vref1. In implementation, the power supply module 1211 can be a linear regulator, which generates the current limiting reference voltage Vrefli and the first constant current reference voltage Vref1 through the linear regulator LDO.
[0125] The first constant current reference voltage Vref1 output by the power supply module 1211 is input to the reference switching module 1212. In addition, the reference switching module 1212 also inputs a switching control signal SLP. The reference switching module 1212 selects to output the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2 based on the high and low levels of the switching control signal SLP. Specifically, when the switching control signal is invalid, that is, SLP=0, the reference switching module 1212 outputs the first constant current reference voltage Vref1. When the switching control signal is valid, that is, SLP=1, the reference switching module 1212 outputs the second constant current reference voltage Vref2.
[0126] In a specific implementation, the second constant current reference voltage Vref2 may be equal to 30%*the first constant current reference voltage Vref1. When the system is in a normal working state, the reference switching module 1212 outputs the first constant current reference voltage Vref1 under the control of the switching control signal SLP. When the system is in a short circuit state, the reference switching module 1212 outputs the second constant current reference voltage Vref2 under the control of the switching control signal SLP.
[0127] like Figure 4 , which is a schematic diagram of the structure of a reference switching module provided by an embodiment of the utility model, the reference switching module 1212 includes a first inverter INV1, a first comparator COMP1, a transistor T, a first resistor R1, a second resistor R2, a first switch tube M1 and a second switch tube M2;
[0128] The input end of the first inverter INV1 inputs the switching control signal SLP, the output end of the first inverter INV1 is electrically connected to the control end of the first switch tube M1, and outputs a first inverted signal XSLP which is inverted to the switching control signal;
[0129] The first end of the first switch tube M1 is electrically connected to the first end of the first resistor R1, the second input end of the first comparator COMP1 and the second end of the transistor T, the second end of the first switch tube M1 is electrically connected to the second end of the second switch tube M2, and outputs a constant current reference voltage (a first constant current reference voltage Vref1 or a second constant current reference voltage Vref2);
[0130] The first end of the second switch tube M2 is electrically connected to the second end of the first resistor R1 and the first end of the second resistor R2, and the control end of the second opening tube M2 inputs the switching control signal SLP;
[0131] The second end of the second resistor R2 is electrically connected to the ground end;
[0132] A first constant current reference voltage Vref1 is input to a first input terminal of the first comparator COMP1, and an output terminal of the first comparator COMP1 is electrically connected to a control terminal of the transistor T;
[0133] A first terminal of the transistor T is electrically connected to a power supply terminal VDD.
[0134] In the embodiment of the utility model, the first comparator COMP1 and the transistor T form a follower. Due to the follower structure, the voltage Vn at the node n is Vref1; after the switching control signal SLP passes through the first inverter INV1, the first inverted signal XSLP is output. When the switching control signal is invalid, that is, SLP=0, the first inverted signal is valid, that is, XSLP=1, the first switch tube M1 is turned on, the second switch tube M2 is turned off, and the reference switching module 1212 outputs the first constant current reference voltage Vref1; when the switching control signal is valid, that is, SLP=1, the first inverted signal is invalid, that is, XSLP=0, the first switch tube M1 is turned off, the second switch tube M2 is turned on, and the reference switching module 1212 outputs the voltage Vm at the node m, From the resistance ratio, it can be known that Vm=17%*Vn=17%*Vref1=Vref2. It should be noted that 17% is determined by the resistance values of the first resistor R1 and the second resistor R2. In a specific implementation, it can be calculated based on the resistance values of the first resistor R1 and the second resistor R2.
[0135] Since the voltage value of the second constant current reference voltage Vref2 is smaller than the voltage value of the first constant current reference voltage Vref1, the purpose of cutting down the constant current reference voltage when the system is in a short circuit state can be achieved, that is, the constant current reference voltage is switched to the second constant current reference voltage Vref2 with a smaller voltage value.
[0136] In an embodiment of the utility model, the first switch tube M1 and the second switch tube M2 can be N-type MOSFETs, wherein the control end of the first switch tube M1 is the gate of the MOSFET, the first end of the first switch tube M1 is the source of the MOSFET, and the second end of the first switch tube M1 is the drain of the MOSFET; the control end of the second switch tube M2 is the gate of the MOSFET, the first end of the second switch tube M2 is the source of the MOSFET, and the second end of the second switch tube M2 is the drain of the MOSFET.
[0137] The transistor T may be an NPN transistor, the control end of the transistor T is the base of the transistor, the first end of the transistor T is the collector of the transistor, and the second end of the transistor T is the emitter of the transistor;
[0138] The first input terminal of the first comparator COMP1 is a positive phase input terminal of the comparator, and the second input terminal of the first comparator COMP1 is a negative phase input terminal of the comparator.
[0139] In one embodiment, if Figure 5 As shown, the current limiting unit 13 includes a second comparator COMP2;
[0140] The sampling voltage VSAMP is input to the first input terminal of the second comparator COMP2, the current limiting reference voltage Vrefli is input to the second input terminal of the second comparator COMP2, and the overcurrent detection signal V1 is output to the output terminal of the second comparator COMP2.
[0141] In the embodiment of the present invention, the first input terminal of the second comparator COMP2 is the non-inverting input terminal of the comparator, and the second input terminal of the second comparator COMP2 is the inverting input terminal of the comparator.
[0142] In the embodiment of the utility model, the second comparator COMP2 compares the sampling voltage VSAMP and the current limiting reference voltage Vrefli. When the sampling voltage VSAMP is greater than or equal to the current limiting reference voltage Vrefli, it outputs a valid overcurrent detection signal V1, that is, V1 is a high level. When the sampling voltage VSAM is less than the current limiting reference voltage Vrefli, it outputs an invalid overcurrent detection signal V1, that is, V1 is a low level.
[0143] In one embodiment, if Figure 5 As shown, the constant current unit 14 includes a first transconductance amplification module 141, a comparison module 142, a compensation module 143 and a fourth inverter 144;
[0144] The transconductance amplification module 141 inputs the sampling voltage VSAMP and the constant current reference voltage (the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2), the transconductance amplification module 141 integrates the difference between the sampling voltage VSAMP and the constant current reference voltage, and outputs the compensation voltage Vcomp at the output end;
[0145] The comparison module 142 inputs the compensation voltage Vcomp and the peak reference voltage (k*VSAMP), and the comparison module 142 outputs a constant current control signal V2;
[0146] The compensation module 143 is connected between the transconductance amplification module 141 and the ground terminal;
[0147] The inversion module 144 inputs the constant current control signal V2, and the inversion module inverts the constant current control signal V2 to output a second reverse signal XV2.
[0148] Specifically, the transconductance amplification module 141 includes a first transconductance amplifier U1;
[0149] The first input terminal of the first transconductance amplifier U1 inputs the sampling voltage VSAMP, the second input terminal of the first transconductance amplifier U1 inputs the constant current reference voltage (the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2), and the output terminal of the first transconductance amplifier U1 outputs the compensation voltage Vcomp.
[0150] The comparison module 142 includes a third comparator COMP3;
[0151] The compensation voltage Vcomp is input to a first input terminal of the third comparator COMP3 , the peak reference voltage (k*VSAMP) is input to a second input terminal of the third comparator COMP3 , and the third comparator COMP3 outputs a constant current control signal V2 .
[0152] In the embodiment of the utility model, the first input end of the third comparator COMP3 is the non-inverting input end of the comparator, and the second input end of the third comparator COMP3 is the inverting input end of the comparator; the first input end of the first transconductance amplifier U1 is the positive input end of the transconductance amplifier, and the second input end of the first transconductance amplifier U1 is the negative input end of the transconductance amplifier.
[0153] The compensation module 143 includes a third resistor R3 and a first capacitor C1;
[0154] A first end of the third resistor R3 is connected to the output end of the first transconductance amplifier U1, and a second end of the third resistor R3 is electrically connected to the first end of the first capacitor C1;
[0155] The second end of the first capacitor C1 serves as the second end of the compensation module 143 .
[0156] In the embodiment of the utility model, the difference between the sampling voltage VSAMP input to the negative phase input terminal of the first transconductance amplifier U1 and the constant current reference voltage (the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2) input to the positive phase input terminal of the first transconductance amplifier U1 is integrated, and the output current passes through the capacitor C1 and the resistor R3 to obtain the corresponding output compensation voltage Vcomp, and then the compensation voltage Vcomp is compared with the peak reference voltage (K times the sampling voltage VSAMP) to obtain the constant current control signal V2. Specifically, when the compensation voltage Vcomp is greater than or equal to K times the sampling voltage VSAMP, a valid constant current control signal V2 is output, that is, V2 is a high level, and when the compensation voltage Vcomp is less than K times the sampling voltage VSAMP, an invalid constant current control signal V2 is output, that is, V2 is a low level. That is, when the sampling voltage VSAMP is less than the constant current reference voltage, the constant current unit 14 outputs an invalid constant current control signal V2 and a valid second inverted signal XV2; when the sampling voltage VSAMP is greater than or equal to the constant current reference voltage, the constant current unit 14 outputs a valid constant current control signal V2 and an invalid second inverted signal XV2.
[0157] In one embodiment, if Figure 2 As shown, the frequency generating unit 122 includes a trigger module 1221 and a clock switching module 1222;
[0158] The trigger module 1221 inputs the second inverted signal XV2 and the over-current detection signal V1, and the trigger module 1221 outputs the switching control signal SLP;
[0159] The clock switching module 1222 inputs the switching control signal SLP, and outputs a clock signal (the first clock signal CLK1 or the second clock signal CLK2 ).
[0160] In the embodiment of the utility model, the trigger module 1221 outputs the switching control signal SLP according to the overcurrent detection signal V1 and the second inverted signal XV2, and the clock switching module 1222 controls the output frequency of the fixed-frequency clock CLK based on the switching control signal SLP. When the switching control signal SLP is invalid, that is, SLP=0, the first clock signal CLK1 of the first frequency f1 is output, for example, f1=300KHZ, and when the switching control signal SLP is valid, that is, SLP=1, the second clock signal CLK2 of the second frequency f2 is output, for example, f2=(1 / 5)f1.
[0161] Specifically, Figure 5 As shown, the trigger module 1221 includes a first trigger RS1;
[0162] The reset terminal (R) of the first flip-flop RS1 inputs the second inverted signal XV2, the set terminal (S) of the first flip-flop RS1 inputs the overcurrent detection signal V1, and the output terminal (Q) of the first flip-flop RS1 outputs the switching control signal SLP.
[0163] In the embodiment of the utility model, when the sampling voltage VSAMP is less than the constant current reference voltage (the first constant current reference voltage Vref1 and the second constant current reference voltage Vref2), since the current limiting reference voltage Vrefli is greater than the constant current reference voltage (the first constant current reference voltage Vref1 and the second constant current reference voltage Vref2), the sampling voltage VSAMP is less than the current limiting reference voltage Vrefli. At this time, the overcurrent detection signal V1 is invalid, the constant current control signal V2 is invalid, and the second inverted signal XV2 is valid. Then, the overcurrent detection signal V1 input to the S end of the first trigger RS1 is an invalid level, the second inverted signal XV2 input to the R end of the first trigger RS1 is a valid level, and the switching control signal SLP output from the Q end of the first trigger RS1 is an invalid level. At this time, the constant current control system is in a normal working state, the frequency generating unit 122 outputs the first clock signal CLK1 with a larger frequency, and the reference generating unit 121 outputs the first constant current reference voltage Vref1 with a larger voltage value;
[0164] When the sampling voltage VSAMP is greater than or equal to the constant current reference voltage (the first constant current reference voltage Vref1 and the second constant current reference voltage Vref2), and is less than the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is invalid, the constant current control signal V2 is valid, and the second inverted signal XV2 is invalid, then the overcurrent detection signal V1 input to the S end of the first trigger RS1 is an invalid level, the second inverted signal XV2 input to the R end of the first trigger RS1 is an invalid level, the Q end of the first trigger RS1 maintains the output of the previous state, and the switching control signal SLP is still an invalid level. At this time, the constant current control system is still in a normal working state, the frequency generating unit 122 outputs the first clock signal CLK1 with a larger frequency, and the reference generating unit 121 outputs the first constant current reference voltage Vref1 with a larger voltage value;
[0165] When the sampling voltage VSAMP is greater than or equal to the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is valid, the constant current control signal V2 is valid, and the second inverted signal XV2 is invalid. The overcurrent detection signal V1 input to the S end of the first trigger RS1 is at a valid level, and the second inverted signal XV2 input to the R end of the first trigger RS1 is at an invalid level. The Q end of the first trigger RS1 is set to a valid level, that is, the switching control signal SLP jumps to a valid level. At this time, the constant current control system is in a short-circuit state, the frequency generating unit 122 outputs a second clock signal CLK2 with a smaller frequency, and the reference generating unit 121 outputs a second constant current reference voltage Vref2 with a smaller voltage value.
[0166] like Figure 6 , which is a schematic diagram of the structure of a clock switching module provided by an embodiment of the utility model, the clock switching module 1222 includes a second inverter INV2, a first current source I1, a second current source I2, a first switch K1, a second switch K2, a third switch K3, a second capacitor C2 and a sawtooth wave processing module 1521;
[0167] The input end of the second inverter INV2 inputs the switching control signal SLP, and the output end of the second inverter INV2 is electrically connected to the control end of the first switch K1;
[0168] The second end of the first switch K1 is electrically connected to the output end of the first current source I1 and the first end of the second switch K2, and the first end of the first switch K1 is electrically connected to the output end of the second current source I2;
[0169] An input terminal of the first current source I1 is electrically connected to an input terminal of the second current source I2 and a power supply terminal VDD;
[0170] The second end of the second switch K2 is connected to the first end of the second capacitor C2 and the first end of the third switch K3, outputting the first sawtooth wave VSLOPE1 or the second sawtooth wave VSLOPE2, and the control end of the second switch K2 receives the charging control signal;
[0171] A second end of the third switch K3 is electrically connected to the second end of the second capacitor C2 and is grounded, and a control end of the third switch K3 receives a discharge control signal;
[0172] The sawtooth wave processing module 1521 inputs the first sawtooth wave VSLOPE1 or the second sawtooth wave VSLOPE2 , outputs a charging control signal and a discharging control signal, and outputs the discharging control signal as a clock signal.
[0173] In the specific implementation, Figure 6 As shown, the sawtooth wave processing module 1521 may include a fourth comparator COMP4, a fifth comparator COMP5, a second trigger RS2 and a third inverter INV3;
[0174] The first input terminal of the fourth comparator COMP4 and the second input terminal of the fifth comparator COMP5 input the first sawtooth wave VSLOPE1 or the second sawtooth wave VSLOPE2, the second input terminal of the fourth comparator COMP4 inputs the third reference voltage Vref3, and the output terminal of the fourth comparator COMP4 is electrically connected to the reset terminal of the second trigger RS2;
[0175] The first input terminal of the fifth comparator COMP5 inputs the fourth reference voltage Vref4, and the output terminal of the fifth comparator COMP5 is electrically connected to the set terminal of the second flip-flop RS; wherein the third reference voltage Vref3 is greater than the fourth reference voltage Vref4;
[0176] The output terminal of the second trigger RS2 is electrically connected to the input terminal of the third inverter INV3 to output a charging control signal;
[0177] The output terminal of the third inverter INV3 outputs a discharge control signal, and outputs the discharge control signal as a clock signal to the driving unit 15 .
[0178] The sawtooth wave processing module 1521 receives the sawtooth wave signal (the first sawtooth wave VSLOPE1 or the second sawtooth wave VSLOPE2), and outputs a charging control signal and a discharging control signal according to the sawtooth wave signal (the first sawtooth wave VSLOPE1 or the second sawtooth wave VSLOPE2), and the discharging control signal is also output as a clock signal. The sawtooth wave signal includes the first sawtooth wave or the second sawtooth wave, and the clock signal includes the first clock signal or the second clock signal.
[0179] When the constant current control system works normally and there is no short circuit, SLP is at a low level and XSLP is at a high level. XSLP controls the first switch K1 to turn on, and the first current source I1 and the second current source I2 jointly provide charging current to the second capacitor C2, and provide a higher frequency first sawtooth wave VSLOPE1 to the sawtooth wave processing module 1521 according to the charging speed.
[0180] When a short circuit occurs in the constant current control system causing overcurrent, SLP is at a high level, XSLP is at a low level, XSLP controls the first switch K1 to turn off, and the first current source I1 provides a charging current to the second capacitor C2, and provides a second sawtooth wave VSLOPE2 with a lower frequency to the sawtooth wave processing module 1521 according to the charging speed.
[0181] In the embodiment of the utility model, the first input terminal of the fourth comparator COMP4 is the non-inverting input terminal of the comparator, and the second input terminal of the fourth comparator COMP4 is the negative input terminal of the comparator; the first input terminal of the fifth comparator COMP5 is the non-inverting input terminal of the comparator, and the second input terminal of the fifth comparator COMP5 is the negative input terminal of the comparator.
[0182] like Figure 7 The working waveform diagram of the first clock signal generated when the constant current control system is working normally is given. Figure 7 As shown, the first sawtooth wave VSLOPE1 is input to the in-phase input terminal of the fourth comparator COMP4 and the inverting input terminal of the fifth comparator COMP5 in the sawtooth wave processing module 1521, the third reference voltage Vref3 is input to the inverting input terminal of the fourth comparator COMP4, and the fourth reference voltage Vref4 is input to the in-phase input terminal of the fifth comparator COMP5. When the first sawtooth wave VSLOPE1 is greater than or equal to the third reference voltage Vref3, the output terminal of the fourth comparator COMP4 outputs a pulse signal R1 to the reset terminal of the second flip-flop RS2, and at the corresponding moment, the output signal of the second flip-flop RS2 is flipped from a high level to a low level; when the first sawtooth wave VSLOPE1 is less than or equal to the fourth reference voltage Vref4, the output terminal of the fifth comparator COMP5 outputs a pulse signal S1 to the set terminal of the second flip-flop RS2, and at the corresponding moment, the output signal of the second flip-flop RS2 is flipped from a low level to a high level.
[0183] The output signal of the second trigger RS2 is provided to the second switch K2 as a charging control signal to control the on and off of the second switch K2. The output signal of the second trigger RS2 is also converted into a first clock signal CLK1 through a third inverter INV3. The first clock signal CLK1 is inverted with the charging control signal. The first clock signal CLK1 is provided to the driving unit 15 to provide the driving unit 15 with a clock frequency. The first clock signal CLK1 is also provided to the third switch K3 as a discharging control signal to control the on and off of the third switch K3.
[0184] During the period when the charging control signal is at a high level and the discharging control signal is at a low level, the second switch K2 is turned on and the third switch K3 is turned off, the first current source I1 and the second current source I2 jointly charge the second capacitor C2, and the first sawtooth wave VSLOPE1 rises; during the period when the charging control signal is at a low level and the discharging control signal is at a high level, the second switch K2 is turned off and the third switch K3 is turned on, the second capacitor C2 is discharged, and the first sawtooth wave VSLOPE1 falls.
[0185] like Figure 8 The working waveform diagram of the constant current control system generating the second clock signal in the short circuit protection state is given. Figure 8 As shown, the second sawtooth wave VSLOPE2 is input to the in-phase input terminal of the fourth comparator COMP4 and the inverting input terminal of the fifth comparator COMP5 in the sawtooth wave processing module 1521, the third reference voltage Vref3 is input to the inverting input terminal of the fourth comparator COMP4, and the fourth reference voltage Vref4 is input to the in-phase input terminal of the fifth comparator COMP5. When the second sawtooth wave is greater than or equal to the third reference voltage Vref3, the output terminal of the fourth comparator COMP4 outputs a pulse signal R2 to the reset terminal of the second flip-flop RS2, and at the corresponding moment, the output signal Q2 of the second flip-flop RS2 is flipped from a high level to a low level; when the second sawtooth wave VSLOPE2 is less than or equal to the fourth reference voltage Vref4, the output terminal of the fifth comparator COMP5 outputs a pulse signal S2 to the set terminal of the second flip-flop RS2, and at the corresponding moment, the output signal Q2 of the second flip-flop RS2 is flipped from a low level to a high level.
[0186] The output signal Q2 of the second flip-flop RS2 is provided to the second switch K2 as a charging control signal to control the on and off of the second switch K2. The output signal Q2 of the second flip-flop RS2 is also converted into a second clock signal CLK2 through a third inverter INV3. The second clock signal CLK2 is inverted with the charging control signal. The second clock signal CLK2 is provided to the driving unit 15 to provide the driving unit 15 with a clock frequency. The second clock signal CLK2 is also provided to the third switch K3 as a discharging control signal to control the on and off of the third switch K3.
[0187] During the period when the charging control signal is at a high level and the discharging control signal is at a low level, the second switch K2 is turned on and the third switch K3 is turned off, the first current source I1 and the second current source I2 jointly charge the second capacitor C2, and the second sawtooth wave VSLOPE2 rises; during the period when the charging control signal is at a low level and the discharging control signal is at a high level, the second switch K2 is turned off and the third switch K3 is turned on, the second capacitor C2 is discharged, and the second sawtooth wave VSLOPE2 falls.
[0188] In a specific implementation, the current value i2 output by the second current source I2 may be four times the current value i1 output by the first current source I1 .
[0189] In the embodiment of the utility model, when the constant current control system is working normally, the switching control signal SLP=0, the first inverted signal XSLP=1, at this time the first switch K1 (charging control switch) is closed, and the second capacitor C2 is charged through the first current source I1 and the second current source I2, until the sawtooth wave processing module 1521 disconnects the second switch K2 (charging switch) and closes the third switch K3 (discharging control switch); finally, a sawtooth wave with a fixed frequency is formed, and the sawtooth wave frequency is proportional to I / C, wherein I is the current after the first current source I1 and the second current source I2 are connected in parallel, and C is the capacitance of the second capacitor C2;
[0190] When the constant current control system is short-circuited, the switching control signal SLP=1, the first inverted signal XSLP=0, the first switch K1 is disconnected, and the second current source I2 is closed. The charging current becomes the current of the first current source I1. At this time, the current is 1 / 5 times that of normal operation, and the sawtooth wave frequency is also switched to 1 / 5 of the normal state; the frequency of the output clock signal is consistent with the sawtooth wave, so when the output is short-circuited, the frequency of the clock signal CLK is also switched to 1 / 5 of the normal state.
[0191] For ease of understanding, the state changes of the overcurrent detection signal V1, the constant current control signal V2, the second inverted signal XV2, the switching control signal SLP, the constant current reference voltage, and the clock signal in the embodiment of the present utility model are described in detail below.
[0192] Reference Figure 5, when the constant current control system works normally, the constant current reference voltage is the first constant current reference voltage Vref1 with a higher frequency. When the load current is less than the first constant current reference voltage Iref1 corresponding to the first constant current reference voltage, the constant current control signal V2=0, the second inverting signal XV2=1, and the overcurrent detection signal V1=0. At this time, the R terminal of the first trigger RS1 inputs a high level "1", the S terminal of the first trigger RS1 inputs a low level "0", and the Q terminal of the first trigger RS1 outputs a low level "0", that is, the switching control signal SLP=0, the switching control signal SLP is invalid, the clock signal is the first clock signal CLK1 with a higher frequency, and the constant current reference voltage is still the first constant current reference voltage Vref1 with a higher voltage value;
[0193] As the load current increases, when the load current is greater than the first constant current Iref1 corresponding to the first constant current reference voltage and less than the current limiting current Ilim corresponding to the current limiting reference voltage Vrefli, the constant current control signal V2=1, the second inverted signal XV2=0, and the overcurrent detection signal V1=0. At this time, the R terminal of the first trigger RS1 inputs a low level "0", the S terminal of the first trigger RS1 inputs a low level "0", and the Q terminal of the first trigger RS1 outputs a low level "0", that is, the switching control signal SLP=0, the switching control signal SLP is invalid, the clock signal is still the first clock signal CLK1 with a higher frequency, and the constant current reference voltage is still the first constant current reference voltage Vref1 with a higher voltage value;
[0194] The load current continues to increase. When the load current is greater than the current limiting current Ilim, the constant current control signal V2=1, the second inverting signal XV2=0, and the overcurrent detection signal V1=1. At this time, the R terminal of the first trigger RS1 inputs a low level "0", the S terminal of the first trigger RS1 inputs a high level "1", and the Q terminal of the first trigger RS1 outputs a high level "1", that is, the switching control signal SLP=1, the switching control signal SLP is valid, and the clock signal is switched from the first clock signal CLK1 with a higher frequency to the second clock signal CLK2 with a lower frequency, and the constant current reference voltage is switched from the first constant current reference voltage Vref1 with a higher voltage value to the second constant current reference voltage Vref2 with a lower voltage value.
[0195] The above is the process of load current increasing. The following is an explanation of the process of load current decreasing.
[0196] When the load current decreases from being greater than the current limiting current Ilim to being less than the current limiting current Ilim and being greater than the second constant current reference current Iref2 corresponding to the second constant current reference voltage Vref2, the constant current control signal V2=1, the second inverted signal XV2=0, and the overcurrent detection signal V1=0. At this time, the R terminal of the first trigger RS1 inputs a low level "0", the S terminal of the first trigger RS1 inputs a low level "0", the Q terminal of the first trigger RS1 outputs a high level "1", the switching control signal SLP=1, that is, the switching control signal SLP is valid, the clock signal maintains the second clock signal CLK2 with a lower output frequency, and the constant current reference voltage maintains the second constant current reference voltage Vref2 with a lower output voltage value;
[0197] When the load current continues to decrease and drops to less than the second constant current reference current Iref2, the constant current control signal V2=0, the second inverted signal XV2=1, and the overcurrent detection signal V1=0. At this time, the R terminal of the first trigger RS1 inputs a high level "1", the Q terminal of the first trigger RS1 inputs a low level "0", and the Q terminal of the first trigger RS1 outputs a low level "0". The switching control signal SLP=0, that is, the switching control signal SLP is invalid, and the clock signal is switched from the second clock signal CLK2 with a lower frequency to the first clock signal CLK1 with a lower frequency, and the constant current reference voltage is switched from the second constant current reference voltage Vref2 with a lower voltage value to the first constant current reference voltage Vref1 with a higher voltage value.
[0198] In one embodiment, the driving unit 15 outputs the driving signal GATE according to the input clock signal (the first clock signal CLK1 or the second clock signal CLK2), the overcurrent detection signal V1 and the constant current control signal V2. Specifically, when the sampling voltage VSAMP is less than the constant current reference voltage (the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2), the overcurrent detection signal V1 and the constant current control signal V2 are both invalid, and the driving unit 15 generates the driving signal GATE with the same frequency as the clock signal to control the on and off of the power tube M; when the sampling voltage VSA When MP is greater than or equal to the constant current reference voltage (the first constant current reference voltage Vref1 or the second constant current reference voltage Vref2) and less than the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is invalid, the constant current control signal V2 is valid, and the driving unit 15 generates a driving signal GATE with the same frequency as the clock signal and a reduced duty cycle to control the on and off of the power tube M; when the sampling voltage VSAMP is greater than or equal to the current limiting reference voltage Vrefli, the overcurrent detection signal V1 is valid, the constant current control signal V2 is valid, and the driving unit generates a driving signal GATE to control the power tube M to turn off.
[0199] The driving unit 15 may be: Fig. 9In the circuit shown, the driving unit 15 may include a NAND gate NA2, a fifth inverter INV5, a NOR gate NO2, a sixth inverter INV6, a third trigger RS3, a seventh inverter INV7, a delay module 91, a third switch tube M3 and a fourth switch tube M4.
[0200] The NAND gate NA2 is connected to the constant current unit 14, and the first input terminal of the NAND gate NA2 receives the constant current control signal V2 output by the constant current unit 14. The NAND gate NA2 is connected to the delay module 91 to receive the delay signal for delaying the driving signal GATE by a preset time, and the preset time may be 200ns.
[0201] An input terminal of the fifth inverter INV5 is connected to an output terminal of the NAND gate NA2;
[0202] A first input terminal of the NOR gate NO2 is connected to the output terminal of the fifth inverter INV5, and a second input terminal of the NOR gate NO2 receives the overcurrent detection signal V1;
[0203] An input terminal of the sixth inverter INV6 is connected to an output terminal of the NOR gate NO2;
[0204] The reset terminal of the third flip-flop RS3 is connected to the output terminal of the sixth inverter INV6.
[0205] The set end of the third flip-flop RS3 is connected to the frequency generating unit 122 to receive the clock signal, the clock signal includes the first clock signal CLK1 or the second clock signal CLK2, and the output end of the third flip-flop RS3 is electrically connected to the input end of the seventh inverter INV7;
[0206] The output end of the seventh inverter INV7 is electrically connected to the control end of the third switch tube M3 and the control end of the fourth switch tube M4;
[0207] A first end of the third switch tube M3 is electrically connected to the power supply end VDD, a second end of the third switch tube M3 is electrically connected to a first end of the fourth switch tube M4, and outputs a driving signal GATE;
[0208] The second end of the fourth switch tube M4 is electrically connected to the ground end.
[0209] In an embodiment of the utility model, the third switch tube M3 can be a P-type MOSFET, wherein the control end of the third switch tube M3 is the gate of the MOSFET, the first end of the third switch tube M3 is the drain of the MOSFET, and the second end of the third switch tube M3 is the source of the MOSFET; the fourth switch tube M4 can be an N-type MOSFET, wherein the control end of the fourth switch tube M4 is the gate of the MOSFET, the first end of the fourth switch tube M4 is the drain of the MOSFET, and the second end of the fourth switch tube M4 is the source of the MOSFET.
[0210] Fig. 9 The driving unit shown, when the load current is less than the first constant current reference voltage Iref1 corresponding to the first constant current reference voltage Vref1, the overcurrent detection signal V1=0, the constant current control signal V2=0, the NAND gate NA2 outputs a high level 1, the fifth inverter INV5 outputs a low level 0, the NOR gate NO2 outputs a high level 1, the sixth inverter INV6 outputs a low level 0, the R end of the third RS trigger RS3 inputs a low level 0, the signal output from the Q end of the third trigger RS3 follows the high and low levels of the first clock signal CLK1, the signal output from the Q end of the third trigger RS3 passes through the seventh inverter INV7, alternately turns on the third switch tube M3 and the fourth switch tube M4, and generates a driving signal GATE;
[0211] When the load current rises, the load current is greater than the first constant current reference voltage Iref1, and less than the current limiting current Ilim corresponding to the current limiting reference voltage Vrefli, the overcurrent detection signal V1=0, the constant current control signal V2=1, when the drive signal GATE switches from a low level to a high level, the drive signal GATE is delayed by the delay module. If the delay time is 200ns, the output of the delay module is delayed by 200ns to switch to a high level, and the NAND gate NA2 delays 200ns to output a low level 0, the fifth inverter INV5 delays 200ns to output a high level 1, the NAND gate NO2 delays 200ns to output a low level 0, the sixth inverter INV6 delays 200ns to output a high level 1, the R end of the third trigger RS3 delays 200ns to input a high level 1, the Q end of the third trigger RS3 delays 200ns to output a low level 0, and the drive signal GATE is pulled low after a delay of 200ns, that is, the duration of the high level of the drive signal GATE is 200ns;
[0212] When the load current continues to rise, when the load current is greater than the current limiting current Ilim, the overcurrent detection signal V1=1, the constant current control signal V2=1, since V1=1, the NOR gate NO2 outputs a low level 0, the sixth inverter INV6 outputs a high level 1, the R end of the third trigger RS3 inputs a high level 1, the Q end of the third trigger RS3 outputs a low level 0, and the drive signal GATE is turned off.
[0213] The constant current control circuit provided by the utility model adds a frequency generating unit in the constant current control circuit. When the LED constant current control system is short-circuited, the frequency generating unit receives an overcurrent detection signal V1 indicating whether the load current is overcurrent, and a second inverted signal XV2, wherein the second inverted signal XV2 is the inverted constant current control signal V2 indicating the compensation voltage; when the overcurrent detection signal V1 is high level and the second inverted signal XV2 is low level, the switching control signal SLP indicating the short circuit state is high level; the switching control signal SLP controls the output of the clock signal after the frequency reduction. The clock cycle of CLK becomes longer, and the cycle of GATE becomes longer, so the cycle time in the hiccup state can be increased.
[0214] The utility model adds a reference generation unit in the constant current control circuit, and the reference generation unit receives a switching control signal SLP. When the switching control signal SLP is at a high level, the reference generation unit switches the original first constant current reference voltage Vref1 with a higher voltage value to a second constant current reference voltage Vref2 with a lower voltage value. Since the voltage value of the second constant current reference voltage Vref2 is less than the voltage value of the first constant current reference voltage Vref1, the constant current reference voltage is reduced in the short circuit protection state, thereby reducing the current value of the LED constant current drive circuit.
[0215] For ease of understanding, the constant current control system provided by the utility model is described in detail below with reference to specific embodiments.
[0216] like Fig.10 As shown, it is a timing diagram of a constant current control system provided by the related technology in a short-circuit state.
[0217] t1-t2: normal LED driving, the load current rises to the first constant current reference current Iref1 corresponding to the first constant current reference voltage Vref1, the frequency of the driving signal GATE is constant, the overcurrent control signal V1=0, and the frequency of the clock signal CLK is f1;
[0218] t2-t3: When the load is short-circuited, the load current exceeds the constant current voltage but is still less than the current limiting voltage Ilim. At this time, the working state is the same as the t1-t2 stage, but because the constant current detection signal output is low, the driver outputs the minimum duty cycle. However, since the discharge current is less than the charging current during a short circuit, the inductor current continues to rise;
[0219] t3-t5: When the inductor current exceeds Ilim, the overcurrent detection signal V1=1, the drive signal GATE is turned off, and the inductor current decreases until the overcurrent detection signal V1 becomes 0 and the next clock falling edge comes. The drive is turned on again. During the LEB time, if the inductor current exceeds the overcurrent detection signal again, the drive is turned off again. After that, the current will repeat the rise and fall process near Ilim to achieve energy balance.
[0220] like Fig.11 , which is a timing diagram of a constant current control system provided by an embodiment of the utility model in a short-circuit state.
[0221] t1-t2: normal LED driving, the load current rises to the first constant current reference current Iref1, at this time the switching control signal SLP is invalid, the driving signal GATE frequency is constant, the overcurrent detection signal V1=0, the compensation voltage Vcomp rises, and the frequency of the clock signal CLK is f1;
[0222] t2-t3: When the load is short-circuited, the load current exceeds the first constant current reference current Iref1, and the load current continues to rise; at this time, the comparator in the current limiting unit is not flipped, and the switching control signal SLP is invalid, but the compensation voltage Vcomp becomes smaller, the duty cycle of the drive signal GATE becomes smaller, the overcurrent detection signal V1=0, the compensation voltage Vcomp decreases, and the frequency of the clock signal CLK is f1;
[0223] t3: the short-circuit current rises and reaches the current limiting value Ilim; at this time, the comparator in the current limiting unit flips, the switching control signal SLP is valid, the drive signal GATE is turned off, the overcurrent detection signal V1=1, and is input to the drive unit. The frequency of the clock signal CLK is switched to f2, f2=(1 / 5)f1, and the constant current reference voltage is switched to the second constant current reference voltage Vref2;
[0224] t3-t4: the switch tube operates at a minimum duty cycle; the overcurrent detection signal V1=0, the frequency of the clock signal CLK is f2, the constant current reference voltage is switched to the second constant current reference voltage Vref2, the load current drops to the second constant current reference voltage Iref2 corresponding to the second constant current reference voltage, the constant current unit works, and the switching control signal SLP starts to reset to 0;
[0225] t4-t5: SLP starts to reset to 0, the frequency of the clock signal CLK switches from f2 to f1, the constant current reference voltage switches from the second constant current reference voltage Vref2 back to the first constant current reference voltage Vref1, and the driving signal GATE is driven with a duty cycle controlled by the compensation voltage Vcomp.
[0226] At time t1, a load short circuit occurs (such as an LED short circuit). Since the current when the switch is turned on is greater than the current released when the switch is turned off, the load current Iled continues to rise until it reaches the current limiting current Ilim corresponding to the current limiting point at time t2. The current limiting reference voltage Vrefli is the voltage value corresponding to the current limiting current Ilim.
[0227] When the load current Iled exceeds the current limiting current Ilim, the current limiting unit outputs a valid overcurrent detection signal V1, and the driving unit outputs a driving signal GATE for driving the power tube M to turn off according to the overcurrent detection signal V1, and the load current decreases.
[0228] After the GATE signal is turned off, the load current Iled decreases. Since the prior art does not switch the constant current reference voltage, the constant current reference voltage remains Vref1, and the CLK clock frequency does not change and remains f1. Therefore, during the period when the short circuit is not released, after the load current drops to the first constant current reference current Iref1, the constant current unit outputs a high-level constant current control signal V2. The constant current control signal V2 indicates that constant current compensation is required. Therefore, the drive signal GATE output by the drive unit is a signal for controlling the power tube M to turn on. Therefore, in the t3-t4 time period, Iled rises, and CLK restores the f1 frequency. At t4, overcurrent occurs again. Since the prior art does not reduce the operating frequency, the process of t3-t4 is repeated.
[0229] In the constant current control system provided by the embodiment of the utility model, the frequency generating unit sets the SLP signal high according to the overcurrent detection signal V1 and the second inverted signal XV2. When the driving signal GATE is turned off, the application switches the constant current reference voltage from the first constant current reference voltage Vref1 with a larger voltage value to the second constant current reference voltage Vref2 with a smaller voltage value, and switches the clock signal CLK from the first clock signal CLK1 with a larger frequency to the second clock signal CLK2 with a smaller frequency.
[0230] The load current Iled decreases after the driving signal GATE is turned off, and only after it drops to the second constant current reference current Iref2, the constant current detection signal V2 is converted to a high level and input to the trigger module, SLP is switched to a low level, the clock signal CLK is restored to the first clock signal CLK1, the constant current reference voltage is switched to the first constant current reference voltage Vref1, and the process from t2 to t5 is repeated.
[0231] It can be seen that in the short-circuit state, compared with the prior art, the load current in the embodiment of the utility model drops to a lower value, and the hiccup period is longer, so the average power consumption is lower.
[0232] If the short circuit abnormality on the load is still not resolved, the system will repeat the above-mentioned hiccup state, and the constant current reference voltage will be switched to the second constant current reference voltage Vref2 through the reference switching module. The voltage value of the second constant current reference voltage Vref2 is 30% of the voltage value of the first constant current reference voltage Vref1 before switching. Since the voltage reference becomes lower, the load current can drop to a lower value; the frequency of the clock signal CLK is switched to f2 through the clock switching module, and f2 is one-fifth of the original f1, thereby increasing the cycle time of the hiccup state. In summary, the average power consumption during short-circuit protection of the LED drive circuit is greatly reduced compared with the prior art.
[0233] Those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include these modifications and variations.
Claims
1. A constant current control circuit, characterized in that: include: Sampling unit, current limiting unit, constant current unit, reference and frequency generating unit and driving unit; The sampling unit is connected between the input terminal and the sampling terminal, and the sampling unit outputs a sampling voltage; The current limiting unit receives the sampling voltage and the current limiting reference voltage, and outputs an overcurrent detection signal according to a comparison result between the sampling voltage and the current limiting reference voltage, wherein when the sampling voltage is greater than or equal to the current limiting reference voltage, the overcurrent detection signal is valid, and when the sampling voltage is less than the current limiting reference voltage, the overcurrent detection signal is invalid; The reference and frequency generating unit is connected to the input terminal, receives an input voltage, and outputs the current limiting reference voltage according to the input voltage; The constant current unit receives the sampling voltage and the constant current reference voltage, outputs a constant current control signal and a second inverted signal which is inverted with the constant current control signal, when the sampling voltage is greater than or equal to the constant current reference voltage, the second inverted signal is invalid, when the sampling voltage is less than the constant current reference voltage, the second inverted signal is valid; The reference and frequency generating unit receives the overcurrent detection signal and the second inverted signal, and outputs a clock signal and a constant current reference voltage: when the overcurrent detection signal is valid and the second inverted signal is invalid, the constant current reference voltage is switched from the first constant current reference voltage to the second constant current reference voltage, and the clock signal is switched from the first clock signal to the second clock signal; When the overcurrent detection signal is invalid and the second inverting signal is valid, the reference and frequency generating unit switches the constant current reference voltage from the second constant current reference voltage to the first constant current reference voltage, and switches the clock signal from the second clock signal to the first clock signal; The first constant current reference voltage is greater than the second constant current reference voltage; The frequency of the first clock signal is greater than the frequency of the second clock signal; The driving unit receives the clock signal, the overcurrent detection signal and the constant current control signal, and outputs a driving signal.
2. The circuit according to claim 1, characterized in that The reference and frequency generation unit comprises: a reference generating unit, receiving the input voltage and the switching control signal, and outputting the current limiting reference voltage and the constant current reference voltage: when the switching control signal is valid, the constant current reference voltage is switched from the first constant current reference voltage to the second constant current reference voltage; when the switching control signal is invalid, the constant current reference voltage is switched from the second constant current reference voltage to the first constant current reference voltage; The frequency generating unit receives the overcurrent detection signal and the second inverted signal, and outputs the switching control signal and the clock signal; when the overcurrent detection signal is valid and the second inverted signal is invalid, the switching control signal is switched from invalid to valid, and the clock signal is switched from the first clock signal to the second clock signal; when the overcurrent detection signal is invalid and the second inverted signal is valid, the switching control signal is switched from valid to invalid, and the clock signal is switched from the second clock signal to the first clock signal.
3. The circuit according to claim 2, characterized in that The reference generation unit includes a power supply module and a reference switching module; The power supply module is connected to the input end, receives the input voltage, and outputs the current limiting reference voltage and the first constant current reference voltage according to the input voltage; The reference switching module receives the first constant-current reference voltage and the switching control signal, and outputs the constant-current reference voltage.
4. The circuit according to claim 3, characterized in that The reference switching module includes a first inverter, a first comparator, a triode, a first resistor, a second resistor, a first switch tube and a second switch tube; The input end of the first inverter is electrically connected to the control end of the second switch tube, and the switching control signal is input, and the output end of the first inverter is electrically connected to the control end of the first switch tube; The first end of the first switch tube is electrically connected to the first end of the first resistor, the second input end of the first comparator and the second end of the triode, and the second end of the first switch tube is electrically connected to the second end of the second switch tube to output the constant current reference voltage; The first end of the second switch tube is electrically connected to the second end of the first resistor and the first end of the second resistor; The second end of the second resistor is electrically connected to the ground end; The first constant current reference voltage is input into a first input terminal of the first comparator, and an output terminal of the first comparator is electrically connected to a control terminal of the transistor; The first end of the transistor is electrically connected to the power supply end.
5. The circuit according to claim 1, characterized in that The current limiting unit includes a second comparator; The sampling voltage is input into the first input terminal of the second comparator, the current limiting reference voltage is input into the second input terminal of the second comparator, and the overcurrent detection signal is output from the output terminal of the second comparator.
6. The circuit according to claim 3, characterized in that The constant current unit includes a transconductance amplification module, a comparison module, a compensation module and an inversion module; The transconductance amplification module inputs the sampling voltage and the constant current reference voltage, integrates the difference between the sampling voltage and the constant current reference voltage, and outputs a compensation voltage; The comparison module inputs the peak reference voltage and the compensation voltage, and outputs the constant current control signal according to the comparison result of the peak reference voltage and the compensation voltage: when the compensation voltage is greater than or equal to the peak reference voltage, the constant current control signal is valid, and when the compensation voltage is less than the peak reference voltage, the constant current control signal is invalid, wherein the peak reference voltage is K times the sampling voltage, and K is a positive number greater than 1; The inverting module inputs the constant current control signal, and the inverting module inverts the constant current control signal and then outputs the second inverted signal; The compensation module is connected between the output terminal of the transconductance amplification module and a ground terminal.
7. The circuit according to claim 6, characterized in that The transconductance amplification module includes a first transconductance amplifier; The sampling voltage is input into a first input terminal of the first transconductance amplifier, the constant current reference voltage is input into a second input terminal of the first transconductance amplifier, and the compensation voltage is output into an output terminal of the first transconductance amplifier.
8. The circuit according to claim 6, characterized in that The comparison module includes a third comparator; The compensation voltage is inputted into the first input terminal of the third comparator, the peak reference voltage is inputted into the second input terminal of the third comparator, and the constant current control signal is outputted into the output terminal of the third comparator.
9. The circuit according to claim 7, characterized in that The compensation module includes a third resistor and a first capacitor; A first end of the third resistor is electrically connected to the output end of the first transconductance amplifier, and a second end of the third resistor is electrically connected to the first end of the first capacitor; The second end of the first capacitor is electrically connected to the ground end.
10. The circuit according to claim 6, characterized in that The inversion module includes a fourth inverter; The input end of the fourth inverter inputs the constant current control signal, and the output end of the fourth inverter outputs the second inverted signal.
11. The circuit according to claim 2, characterized in that The frequency generating unit includes a trigger module and a clock switching module; The trigger module inputs the second inverted signal and the overcurrent detection signal, and outputs the switching control signal; The clock switching module inputs the switching control signal and outputs the clock signal.
12. The circuit according to claim 11, characterized in that The trigger module includes a first trigger; The reset terminal of the first trigger inputs the second inverted signal, the set terminal of the first trigger inputs the overcurrent detection signal, and the output terminal of the first trigger outputs the switching control signal.
13. The circuit according to claim 11, characterized in that The clock switching module includes a second inverter, a first current source, a second current source, a first switch, a second switch, a third switch, a second capacitor and a sawtooth wave processing module; The switching control signal is input to an input terminal of the second inverter, and an output terminal of the second inverter is electrically connected to a control terminal of the first switch; The second end of the first switch is connected to the output end of the first current source and the first end of the second switch, and the first end of the first switch is electrically connected to the output end of the second current source; The first terminal of the first current source is electrically connected to the first terminal of the second current source and a power supply terminal; The second end of the second switch is connected to the first end of the second capacitor and the first end of the third switch to output the first sawtooth wave or the second sawtooth wave, and the control end of the second switch receives a charging control signal; The second end of the third switch is connected to the second end of the second capacitor and to the ground, and the control end of the third switch receives a discharge control signal; The sawtooth wave processing module inputs the first sawtooth wave or the second sawtooth wave, outputs the charging control signal and the discharging control signal, and outputs the discharging control signal as a clock signal to the driving unit.
14. The circuit according to claim 13, characterized in that The sawtooth wave processing module includes a fourth comparator, a fifth comparator, a second trigger and a third inverter; The first input terminal of the fourth comparator and the second input terminal of the fifth comparator are input with the first sawtooth wave or the second sawtooth wave, the second input terminal of the fourth comparator is input with a third reference voltage, and the output terminal of the fourth comparator is electrically connected with the reset terminal of the second trigger; A fourth reference voltage is input to a first input terminal of the fifth comparator, and an output terminal of the fifth comparator is electrically connected to a set terminal of the second trigger; The output terminal of the second trigger is electrically connected to the input terminal of the third inverter to output the charging control signal; The output terminal of the third inverter outputs the discharge control signal, and outputs the discharge control signal as a clock signal to the driving unit.
15. The circuit according to claim 1, characterized in that The sampling unit includes a second transconductance amplifier and a fourth resistor; The sampling unit is connected to two ends of the sampling resistor, the first end of the sampling resistor is the input end, and the second end of the sampling resistor is the sampling end; The first input terminal of the second transconductance amplifier is electrically connected to the input terminal, the second input terminal of the second transconductance amplifier is electrically connected to the sampling terminal, the output terminal of the second transconductance amplifier is electrically connected to the first terminal of the fourth resistor, and outputs the sampling voltage; The second end of the fourth resistor is electrically connected to the ground end.
16. The circuit according to claim 1, characterized in that The driving unit includes a NAND gate, a fifth inverter, a NOR gate, a sixth inverter, a third trigger, a seventh inverter, a delay module, a third switch tube and a fourth switch tube; The input end of the NAND gate receives the constant current control signal, and the NAND gate is also connected to the delay module to receive a delay signal that delays the driving signal for a preset time; The input terminal of the fifth inverter is connected to the output terminal of the NAND gate; The first input end of the NOR gate is connected to the output end of the fifth inverter, and the second input end of the NOR gate receives the overcurrent detection signal; The input end of the sixth inverter is connected to the output end of the NOR gate; The reset terminal of the third flip-flop is connected to the output terminal of the sixth inverter, the set terminal of the third flip-flop receives the clock signal, and the output terminal of the third flip-flop is connected to the input terminal of the seventh inverter; The output end of the seventh inverter is electrically connected to the control end of the third switch tube and the control end of the fourth switch tube; The first end of the third switch tube is electrically connected to the power supply end, and the second end of the third switch tube is electrically connected to the first end of the fourth switch tube to output the driving signal; The second end of the fourth switch tube is connected to the ground end.
17. An LED constant current control system, characterized in that: The constant current control circuit comprises a constant current control circuit as claimed in any one of claims 1 to 16, and further comprises a sampling resistor, an LED, an inductor, a power tube and a freewheeling diode; The sampling resistor is connected between the input terminal and the sampling terminal; The cathode of the freewheeling diode is connected to the input end, and the anode of the freewheeling diode is connected to the first end of the inductor and the first end of the power tube; The second end of the inductor is connected to the cathode of the LED; The anode of the LED is connected to the sampling end; The second end of the power tube is connected to the ground end, and the control end of the power tube receives the driving signal output by the constant current control circuit; The sampling unit in the constant current control circuit is connected between the input terminal and the sampling terminal.
18. The system of claim 17, wherein: It also includes input and output capacitors; The first end of the input capacitor is connected to the input end, and the second end of the input capacitor is connected to the ground end; The output capacitor is connected in parallel with the LED.
