LED control method, circuit, chip and system

By detecting the input voltage and adjusting the driving signal and voltage parameters of the switching power supply, the problem of drastic current changes caused by input voltage changes in high power factor LED control systems is solved, the risk of LED load damage is reduced, and the system design is optimized.

CN118868631APending Publication Date: 2024-10-29CRM ICBG (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310465084.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In a high power factor LED control system, drastic changes in input voltage lead to drastic changes in inductor current, which in turn damages the switch tube and LED load. It is difficult to effectively prevent such damage with existing technology.

Method used

By detecting the input voltage, the driving signal, overcurrent protection voltage, compensation voltage, and operating frequency of the switching power supply are adjusted to reduce the output current and stabilize the output current when the input voltage suddenly changes from low voltage to high voltage.

Benefits of technology

It effectively reduces the risk of LED load damage, reduces the capacity of the output capacitor, and reduces cost and system volume while ensuring system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118868631A_ABST
    Figure CN118868631A_ABST
Patent Text Reader

Abstract

The invention provides an LED control method, circuit, chip and system. The method comprises the following steps: detecting to obtain an input voltage detection signal; and generating a driving signal of the power switch tube based on the sampling voltage of the current flowing through the power switch tube and the switching time, and adjusting the driving signal based on the input voltage detection signal so as to reduce the output current when the input voltage is suddenly changed from low voltage to high voltage, thereby stabilizing the output current. By sampling the input voltage or utilizing a variable capable of reflecting the input voltage, when the input voltage of the system is suddenly changed, the energy transmitted in a period and the input voltage are in an opposite change trend by controlling variables, such as an overcurrent point, a compensation voltage and a working frequency, which influence energy transmission, so that the aim of controlling the LED current is finally fulfilled; the risk of LED load damage is reduced; meanwhile, the capacity of an output capacitor of the switching power supply can be reduced on the basis of ensuring the reliability of the system, and the purposes of reducing the cost and reducing the size of the system are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuit design, and in particular to an LED control method, circuit, chip and system. Background Art

[0002] In some high power factor LED control systems, the loop bandwidth is usually very low, usually only a few Hz. The consequence of this low bandwidth is slow loop response. When the input voltage changes dramatically, it will cause a dramatic change in the inductor current, and ultimately cause a dramatic change in the LED output current, which will lead to damage to the switch tube and LED load.

[0003] In order to prevent damage to the switch tube and LED load, the inductor current is usually limited. That is, when the inductor current exceeds the current limit setting value, the overcurrent protection will be directly triggered and the switch tube will be forced to disconnect. Figure 1 As shown, taking the high power factor LED constant current power supply 1 adopting the flyback topology as an example, the chip 11 detects the sampling voltage through the CS pin, and the switch control module 112 generates a constant current control signal based on the sampling voltage and the switching time of the power switch tube Q. The constant current control signal acts on the gate of the power switch tube Q through the driver 113 to control the power switch tube Q to be turned on or off. The overcurrent protection voltage OCP plays an abnormal protection role, and the comparison result with the sampling voltage through the comparator 111 is sent to the switch control module 112 to turn off the power switch tube Q when overcurrent occurs, so as to prevent the circuit from being damaged due to overcurrent. Figure 2 As shown in the figure, the over-current protection voltage OCP is a fixed voltage set inside a chip and has nothing to do with other parameters. Figure 3 FIG. 1 is a schematic diagram showing waveforms of the gate GATE of the power switch tube Q, the sampling voltage Vcs and the compensation voltage COMP in the switch control module 112 when the input voltage Vin is low voltage; Figure 4 FIG. 1 is a schematic diagram showing waveforms of the gate GATE of the power switch tube Q, the sampling voltage Vcs and the compensation voltage COMP in the switch control module 112 when the input voltage Vin is high voltage; FIG. Figure 3 and Figure 4 It can be seen that for a high power factor LED constant current power supply (not limited to flyback topology) applied in a full voltage range (90VAC~264VAC input), compared with high voltage input, at low voltage input, the conduction time of the power switch tube Q is longer, the inductor peak current is larger, and the compensation voltage is also higher. Figure 5As shown, since the bandwidth of the high power factor LED control system loop is very low, the loop response is slow, and the compensation voltage cannot be adjusted in place in a short time, when the input voltage changes drastically from low voltage to high voltage, the turn-on time of the power switch tube Q cannot be adjusted quickly, resulting in the conduction time of the power switch tube Q being too long, the inductor current Ipk being too large, triggering the overcurrent protection (the inductor current Ipk reaches the preset overcurrent protection point Iocp), and the power switch tube Q is turned off by the overcurrent protection. Since the overcurrent protection voltage OCP is a fixed voltage, in order to ensure the normal operation of the system, the overcurrent protection voltage OCP must be higher than the highest voltage on the CS pin during normal low-voltage input operation. However, this results in the inability to trigger the overcurrent protection in time when the input voltage changes drastically from low voltage to high voltage, resulting in the conduction time of the power switch tube Q being too long, the voltage on the CS pin being too high, and the energy output to the load increasing sharply, which ultimately causes a drastic change in the LED current Iout, making the LED load at risk of damage.

[0004] Therefore, how to avoid drastic changes in output current when the input voltage changes drastically and reduce the risk of damage to the power switch tube and the LED load has become one of the problems that technical personnel in this field need to solve urgently.

[0005] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because they are described in the background technology section of the present application. Summary of the invention

[0006] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide an LED control method, circuit, chip and system for solving the problem in the prior art that drastic changes in input voltage lead to drastic changes in output current, and the power switch tube and LED load are easily damaged.

[0007] To achieve the above objectives and other related objectives, the present invention provides an LED control method, which at least includes:

[0008] Detecting the input voltage of the switching power supply to obtain an input voltage detection signal;

[0009] A drive signal for a power switch in a switching power supply is generated, and the drive signal is adjusted based on the input voltage detection signal to reduce the output current in the switching power supply when the input voltage suddenly changes from a low voltage to a high voltage, thereby stabilizing the output current.

[0010] Optionally, the input voltage is detected, and the overcurrent protection voltage and / or compensation voltage is adjusted based on the amplitude change of the input voltage; wherein the overcurrent protection voltage is negatively correlated with the amplitude of the input voltage, and the compensation voltage is negatively correlated with the amplitude of the input voltage.

[0011] Optionally, the input voltage is detected, and when the amplitude of the input voltage is greater than the peak value of the low input voltage, the overcurrent protection voltage and / or the compensation voltage is reduced.

[0012] Optionally, the input voltage is detected, and the operating frequency of the switching power supply is adjusted based on the change in the amplitude of the input voltage, and the operating frequency is negatively correlated with the amplitude of the input voltage.

[0013] Optionally, the input voltage is detected, and when the amplitude of the input voltage is greater than the peak value of the low input voltage, the operating frequency of the switching power supply is reduced.

[0014] More optionally, the operating frequency is controlled by adjusting the switch-off time.

[0015] To achieve the above objectives and other related objectives, the present invention provides an LED control circuit, the LED control circuit at least comprising:

[0016] Input voltage detection module and switch control module;

[0017] The input voltage detection module detects the input voltage of the switching power supply to obtain an input voltage detection signal;

[0018] The switch control module generates a drive signal for the power switch tube in the switching power supply, and adjusts the drive signal based on the input voltage detection signal to reduce the output current of the switching power supply when the input voltage suddenly changes from low voltage to high voltage, thereby stabilizing the output current.

[0019] Optionally, the switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module;

[0020] The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, and generates a first control signal based on the sampled voltage and the switching time;

[0021] The overcurrent protection module is connected to the output end of the input voltage detection module, adjusts the overcurrent protection voltage based on the input voltage detection signal, and reduces the overcurrent protection voltage when the input voltage suddenly changes from low voltage to high voltage; and generates a second control signal based on the comparison result between the sampling voltage and the overcurrent protection voltage;

[0022] The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, and generates a switch control signal based on the first control signal and the second control signal;

[0023] The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

[0024] More optionally, the input voltage detection module samples the input voltage, and the input voltage detection signal is used to characterize the amplitude of the input voltage;

[0025] The overcurrent protection module includes an overcurrent protection voltage adjustment unit and a first comparator; the overcurrent protection voltage adjustment unit adjusts the overcurrent protection voltage based on the input voltage detection signal, and the overcurrent protection voltage is negatively correlated with the input voltage detection signal; the first input terminal of the first comparator receives the overcurrent protection voltage, the second input terminal receives the sampling voltage, and outputs the second control signal.

[0026] More optionally, the overcurrent protection voltage adjustment unit includes a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube and a first operational amplifier;

[0027] The drains of the first PMOS tube and the second PMOS tube are connected to the power supply voltage; the drain of the first PMOS tube is connected to the drain and gate of the first NMOS tube; a current signal proportional to the input voltage is injected into the drain of the first NMOS tube; the source of the first NMOS tube is grounded; the non-inverting input terminal of the first operational amplifier is connected to the gate of the first NMOS tube, the inverting input terminal is connected to the first reference voltage, and the output terminal is connected to the gate of the first PMOS tube and the second PMOS tube; the drain of the second PMOS tube is connected to the drain and gate of the second NMOS tube, and the overcurrent protection voltage is output; the source of the second NMOS tube is connected to the first bias voltage.

[0028] More optionally, the input voltage detection module detects the input voltage, and generates a valid input voltage detection signal when the amplitude of the input voltage is greater than the peak value of the low input voltage;

[0029] The overcurrent protection module includes a selection unit and a second comparator; the first input end of the selection unit receives a first overcurrent protection voltage, the second input end receives a second overcurrent protection voltage, and the control end is connected to the input voltage detection signal; when the input voltage detection signal is invalid, the first overcurrent protection voltage is output, and when the input voltage detection signal is valid, the second overcurrent protection voltage is output, wherein the first overcurrent protection voltage is greater than the second overcurrent protection voltage; the first input end of the second comparator receives the output end of the selection unit, the second input end receives the sampling voltage, and outputs the second control signal.

[0030] Optionally, the switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module;

[0031] The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, generates a first control signal based on the sampled voltage and the switching time, and adjusts a compensation voltage based on the input voltage detection signal, and reduces the compensation voltage when the input voltage suddenly changes from a low voltage to a high voltage, wherein the greater the compensation voltage, the longer the on-time of the switch power supply;

[0032] The overcurrent protection module generates a second control signal based on the sampled voltage and the overcurrent protection voltage;

[0033] The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, and generates a switch control signal based on the first control signal and the second control signal;

[0034] The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

[0035] More optionally, the constant current control module includes a compensation voltage generating unit, a compensation capacitor, a compensation voltage adjusting unit, a sawtooth wave generating unit and an operational amplifier unit; wherein,

[0036] The compensation voltage generating unit generates the compensation voltage based on the sampling voltage and the switching time;

[0037] The upper plate of the compensation capacitor is connected to the output end of the compensation voltage generating unit, and the lower plate is grounded;

[0038] The compensation voltage adjustment unit receives the input voltage detection signal, and the output end is connected to the upper plate of the compensation capacitor;

[0039] The sawtooth wave generating unit is used to generate a sawtooth wave signal;

[0040] The first input end of the operational amplifier unit is connected to the upper plate of the compensation capacitor, and the second input end is connected to the output end of the sawtooth wave generating unit to output the first control signal.

[0041] More optionally, the input voltage detection module samples the input voltage, and the input voltage detection signal is used to characterize the amplitude of the input voltage;

[0042] The compensation voltage adjustment unit includes a third PMOS tube, a fourth PMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube, a second operational amplifier and a third operational amplifier;

[0043] The drains of the third PMOS tube and the fourth PMOS tube are connected to the power supply voltage; the drain of the third PMOS tube is connected to the drain and gate of the third NMOS tube; a current signal proportional to the input voltage is injected into the drain of the third NMOS tube; the source of the third NMOS tube is grounded; the non-inverting input terminal of the second operational amplifier is connected to the gate of the third NMOS tube, the inverting input terminal is connected to the second reference voltage, and the output terminal is connected to the gate of the third PMOS tube and the fourth PMOS tube; the drain of the fourth PMOS tube is connected to the drain and gate of the fourth NMOS tube; the source of the fourth NMOS tube is connected to the second bias voltage; the inverting input terminal of the third operational amplifier is connected to the gate of the fourth NMOS tube, the non-inverting input terminal is connected to the drain of the fifth NMOS tube, and the output terminal is connected to the gate of the fifth NMOS tube; the source of the fifth NMOS tube is grounded, and the drain is connected to the upper plate of the compensation capacitor.

[0044] More optionally, the input voltage detection module detects the input voltage, and generates a valid input voltage detection signal when the amplitude of the input voltage is greater than the peak value of the low input voltage;

[0045] The compensation voltage adjustment unit includes a discharge path, which is connected to the upper plate of the compensation capacitor. When the input voltage detection signal is valid, the discharge path is turned on to reduce the compensation voltage.

[0046] Optionally, the switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module;

[0047] The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, and generates a first control signal based on the sampled voltage and the switching time;

[0048] The overcurrent protection module generates a second control signal based on the sampled voltage and the overcurrent protection voltage;

[0049] The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, generates a switch control signal based on the first control signal and the second control signal, and adjusts the operating frequency of the switch control signal based on the input voltage detection signal, and reduces the operating frequency of the switch control signal when the input voltage suddenly changes from low voltage to high voltage;

[0050] The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

[0051] More optionally, the logic control module includes an on-time control unit, an off-time control unit and a switch control signal generating unit;

[0052] The on-time control unit generates an off-control signal based on the first control signal;

[0053] The off-time control unit generates a conduction control signal based on the demagnetization time, and adjusts the off-time of the switch control signal based on the amplitude of the input voltage; the off-time is positively correlated with the amplitude of the input voltage, or the off-time is reduced when the amplitude of the input voltage is greater than the peak value of the low input voltage;

[0054] The switch control signal generating unit is connected to the on-time control unit, the off-time control unit and the output end of the overcurrent protection module, and generates the switch control signal based on the off-time control signal, the on-time control signal and the second control signal.

[0055] More optionally, the off time control unit includes a first current source, a second current source, a first switch, a second switch, a third switch, a first capacitor, a fourth comparator and an AND gate;

[0056] The input end of the first current source is connected to the power supply voltage, and the output end is grounded via the first switch and the second current source in sequence; when the amplitude of the input voltage is greater than the peak value of the low input voltage, the first switch is turned on, and the second current source is proportional to the amplitude of the input voltage;

[0057] One end of the second switch is connected to the output end of the first current source, and the other end is grounded via the third switch; when the switch control signal is valid, the second switch is turned off and the third switch is turned on; when the switch control signal is invalid, the second switch is turned on and the third switch is turned off;

[0058] The first capacitor is connected in parallel to two ends of the third switch;

[0059] The non-inverting input terminal of the fourth comparator is connected to the upper plate of the first capacitor, and the inverting input terminal is connected to the third reference voltage; the output terminal of the AND gate is respectively connected to the output terminal of the fourth comparator and the demagnetization detection signal, and outputs the conduction control signal.

[0060] More optionally, the input voltage detection module includes a peak sampling and holding unit, a low-frequency filtering unit, a real-time sampling unit and a third comparator;

[0061] The peak sampling and holding unit receives the input voltage and is used to obtain the peak value of the input voltage;

[0062] The low-frequency filter unit is connected to the output end of the peak sampling and holding unit, and is used to filter the output signal of the peak sampling and holding unit;

[0063] The real-time sampling unit receives the input voltage and detects the amplitude of the input voltage;

[0064] The first input end of the third comparator is connected to the output end of the low-frequency filtering unit, the second input end is connected to the output end of the real-time sampling unit, and outputs the input voltage detection signal.

[0065] To achieve the above object and other related objects, the present invention provides a chip, which at least includes: the above LED control circuit.

[0066] To achieve the above objectives and other related objectives, the present invention provides an LED control system, which at least includes:

[0067] Switching power supply and the above LED control circuit;

[0068] The LED control circuit provides a driving signal for the switching power supply;

[0069] The switching power supply provides power to the LED based on the switching control signal.

[0070] As described above, the LED control method, circuit, chip and system of the present invention have the following beneficial effects:

[0071] The LED control method, circuit, chip and system of the present invention can sample the input voltage or use variables that can reflect the input voltage, so that when the input voltage suddenly changes, the system can control the variables that affect energy transmission, such as the overcurrent point, compensation voltage, and operating frequency, so that the energy transmitted within the cycle changes in the opposite direction to the input voltage, thereby ultimately achieving the purpose of controlling the LED current and reducing the risk of damage to the LED load. At the same time, the capacity of the output capacitor of the switching power supply can be reduced on the basis of ensuring the reliability of the system, thereby achieving the purpose of reducing costs and reducing the size of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 Shown is a structural schematic diagram of a high power factor LED constant current power supply using a flyback topology.

[0073] Figure 2 Shown is a schematic diagram of the relationship between the overcurrent protection voltage and the input voltage.

[0074] Figure 3 It shows a schematic diagram of the waveforms of each node when the input voltage is low.

[0075] Figure 4 It shows a schematic diagram of the waveforms of each node when the input voltage is high voltage.

[0076] Figure 5 It shows a schematic diagram of the waveforms of each node when the input voltage changes suddenly.

[0077] Figure 6 It is a schematic flow chart of the LED control method of the present invention.

[0078] Figure 7 It is a schematic diagram showing the relationship that the overcurrent protection voltage decreases linearly with the increase of input voltage.

[0079] Figure 8 The diagram shows that the overcurrent protection voltage decreases more and more slowly as the input voltage increases.

[0080] Fig. 9 The diagram shows that the overcurrent protection voltage decreases faster and faster as the input voltage increases.

[0081] Fig.10 The diagram shows the relationship that the overcurrent protection voltage remains unchanged when the input voltage is small, gradually decreases as the input voltage increases, and remains unchanged when the input voltage is large.

[0082] Fig.11 It is a schematic diagram showing the relationship that the overcurrent protection voltage decreases in a step-like manner as the input voltage increases.

[0083] Fig.12 Shown is a structural schematic diagram of the LED control circuit of the present invention.

[0084] Fig.13 It shows a structural schematic diagram of the input voltage detection module and the overcurrent protection voltage adjustment unit of the present invention.

[0085] Fig.14 It is a schematic diagram showing waveforms of various nodes when a high power factor LED constant current power supply with a flyback topology operating in a current critical mode adopts the LED control circuit of the fourth embodiment.

[0086] Fig.15 Another structural schematic diagram of the LED control circuit of the present invention is shown.

[0087] Fig.16 It is a schematic diagram showing waveforms of various nodes when a high power factor LED constant current power supply with a flyback topology operating in a current critical mode adopts the LED control circuit of the fifth embodiment.

[0088] Fig.17 Shown is another structural schematic diagram of the LED control circuit of the present invention.

[0089] Fig.18 It is a schematic diagram showing the structure of the compensation voltage adjustment unit of the present invention.

[0090] Fig.19 Shown is another structural schematic diagram of the LED control circuit of the present invention.

[0091] Fig. 20 Shown is a structural schematic diagram of the logic control module of the present invention.

[0092] Fig.21 Shown is a structural schematic diagram of the LED control system of the present invention.

[0093] Component number description

[0094] 1 High power factor LED constant current power supply using flyback topology

[0095] 11 Chip

[0096] 111 Comparator

[0097] 112 switch control module

[0098] 113 Driver

[0099] 2 LED control circuit

[0100] 21 Input voltage detection module

[0101] 211 Peak Sample and Hold Unit

[0102] 212 Low frequency filter unit

[0103] 213 Real-time sampling unit

[0104] 22 Switch control module

[0105] 221 Constant current control module

[0106] 221a Compensation voltage generating unit

[0107] 221b Compensation voltage adjustment unit

[0108] 221c Sawtooth Wave Generator Unit

[0109] 221d Operational Amplifier Unit

[0110] 222 Overcurrent protection module

[0111] 222a Overcurrent protection voltage adjustment unit

[0112] 222b First comparator

[0113] 222c Select Unit

[0114] 222d Second comparator

[0115] 223 Logic Control Module

[0116] 223a On-time control unit

[0117] 223b Off-time control unit

[0118] 223c Switch control signal generating unit

[0119] 224 Driver Module

[0120] 23 Internal power supply module

[0121] 3 Switching power supply DETAILED DESCRIPTION

[0122] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0123] See also Figure 6 to Figure 21 It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0124] Embodiment 1

[0125] like Figure 6 As shown, this embodiment provides an LED control method, and the LED control method includes:

[0126] S1: Detect the input voltage Vin of the switching power supply to obtain an input voltage detection signal.

[0127] Specifically, in this embodiment, the input voltage detection signal is used to characterize the amplitude of the input voltage Vin. As an example, the input voltage Vin is sampled to obtain amplitude information, and the sampled signal is used as the input voltage detection signal; in actual use, the input voltage Vin itself can be directly sampled, or a signal related to the input voltage Vin can be indirectly sampled, and the objects of indirect sampling include but are not limited to duty cycle, inductor peak current, current slope, demagnetization time, and any object that can reflect the change in the amplitude of the input voltage Vin is applicable, and they are not described one by one here.

[0128] S2: Generate a driving signal for the power switch tube, and adjust the driving signal based on the input voltage detection signal to reduce the output current when the input voltage Vin suddenly changes from a low voltage to a high voltage, thereby stabilizing the output current.

[0129] Specifically, any method that can generate the driving signal of the power switch tube is applicable to the present invention. In this embodiment, the driving signal is generated based on the sampling voltage of the current flowing through the power switch tube in the switching power supply and the switching time of the power switch tube.

[0130] Specifically, as an example, the overcurrent protection voltage OCP is adjusted based on the amplitude change of the input voltage Vin, the overcurrent protection voltage OCP is negatively correlated with the amplitude of the input voltage Vin, and then the output current is stabilized by the inductor current. Wherein, the negative correlation means that the overcurrent protection voltage OCP tends to decrease with the increase of the input voltage Vin. As an example, Figure 7 As shown, the over-current protection voltage OCP decreases linearly with the increase of the input voltage Vin; Figure 8 As shown, the speed at which the overcurrent protection voltage OCP decreases becomes slower and slower as the input voltage Vin increases; Fig. 9 As shown, the over-current protection voltage OCP decreases faster and faster as the input voltage Vin increases; Fig.10 As shown, the over-current protection voltage OCP remains unchanged when the input voltage Vin is small, gradually decreases as the input voltage Vin increases, and remains unchanged when the input voltage Vin is large; as shown Fig.11 As shown, the over-current protection voltage OCP decreases in a step-like manner as the input voltage Vin increases (the step can be set to one level); in actual use, it is not limited to the several relationship curves listed in this embodiment. Any relationship curve that satisfies the trend of decreasing the over-current protection voltage OCP as the input voltage Vin increases is applicable to the present invention and will not be described one by one here.

[0131] Specifically, as another example, the compensation voltage Vcomp is adjusted based on the amplitude change of the input voltage Vin, and the compensation voltage is negatively correlated with the amplitude of the input voltage; the smaller the compensation voltage is, the shorter the conduction time of the power switch tube is, thereby making the inductor current smaller.

[0132] It should be noted that the methods of adjusting the overcurrent protection voltage and adjusting the compensation voltage can be used simultaneously; in addition, in actual use, any signal that can control the inductor current can be used as an adjustment object, and is not limited to this embodiment.

[0133] Embodiment 2

[0134] This embodiment provides an LED control method, which is different from the first embodiment in that the input voltage detection signal is used to characterize the situation where the input voltage suddenly changes from a low voltage to a high voltage.

[0135] Specifically, in S1, the input voltage Vin is compared with the peak value of the low input voltage. When the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the input voltage detection signal is valid; wherein, the input voltage is a low input voltage before the sudden change and a high input voltage after the sudden change, and the peak value of the low input voltage is less than the peak value of the high input voltage. Similarly, the sudden change of the input voltage can be judged based on the signal related to the input voltage Vin, which will not be described in detail here.

[0136] Specifically, in S2, when the input voltage detection signal is valid, the overcurrent protection voltage and / or the compensation voltage is reduced. More specifically, when the input voltage detection signal is valid, the amount by which the overcurrent protection voltage is reduced is positively correlated with the amplitude of the input voltage Vin (the overcurrent protection voltage is negatively correlated with the amplitude of the input voltage Vin), or the amount by which the overcurrent protection voltage is reduced is a preset fixed value (the specific value can be set according to actual needs). Similarly, when the input voltage detection signal is valid, the amount by which the compensation voltage is reduced is positively correlated with the amplitude of the input voltage Vin (the compensation voltage is negatively correlated with the amplitude of the input voltage Vin), or the amount by which the compensation voltage is reduced is a preset fixed value.

[0137] The other principles are the same as those in the first embodiment and will not be described in detail here.

[0138] Embodiment 3

[0139] This embodiment provides an LED control method, which is different from the first and second embodiments in that the output current is regulated by adjusting the operating frequency of the switching power supply.

[0140] Specifically, as an implementation of this embodiment, the operating frequency is adjusted based on the change in the amplitude of the input voltage, and the operating frequency is negatively correlated with the amplitude of the input voltage Vin.

[0141] Specifically, as another implementation method of this embodiment, the operating frequency is adjusted based on the sudden change of the input voltage Vin, and the operating frequency is reduced when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage. More specifically, when the input voltage detection signal is valid, the amount of reduction in the operating frequency is positively correlated with the amplitude of the input voltage Vin (the operating frequency is negatively correlated with the amplitude of the input voltage Vin), or the amount of reduction in the operating frequency is a preset fixed value.

[0142] More specifically, as an example, the operating frequency may be controlled by adjusting the off time; the longer the off time is, the lower the operating frequency is.

[0143] The other principles are the same as those of the first and second embodiments and will not be described in detail here.

[0144] Embodiment 4

[0145] like Fig.12 As shown, this embodiment provides an LED control circuit 2, and the LED control circuit 2 adjusts the overcurrent protection voltage based on the amplitude change of the input voltage Vin, thereby achieving regulation of the inductor current. The LED control circuit 2 includes:

[0146] An input voltage detection module 21 and a switch control module 22 .

[0147] like Fig.12 As shown, the input voltage detection module 21 detects the input voltage Vin of the switching power supply to obtain an input voltage detection signal.

[0148] Specifically, the input voltage detection module 21 can detect the input voltage based on signals including but not limited to the input voltage Vin, duty cycle, inductor peak current, current slope, demagnetization time, etc., and then obtain the input voltage detection signal. As an example, the input voltage detection module 21 directly samples the input voltage Vin to obtain the amplitude information of the input voltage Vin.

[0149] Specifically, in this embodiment, the input voltage detection module 21 samples the input voltage Vin, and the input voltage detection signal is used to characterize the amplitude of the input voltage Vin. Fig.13As shown, the input voltage detection module 21 includes a sampling unit (composed of a first resistor R1 and a second resistor R2 connected in series), a fourth operational amplifier U5, a third resistor R3, a sixth NMOS tube NM6 and a current mirror (composed of a fifth PMOS tube PM5 and a sixth PMOS tube PM6); the non-inverting input end of the fourth operational amplifier U5 is connected to the output end of the sampling unit, and the inverting output end is connected to the source of the sixth NMOS tube NM6; the source of the sixth NMOS tube NM6 is grounded via the third resistor R3, the gate is connected to the output end of the fourth operational amplifier U5, and the drain is connected to the first end of the current mirror; the second end of the current mirror outputs a current signal Iin (i.e., an input voltage detection signal) that is proportional to the input voltage Vin. The input voltage Vin can also be sampled as a voltage signal, and any circuit structure that can sample the input voltage Vin to characterize the amplitude of the input voltage Vin is applicable to the present invention, and is not limited to this embodiment.

[0150] like Fig.12 As shown, the switch control module 22 generates a drive signal GATE for the power switch tube; and adjusts the drive signal GATE based on the input voltage detection signal to reduce the output current Iout when the input voltage Vin suddenly changes from a low voltage to a high voltage, thereby stabilizing the output current Iout.

[0151] Specifically, in this embodiment, the switch control module 22 includes a constant current control module 221 , an overcurrent protection module 222 , a logic control module 223 and a driving module 224 .

[0152] More specifically, the constant current control module 221 receives a sampled voltage CS of the current flowing through the power switch tube and the switching time of the power switch tube, and generates a first control signal based on the sampled voltage CS and the switching time. The structure of the constant current control module 221 is not limited (as an example, the constant current control module adopts the structure of the constant current control module shown in Example 6, except that the compensation voltage adjustment unit 221b is not included). Any circuit structure that can generate a constant current control signal based on the feedback signal of the switching power supply is applicable to the present invention, and will not be described one by one here.

[0153] More specifically, the overcurrent protection module 222 is connected to the output end of the input voltage detection module 21, and adjusts the overcurrent protection voltage OCP based on the input voltage detection signal, and reduces the overcurrent protection voltage OCP when the input voltage Vin suddenly changes from a low voltage to a high voltage; and generates a second control signal based on the comparison result between the sampling voltage CS and the overcurrent protection voltage OCP. As an example, the overcurrent protection module 222 includes an overcurrent protection voltage adjustment unit 222a and a first comparator 222b. The overcurrent protection voltage adjustment unit 222a adjusts the overcurrent protection voltage OCP based on the input voltage detection signal, and the overcurrent protection voltage OCP is negatively correlated with the input voltage detection signal; as Fig.13 As shown, the overcurrent protection voltage adjustment unit 222a includes a first PMOS tube PM1, a second PMOS tube PM2, a first NMOS tube NM1, a second NMOS tube NM2 and a first operational amplifier U1; the drains of the first PMOS tube MP1 and the second PMOS tube MP2 are connected to the power supply voltage VDD; the drain of the first PMOS tube PM1 is connected to the drain and gate of the first NMOS tube NM1; the current signal Iin is injected into the drain of the first NMOS tube NM1; the source of the first NMOS tube NM1 is grounded; the non-inverting input terminal of the first operational amplifier U1 is connected to the gate of the first NMOS tube NM1, the inverting input terminal is connected to the first reference voltage ref1, and the output terminal is connected to the gates of the first PMOS tube PM1 and the second PMOS tube PM2; the drain of the second PMOS tube PM2 is connected to the drain and gate of the second NMOS tube NM2, and outputs the overcurrent protection voltage OCP; the source of the second NMOS tube NM2 is connected to the first bias voltage Voffset1. The first input terminal of the first comparator 222b receives the overcurrent protection voltage OCP, and the second input terminal receives the sampling voltage CS. When the sampling voltage CS is greater than the overcurrent protection voltage OCP, a valid second control signal is output; in this example, the first input terminal is a positive input terminal, and the second input terminal is an inverting input terminal. The relationship between the input terminal polarity and the corresponding input signal can be adjusted as needed, as long as the logic of the present invention can be implemented. In actual use, any circuit structure that can achieve overcurrent protection and reduce the overcurrent protection voltage when the input voltage Vin suddenly changes from low voltage to high voltage is applicable to the present invention, and is not limited to this embodiment.

[0154] More specifically, the logic control module 223 is connected to the output ends of the constant current control module 221 and the overcurrent protection module 222 , and generates a switch control signal based on the first control signal and the second control signal.

[0155] More specifically, the driving module 224 is connected to the output end of the logic control module 223 and drives the power switch tube based on the switch control signal.

[0156] like Fig.12 As shown, in this embodiment, the LED control circuit 2 is prepared in the chip. As an example, the chip is also provided with an internal power supply module 23 for supplying power to each module in the chip.

[0157] The LED control circuit 2 of this embodiment adjusts the overcurrent protection voltage based on the amplitude change of the input voltage Vin, and the overcurrent protection voltage is negatively correlated with the amplitude of the input voltage Vin. Fig.13 As shown, the drain voltage of the first PMOS tube PM1 is clamped by the first reference voltage ref1, and the current flowing through the second PMOS tube PM2 is proportional to the current flowing through the first PMOS tube PM1; the larger the input voltage Vin is, the larger the current signal Iin is correspondingly. In order to stabilize the drain voltage of the first PMOS tube PM1 at the first reference voltage ref1, the smaller the current flowing through the first PMOS tube PM1 is, the smaller the current flowing through the second PMOS tube PM2 and the second NMOS tube NM2 is, and the overcurrent protection voltage OCP satisfies the following relationship: OCP=VGS(NM2)+Voffset1, that is, the overcurrent protection voltage OCP is inversely proportional to the input voltage Vin.

[0158] like Fig.14 As shown, taking a high power factor LED constant current power supply of a flyback topology working in a current critical mode as an example, when the overcurrent protection voltage OCP is inversely proportional to the input voltage Vin, the overcurrent protection point Iocp corresponding to the overcurrent protection voltage decreases with the increase of the input voltage Vin, and increases with the decrease of the input voltage Vin; when the input voltage Vin suddenly changes from a low voltage to a high voltage, the overcurrent protection point Iocp drops sharply, triggering the overcurrent protection in advance, limiting the inductor peak current Ipk, reducing the energy transfer within the cycle, and then stabilizing the output current Iout, reducing the risk of damage to the power switch tube and the LED load.

[0159] Embodiment 5

[0160] like Fig.15 As shown, this embodiment provides an LED control circuit 2, which is different from the fourth embodiment in that the LED control circuit of this embodiment adjusts the overcurrent protection voltage based on the sudden change of the input voltage Vin, thereby realizing the regulation of the inductor current.

[0161] Specifically, in this embodiment, the input voltage detection module 21 detects the input voltage Vin, and generates a valid input voltage detection signal when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage. Fig.15 As shown, the input voltage detection module 21 includes a peak sampling and holding unit 211, a low-frequency filtering unit 212, a real-time sampling unit 213 and a third comparator U6. The peak sampling and holding unit 211 receives the input voltage Vin and is used to obtain the peak value of the input voltage. The low-frequency filtering unit 212 is connected to the output end of the peak sampling and holding unit 211, and is used to filter the output signal of the peak sampling and holding unit 211 to obtain the peak value of the input voltage. The real-time sampling unit receives the input voltage Vin and performs real-time detection on the amplitude of the input voltage Vin. The first input end of the third comparator U6 is connected to the output end of the low-frequency filtering unit 212, and the second input end is connected to the output end of the real-time sampling unit 213, and outputs the input voltage detection signal; in this example, the first input end is an inverting input end, and the second input end is a non-inverting input end. In actual use, the relationship between the input polarity and the corresponding input signal can be adjusted as needed, and the logic of the present invention can be implemented. Any circuit structure that can detect a sudden change of the input voltage from a low voltage to a high voltage is applicable to the present invention, and the detection object is not limited to the input voltage itself, and is not limited to this embodiment.

[0162] Specifically, in this embodiment, the overcurrent protection module 222 includes a selection unit 222c and a second comparator 222d. The first input terminal of the selection unit 222c receives the first overcurrent protection voltage Vocp1, the second input terminal receives the second overcurrent protection voltage Vocp2, and the control terminal is connected to the input voltage detection signal; when the input voltage detection signal is invalid, the first overcurrent protection voltage Vocp1 is output as the overcurrent protection voltage OCP, and when the input voltage detection signal is valid, the second overcurrent protection voltage Vocp2 is output as the overcurrent protection voltage OCP, wherein the first overcurrent protection voltage Vocp1 is greater than the second overcurrent protection voltage Vocp2. The first input terminal of the second comparator 222d receives the output terminal of the selection unit 222c, the second input terminal receives the sampling voltage CS, and outputs the second control signal; in this example, the first input terminal is a positive input terminal, and the second input terminal is an inverting input terminal. The relationship between the input terminal polarity and the corresponding input signal can be adjusted as needed, and the logic of the present invention can be implemented. In actual use, any circuit structure that can implement overcurrent protection and reduce the overcurrent protection voltage when the input voltage Vin suddenly changes from low voltage to high voltage is applicable to the present invention, and is not limited to this embodiment.

[0163] Specifically, in steady state, the voltage Vin_p at the positive input terminal of the third comparator U6 is less than or equal to the voltage Vin_n at the negative input terminal, that is, the amplitude of the input voltage is less than the peak value, and at this time, the selection unit 222c selects the first overcurrent protection voltage Vocp_ref1 as the threshold value of the sampling voltage CS. When the input voltage Vin suddenly increases, the amplitude of the input voltage Vin will be greater than the peak value in steady state (i.e., low voltage), the voltage Vin_p at the positive input terminal of the third comparator U6 is greater than the voltage Vin_n at the negative input terminal, the third comparator U6 flips, and the selection unit 222c selects the second overcurrent protection voltage Vocp_ref2 as the threshold value of the sampling voltage CS.

[0164] like Fig.16 As shown, taking a high power factor LED constant current power supply of a flyback topology working in a current critical mode as an example, when the input voltage Vin is low voltage, the overcurrent protection point Iocp is maintained at a set value; when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the overcurrent protection point Iocp drops to a preset current, triggering the overcurrent protection in advance, limiting the inductor peak current Ipk, and thereby stabilizing the output current Iout.

[0165] The other structures and principles are the same as those of the fourth embodiment and will not be described in detail here.

[0166] It should be noted that when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the overcurrent protection voltage OCP may also be reduced, and the amount of reduction is positively correlated with the amplitude of the input voltage Vin, which will not be elaborated here.

[0167] Embodiment 6

[0168] like Fig.17 As shown, this embodiment provides an LED control circuit 2, which is different from the fourth and fifth embodiments in that the LED control circuit of this embodiment adjusts the compensation voltage based on the amplitude change of the input voltage Vin, thereby achieving regulation of the inductor current.

[0169] like Fig.17 As shown, the input voltage detection module 21 detects the input voltage Vin of the switching power supply to obtain an input voltage detection signal. In this embodiment, the structure of the input voltage detection module 21 is the same as that of the fourth embodiment, and will not be described in detail here.

[0170] like Fig.17 As shown, in this embodiment, the switch control module 22 includes a constant current control module 221 , an overcurrent protection module 222 , a logic control module 223 and a driving module 224 .

[0171] Specifically, in this embodiment, the constant current control module 221 receives the sampled voltage CS and the switching time, generates a first control signal based on the sampled voltage CS and the switching time, and adjusts the compensation voltage Vcomp based on the input voltage detection signal, and reduces the compensation voltage Vcomp when the input voltage Vin suddenly changes from a low voltage to a high voltage, wherein the larger the compensation voltage Vcomp, the longer the on-time of the switching power supply. As an example, the constant current control module 221 includes a compensation voltage generating unit 221a, a compensation capacitor Ccomp, a compensation voltage adjusting unit 221b, a sawtooth wave generating unit 221c, and an operational amplifier unit 221d.

[0172] More specifically, the compensation voltage generating unit 221a generates the compensation voltage Vcomp based on the sampled voltage CS and the switching time; the upper plate of the compensation capacitor Ccomp is connected to the output end of the compensation voltage generating unit 221a, and the lower plate is grounded; any circuit structure that can generate the compensation voltage Vcomp based on the sampled voltage CS and the switching time to control the power switch tube is applicable to the present invention. As an implementation form, the compensation voltage generating unit 221a samples and holds the inductor current based on the sampled voltage CS, and obtains a demagnetization detection signal (used to reflect the switching time, and can also detect the on-time of the power switch tube to reflect the switching time, or detect the off-time of the power switch tube to reflect the switching time), generates a constant current control signal based on the sampled and held signal of the inductor current and the demagnetization detection signal, and compares the constant current control signal with a preset value to generate the compensation voltage Vcomp.

[0173] More specifically, the compensation voltage adjustment unit 221b receives the input voltage detection signal, and the output end is connected to the upper plate of the compensation capacitor Ccomp. Fig.18As shown, as an implementation form, the compensation voltage adjustment unit 221b includes a third PMOS transistor PM3, a fourth PMOS transistor PM4, a third NMOS transistor NM3, a fourth NMOS transistor NM4, a fifth NMOS transistor NM5, a second operational amplifier U2 and a third operational amplifier U3. The drains of the third PMOS transistor PM3 and the fourth PMOS transistor PM4 are connected to the power supply voltage VDD; the drain of the third PMOS transistor PM3 is connected to the drain and gate of the third NMOS transistor NM3; the current signal Iin is injected into the drain of the third NMOS transistor NM3; the source of the third NMOS transistor NM3 is grounded; the non-inverting input terminal of the second operational amplifier U2 is connected to the gate of the third NMOS transistor NM3, the inverting input terminal is connected to the second reference voltage ref2, and the output terminal is connected to the third PMOS transistor PM3 and the fourth PMOS transistor PM4. The gate of the PMOS tube PM4; the drain of the fourth PMOS tube PM4 is connected to the drain and gate of the fourth NMOS tube NM4; the source of the fourth NMOS tube NM4 is connected to the second bias voltage Voffset2; the inverting input terminal of the third operational amplifier U3 is connected to the gate of the fourth NMOS tube NM4, the non-inverting input terminal is connected to the drain of the fifth NMOS tube NM5, and the output terminal is connected to the gate of the fifth NMOS tube NM5; the source of the fifth NMOS tube NM5 is grounded, and the drain is connected to the upper plate of the compensation capacitor Ccomp. The fifth NMOS tube NM5 provides a pull-down path for the compensation voltage Vcomp. The larger the input voltage Vin, the larger the current in the pull-down path, thereby making the compensation voltage Vcomp negatively correlated with the input voltage Vin. The specific working principle is similar to that of the fourth embodiment, which will not be described one by one here. Any circuit structure that can reduce the compensation voltage when the input voltage Vin suddenly changes from low voltage to high voltage is applicable to the present invention, not limited to this embodiment.

[0174] More specifically, the sawtooth wave generating unit 221c is used to generate a sawtooth wave signal.

[0175] More specifically, the first input terminal of the operational amplifier unit 221d is connected to the upper plate of the compensation capacitor Ccomp, and the second input terminal is connected to the output terminal of the sawtooth wave generating unit 221c, and the first control signal is output. In this example, the inverting input terminal of the operational amplifier unit 221d is connected to the upper plate of the compensation capacitor Ccomp, and the non-inverting input terminal is connected to the output terminal of the sawtooth wave generating unit 221c. In actual use, the relationship between the input terminal polarity and the corresponding input signal can be adjusted as needed, as long as it conforms to the logic of the present invention.

[0176] It should be noted that any circuit structure that can generate a compensation voltage based on a feedback signal of a switching power supply and thereby implement constant current control is applicable to the constant current control module of the present invention, and is not limited to this embodiment.

[0177] Specifically, the overcurrent protection module 222 generates a second control signal based on the sampled voltage CS and the overcurrent protection voltage OCP. In this embodiment, the overcurrent protection module 222 is a comparator, and the comparison result between the sampled voltage CS and the overcurrent protection voltage OCP is used as the second control signal.

[0178] Specifically, the logic control module 223 is connected to the output ends of the constant current control module 221 and the overcurrent protection module 222 , and generates a switch control signal based on the first control signal and the second control signal.

[0179] Specifically, the driving module 224 is connected to the output end of the logic control module 223, and drives the power switch tube based on the switch control signal.

[0180] The LED control circuit 2 of this embodiment samples the input voltage Vin, so that the compensation voltage Vcomp decreases as the input voltage Vin increases. When the input voltage Vin changes from a low voltage to a high voltage, the compensation voltage Vcomp is quickly clamped to a lower level, thereby reducing the conduction time of the power switch tube and reducing the energy transfer within the cycle.

[0181] It should be noted that the compensation voltage can also be adjusted based on the sudden change of the input voltage Vin. At this time, the structure of the input voltage sampling module 21 is the same as that of Example 5. The compensation voltage adjustment unit 221b provides a discharge path, and the current in the discharge path is a preset fixed value or is positively correlated with the amplitude of the input voltage Vin; when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the pull-down path is turned on to reduce the compensation voltage Vcomp, thereby limiting the inductor peak current Ipk and stabilizing the output current Iout, which will not be elaborated here.

[0182] Embodiment 7

[0183] like Fig.19 As shown, this embodiment provides an LED control circuit 2, which is different from the fourth to sixth embodiments in that the LED control circuit 2 of this embodiment adjusts the operating frequency based on the input voltage Vin, thereby stabilizing the output current.

[0184] like Fig.19 As shown, in this embodiment, the switch control module 22 includes a constant current control module 221 , an overcurrent protection module 222 , a logic control module 223 and a driving module 224 .

[0185] Specifically, the constant current control module 221 receives the sampled voltage CS of the current flowing through the power switch tube and the switching time of the power switch tube, and generates a first control signal based on the sampled voltage CS and the switching time. The structure of the constant current control module 221 is not limited (as an example, the constant current control module adopts the structure of the constant current control module shown in Example 6, except that the compensation voltage adjustment unit 221b is not included). Any circuit structure that can generate a constant current control signal based on the feedback signal of the switching power supply is applicable to the present invention, and will not be described one by one here.

[0186] Specifically, the overcurrent protection module 222 generates a second control signal based on the sampled voltage CS and the overcurrent protection voltage OCP. In this embodiment, the overcurrent protection module 222 is a comparator, and the comparison result between the sampled voltage CS and the overcurrent protection voltage OCP is used as the second control signal.

[0187] Specifically, the logic control module 223 is connected to the output ends of the constant current control module 221 and the overcurrent protection module 222, generates a switch control signal based on the first control signal and the second control signal, and adjusts the operating frequency of the switch control signal based on the input voltage detection signal, and reduces the operating frequency of the switch control signal when the input voltage Vin suddenly changes from low voltage to high voltage. Fig. 20 As shown, as an example, the logic control module 223 includes an on-time control unit 223a, an off-time control unit 223b and a switch control signal generating unit 223c.

[0188] More specifically, the on-time control unit 223a generates an off-control signal based on the first control signal, and the circuit structure of the on-time control unit 223a is not limited. In this example, the larger the compensation voltage Vcomp is, the longer the on-time is.

[0189] More specifically, the off-time control unit 223b generates a conduction control signal based on the demagnetization time Tdemag, and adjusts the off-time of the switch control signal based on the amplitude of the input voltage. As an implementation, the off-time is positively correlated with the amplitude of the input voltage; as another example, when the amplitude of the input voltage is greater than the peak value of the low input voltage, the off-time is reduced, and the amount of reduction of the off-time is positively correlated with the amplitude of the input voltage, or the amount of reduction of the off-time is a preset fixed value.

[0190] like Fig. 20As shown, as an implementation of the present invention, the off time control unit 223b includes a first current source I1, a second current source I2, a first switch S1, a second switch S2, a third switch S3, a first capacitor C1, a fourth comparator U6 and an AND gate U7. The input end of the first current source I1 is connected to the power supply voltage VDD, and the output end is connected to the ground via the first switch S1 and the second current source I2 in sequence. The control end of the first switch S1 receives Fig.15 The output signal Trig of the input voltage detection module 21 shown in the figure, when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the first switch S1 is turned on. The second current source I2 is proportional to the amplitude of the input voltage Vin; the second current source I2 includes a seventh NMOS tube NM7, a fourth resistor R4 and a fourth operational amplifier U8, the non-inverting input terminal of the fourth operational amplifier U8 receives the sampling signal Vin_div of the input voltage Vin, and the inverting input terminal is connected to the source of the seventh NMOS tube NM7. The source of the seventh NMOS tube NM7 is grounded via the fourth resistor R4, the gate is connected to the output terminal of the fourth operational amplifier U8, and the drain is connected to the first switch S1. One end of the second switch S2 is connected to the output end of the first current source I1, and the other end is grounded via the third switch S3; the control end of the second switch S2 receives the inverse signal of the switch control signal Q, and the control end of the third switch S3 receives the switch control signal Q; when the switch control signal Q is valid, the second switch S2 is turned off, and the third switch S3 is turned on; when the switch control signal Q is invalid, the second switch S2 is turned on, and the third switch S3 is turned off. The first capacitor C1 is connected in parallel to both ends of the third switch S3. The non-inverting input end of the fourth comparator U6 is connected to the upper plate of the first capacitor C1, and the inverting input end is connected to the third reference voltage Vth. The output end of the AND gate U7 is respectively connected to the output end of the fourth comparator U6 and the demagnetization detection signal Tdemag, and outputs the conduction control signal. Under normal circumstances (the amplitude of the input voltage Vin is less than or equal to the peak value of the low input voltage), the first switch S1 is disconnected, and the charging current of the first capacitor C1 is the first current source I1; when the amplitude of the input voltage Vin is greater than the peak value of the low input voltage, the first switch S1 is turned on, and the first current source I1 is shunted by the second current source I2. Therefore, the charging current provided to the first capacitor C1 is reduced, and the turn-off time is determined by the charging constant of I1-I2 for the first capacitor C1 and the demagnetization detection signal Tdemag. The larger the input voltage Vin, the larger the second current source I2, the longer the turn-off time, and the lower the operating frequency.

[0191] It should be noted that, in actual use, the input voltage detection module may only detect the amplitude of the input voltage, or may only detect the case where the input voltage is greater than the peak value of the low input voltage, and is not limited to this embodiment. Any circuit structure that can reduce the operating frequency of the switch control signal when the input voltage Vin suddenly changes from a low voltage to a high voltage is applicable to the present invention.

[0192] More specifically, the switch control signal generating unit 223c is connected to the on-time control unit 223a, the off-time control unit 223b and the output end of the overcurrent protection module 222, and generates the switch control signal Q based on the off-time control signal, the on-control signal and the second control signal.

[0193] Specifically, the driving module 224 is connected to the output end of the logic control module 223, and drives the power switch tube based on the switch control signal.

[0194] Embodiment 8

[0195] like Fig.21 As shown, this embodiment provides an LED control system, and the LED control system includes:

[0196] LED control circuit 2 and switching power supply 3.

[0197] like Fig.21 As shown, the LED control circuit 2 provides a driving signal for the switching power supply 3 .

[0198] Specifically, the LED control circuit 2 may adopt any one of the structures of Embodiments 4 to 7, which will not be described in detail herein.

[0199] like Fig.21 As shown, the switching power supply 3 supplies power to the LED based on the switching control signal.

[0200] Specifically, in this embodiment, the switching power supply 3 is a flyback topology structure, including a rectifier bridge, an input capacitor Cin, a transformer, a power switch tube Q, a sampling resistor Rcs, a diode D, an output capacitor Cout and an LED load. The rectifier bridge converts the AC voltage into a DC input voltage; the input capacitor Cin is connected in parallel to both ends of the rectifier bridge; one end of the primary winding of the transformer is connected to the input voltage Vin, and the other end is grounded via the power switch tube Q and the sampling resistor Rcs; one end of the secondary winding of the transformer is connected to the anode of the diode D, the cathode of the diode D is connected to the upper plate of the output capacitor Cout, and the lower plate is connected to the other end of the secondary winding of the transformer; the positive electrode of the LED load is connected to the upper plate of the output capacitor Cout, and the negative electrode is connected to the lower plate of the output capacitor Cout.

[0201] When the input voltage changes, the present invention can effectively control the current of the LED and reduce the risk of damage to the LED load. In addition, the present invention can reduce the capacity of the output capacitor Cout while ensuring the reliability of the system, thereby achieving the purpose of reducing costs and reducing the system volume.

[0202] It should be noted that the structure of the switching power supply 3 includes but is not limited to BUCK, BOOST, BUCK-BOOST and their derived topologies, and is not limited to this embodiment.

[0203] In summary, the present invention provides an LED control method, circuit, chip and system, including: detecting the input voltage of the switching power supply to obtain an input voltage detection signal; generating a drive signal for the power switch tube in the switching power supply, and adjusting the drive signal based on the input voltage detection signal to reduce the output current of the switching power supply when the input voltage suddenly changes from low voltage to high voltage, thereby stabilizing the output current. The LED control method, circuit, chip and system of the present invention sample the input voltage or use variables that can reflect the input voltage, so that when the input voltage suddenly changes, the system controls the variables that affect energy transmission such as the overcurrent point, compensation voltage, and operating frequency, so that the energy transmitted within the cycle changes in the opposite direction to the input voltage, and finally achieves the purpose of controlling the LED current and reducing the risk of damage to the LED load. At the same time, the capacity of the output capacitor of the switching power supply can be reduced on the basis of ensuring the reliability of the system, so as to achieve the purpose of reducing costs and reducing the system volume. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.

[0204] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A LED control method, characterized in that: The LED control method at least comprises: Detecting the input voltage of the switching power supply to obtain an input voltage detection signal; Generate a drive signal for the power switch tube in the switching power supply, and adjust the drive signal based on the input voltage detection signal to reduce the output current of the switching power supply when the input voltage suddenly changes from low voltage to high voltage, thereby stabilizing the output current.

2. The LED control method according to claim 1, characterized in that: Detect the input voltage, and adjust the overcurrent protection voltage and / or compensation voltage based on the amplitude change of the input voltage; wherein the overcurrent protection voltage is negatively correlated with the amplitude of the input voltage, and the compensation voltage is negatively correlated with the amplitude of the input voltage.

3. The LED control method according to claim 1, characterized in that: The input voltage is detected, and when the amplitude of the input voltage is greater than the peak value of the low input voltage, the overcurrent protection voltage and / or the compensation voltage is reduced.

4. The LED control method according to claim 1, characterized in that: The input voltage is detected, and the operating frequency of the switching power supply is adjusted based on the change in the amplitude of the input voltage, wherein the operating frequency is negatively correlated with the amplitude of the input voltage.

5. The LED control method according to claim 1, characterized in that: The input voltage is detected, and when the amplitude of the input voltage is greater than the peak value of the low input voltage, the operating frequency of the switching power supply is reduced.

6. The LED control method according to claim 4 or 5, characterized in that: The operating frequency is controlled by adjusting the off time.

7. An LED control circuit, characterized in that: The LED control circuit at least includes: Input voltage detection module and switch control module; The input voltage detection module detects the input voltage of the switching power supply to obtain an input voltage detection signal; The switch control module generates a drive signal for the power switch tube in the switching power supply, and adjusts the drive signal based on the input voltage detection signal to reduce the output current of the switching power supply when the input voltage suddenly changes from low voltage to high voltage, thereby stabilizing the output current.

8. The LED control circuit according to claim 7, characterized in that: The switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module; The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, and generates a first control signal based on the sampled voltage and the switching time; The overcurrent protection module is connected to the output end of the input voltage detection module, and adjusts the overcurrent protection voltage based on the input voltage detection signal, and reduces the overcurrent protection voltage when the input voltage suddenly changes from low voltage to high voltage; and generating a second control signal based on a comparison result between the sampled voltage and the overcurrent protection voltage; The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, and generates a switch control signal based on the first control signal and the second control signal; The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

9. The LED control circuit according to claim 8, characterized in that: The input voltage detection module samples the input voltage, and the input voltage detection signal is used to represent the amplitude of the input voltage; The overcurrent protection module includes an overcurrent protection voltage adjustment unit and a first comparator; the overcurrent protection voltage adjustment unit adjusts the overcurrent protection voltage based on the input voltage detection signal, and the overcurrent protection voltage is negatively correlated with the input voltage detection signal; the first input terminal of the first comparator receives the overcurrent protection voltage, the second input terminal receives the sampling voltage, and outputs the second control signal.

10. The LED control circuit according to claim 9, characterized in that: The overcurrent protection voltage adjustment unit includes a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube and a first operational amplifier; The drains of the first PMOS tube and the second PMOS tube are connected to the power supply voltage; the drain of the first PMOS tube is connected to the drain and gate of the first NMOS tube; a current signal proportional to the input voltage is injected into the drain of the first NMOS tube; the source of the first NMOS tube is grounded; the non-inverting input terminal of the first operational amplifier is connected to the gate of the first NMOS tube, the inverting input terminal is connected to the first reference voltage, and the output terminal is connected to the gate of the first PMOS tube and the second PMOS tube; the drain of the second PMOS tube is connected to the drain and gate of the second NMOS tube, and the overcurrent protection voltage is output; the source of the second NMOS tube is connected to the first bias voltage.

11. The LED control circuit according to claim 8, characterized in that: The input voltage detection module detects the input voltage and generates a valid input voltage detection signal when the amplitude of the input voltage is greater than the peak value of the low input voltage; The overcurrent protection module includes a selection unit and a second comparator; the first input end of the selection unit receives a first overcurrent protection voltage, the second input end receives a second overcurrent protection voltage, and the control end is connected to the input voltage detection signal; when the input voltage detection signal is invalid, the first overcurrent protection voltage is output, and when the input voltage detection signal is valid, the second overcurrent protection voltage is output, wherein the first overcurrent protection voltage is greater than the second overcurrent protection voltage; the first input end of the second comparator receives the output end of the selection unit, the second input end receives the sampling voltage, and outputs the second control signal.

12. The LED control circuit according to claim 7, characterized in that: The switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module; The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, generates a first control signal based on the sampled voltage and the switching time, and adjusts a compensation voltage based on the input voltage detection signal, and reduces the compensation voltage when the input voltage suddenly changes from a low voltage to a high voltage, wherein the greater the compensation voltage, the longer the on-time of the switch power supply; The overcurrent protection module generates a second control signal based on the sampled voltage and the overcurrent protection voltage; The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, and generates a switch control signal based on the first control signal and the second control signal; The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

13. The LED control circuit according to claim 12, characterized in that: The constant current control module includes a compensation voltage generating unit, a compensation capacitor, a compensation voltage adjusting unit, a sawtooth wave generating unit and an operational amplifier unit; wherein the compensation voltage generating unit generates the compensation voltage based on the sampling voltage and the switching time; The upper plate of the compensation capacitor is connected to the output end of the compensation voltage generating unit, and the lower plate is grounded; The compensation voltage adjustment unit receives the input voltage detection signal, and the output end is connected to the upper plate of the compensation capacitor; The sawtooth wave generating unit is used to generate a sawtooth wave signal; The first input end of the operational amplifier unit is connected to the upper plate of the compensation capacitor, and the second input end is connected to the output end of the sawtooth wave generating unit to output the first control signal.

14. The LED control circuit according to claim 13, characterized in that: The input voltage detection module samples the input voltage, and the input voltage detection signal is used to represent the amplitude of the input voltage; The compensation voltage adjustment unit includes a third PMOS tube, a fourth PMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube, a second operational amplifier and a third operational amplifier; The drains of the third PMOS tube and the fourth PMOS tube are connected to the power supply voltage; the drain of the third PMOS tube is connected to the drain and gate of the third NMOS tube; a current signal proportional to the input voltage is injected into the drain of the third NMOS tube; the source of the third NMOS tube is grounded; the non-inverting input terminal of the second operational amplifier is connected to the gate of the third NMOS tube, the inverting input terminal is connected to the second reference voltage, and the output terminal is connected to the gate of the third PMOS tube and the fourth PMOS tube; the drain of the fourth PMOS tube is connected to the drain and gate of the fourth NMOS tube; the source of the fourth NMOS tube is connected to the second bias voltage; the inverting input terminal of the third operational amplifier is connected to the gate of the fourth NMOS tube, the non-inverting input terminal is connected to the drain of the fifth NMOS tube, and the output terminal is connected to the gate of the fifth NMOS tube; the source of the fifth NMOS tube is grounded, and the drain is connected to the upper plate of the compensation capacitor.

15. The LED control circuit according to claim 13, characterized in that: The input voltage detection module detects the input voltage and generates a valid input voltage detection signal when the amplitude of the input voltage is greater than the peak value of the low input voltage; The compensation voltage adjustment unit includes a discharge path, which is connected to the upper plate of the compensation capacitor. When the input voltage detection signal is valid, the discharge path is turned on to reduce the compensation voltage.

16. The LED control circuit according to claim 7, characterized in that: The switch control module includes a constant current control module, an overcurrent protection module, a logic control module and a drive module; The constant current control module receives a sampled voltage of the current flowing through the power switch tube and a switching time of the power switch tube, and generates a first control signal based on the sampled voltage and the switching time; The overcurrent protection module generates a second control signal based on the sampled voltage and the overcurrent protection voltage; The logic control module is connected to the output ends of the constant current control module and the overcurrent protection module, generates a switch control signal based on the first control signal and the second control signal, and adjusts the operating frequency of the switch control signal based on the input voltage detection signal, and reduces the operating frequency of the switch control signal when the input voltage suddenly changes from low voltage to high voltage; The driving module is connected to the output end of the logic control module, and drives the power switch tube based on the switch control signal.

17. The LED control circuit according to claim 16, characterized in that: The logic control module includes an on-time control unit, an off-time control unit and a switch control signal generating unit; The on-time control unit generates an off-control signal based on the first control signal; The off-time control unit generates a conduction control signal based on the demagnetization time, and adjusts the off-time of the switch control signal based on the amplitude of the input voltage; the off-time is positively correlated with the amplitude of the input voltage, or the off-time is reduced when the amplitude of the input voltage is greater than the peak value of the low input voltage; The switch control signal generating unit is connected to the on-time control unit, the off-time control unit and the output end of the overcurrent protection module, and generates the switch control signal based on the off-time control signal, the on-time control signal and the second control signal.

18. The LED control circuit according to claim 17, characterized in that: The off time control unit includes a first current source, a second current source, a first switch, a second switch, a third switch, a first capacitor, a fourth comparator and an AND gate; The input end of the first current source is connected to the power supply voltage, and the output end is grounded via the first switch and the second current source in sequence; when the amplitude of the input voltage is greater than the peak value of the low input voltage, the first switch is turned on, and the second current source is proportional to the amplitude of the input voltage; One end of the second switch is connected to the output end of the first current source, and the other end is grounded via the third switch; when the switch control signal is valid, the second switch is turned off and the third switch is turned on; when the switch control signal is invalid, the second switch is turned on and the third switch is turned off; The first capacitor is connected in parallel to two ends of the third switch; The non-inverting input terminal of the fourth comparator is connected to the upper plate of the first capacitor, and the inverting input terminal is connected to the third reference voltage; the output terminal of the AND gate is respectively connected to the output terminal of the fourth comparator and the demagnetization detection signal, and outputs the conduction control signal.

19. The LED control circuit according to claim 11 or 18, characterized in that: The input voltage detection module includes a peak sampling and holding unit, a low-frequency filtering unit, a real-time sampling unit and a third comparator; The peak sampling and holding unit receives the input voltage and is used to obtain the peak value of the input voltage; The low-frequency filter unit is connected to the output end of the peak sampling and holding unit, and is used to filter the output signal of the peak sampling and holding unit; The real-time sampling unit receives the input voltage and detects the amplitude of the input voltage; The first input end of the third comparator is connected to the output end of the low-frequency filtering unit, the second input end is connected to the output end of the real-time sampling unit, and outputs the input voltage detection signal.

20. A chip, characterized in that: The chip at least includes: an LED control circuit as described in any one of claims 7-19.

21. An LED control system, characterized in that: The LED control system at least includes: A switching power supply and an LED control circuit as claimed in any one of claims 7 to 19; The LED control circuit provides a driving signal for the switching power supply; The switching power supply provides power to the LED based on the switching control signal.