IC chip and multi-color-temperature switching circuit

By incorporating specific modules and analog-to-digital conversion modules into the IC chip, compatible thyristor dimming function and multi-color temperature switching are achieved, solving the problem that existing IC chips cannot switch color temperatures, simplifying operation and reducing costs.

CN120475573APending Publication Date: 2025-08-12XIAMEN TOPSTAR LIGHTING
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510582003.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-12

Smart Images

  • Figure CN120475573A_ABST
    Figure CN120475573A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of dimming and color temperature switching, in particular to an IC chip and a multi-color-temperature switching circuit. A Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, an MOS tube Q1 and an MOS tube Q2 are arranged in an IC chip, and a current setting pin and a first color temperature state setting pin are arranged on the IC chip. The second color temperature state setting pin, the third color temperature state setting pin, the power failure detection pin, the first LED current output pin and the second LED current output pin are matched together to realize the dimming and multi-color-temperature switching functions, so that the IC chip in the scheme can be compatible with the silicon controlled rectifier dimming function and also can realize multi-color-temperature switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dimming and color temperature switching, and in particular to an IC chip and a multi-color temperature switching circuit. Background Art

[0002] Existing IC chips can only realize the thyristor dimming function, but cannot realize multi-color temperature switching. If you want to realize multi-color temperature switching, you must adopt the following solution, which is as follows: The main constant current circuit uses a thyristor dimming IC, and the color temperature switching is achieved using a hardware multi-speed dial switch. However, this solution requires a high-cost switch, and the production, processing, and functional testing are cumbersome and costly. In addition, if you want to change the color temperature of an already installed lamp, you need to remove it and manually dial the switch before installing it, which is very inconvenient. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide an IC chip and a multi-color temperature switching circuit that can realize the thyristor dimming function and also realize multi-color temperature switching.

[0004] In order to solve the above technical problems, the first technical solution adopted by the present invention is: An IC chip, comprising a current setting pin, a first color temperature state setting pin, a second color temperature state setting pin, a third color temperature state setting pin, a power-off detection pin, a first LED current output pin, and a second LED current output pin. The IC chip is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS transistor Q1, and a MOS transistor Q2. The processing module is electrically connected to the RAM storage module, the Flash storage module, the timer module, the first analog-to-digital conversion module, the second analog-to-digital conversion module, the third analog-to-digital conversion module and the comparator module respectively. The RAM storage module is electrically connected to the Flash storage module and the timer module respectively. The input end of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output end of the timer module and the second pulse width modulation output end of the timer module respectively. The output end of the reference generation module is electrically connected to the non-inverting input end of the operational amplifier AMP1 and the non-inverting input end of the operational amplifier AMP2 respectively. The output end of the operational amplifier AMP1 is electrically connected to the gate of the MOS tube Q1. The output end of the operational amplifier AMP2 is electrically connected to the gate of the MOS transistor Q2, the inverting input end of the operational amplifier AMP1 is electrically connected to the source of the MOS transistor Q1, the inverting input end of the operational amplifier AMP2 is electrically connected to the source of the MOS transistor Q2, the drain of the MOS transistor Q1 is electrically connected to the first LED current output pin, the drain of the MOS transistor Q2 is electrically connected to the second LED current output pin, the comparator module is electrically connected to the power-off detection pin, the first analog-to-digital conversion module is electrically connected to the first color temperature state setting pin, the second analog-to-digital conversion module is electrically connected to the second color temperature state setting pin, and the third analog-to-digital conversion module is electrically connected to the third color temperature state setting pin.

[0005] The second technical solution adopted by the present invention is: A multi-color temperature switching circuit includes a first rectifier module, a thyristor dimming constant current module, a first load module, a resistor R201, a resistor R202, a resistor R203, a resistor R204 and the above-mentioned IC chip; The current setting pin of the IC chip is electrically connected to one end of the resistor R201, and the other end of the resistor R201 is respectively electrically connected to the thyristor dimming constant current module, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the resistor R202 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R203 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R204 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module, and the power-off detection pin of the IC chip is respectively electrically connected to the first rectifier module and the thyristor dimming constant current module.

[0006] The third technical solution adopted by the present invention is: A multi-color temperature switching circuit includes a second rectifier module, a second load module, a resistor R301, a resistor R302, a resistor R303, a resistor R304 and the above-mentioned IC chip; The current setting pin of the IC chip is electrically connected to one end of the resistor R301, and the other end of the resistor R301 is electrically connected to the second rectifier module, one end of the resistor R302, one end of the resistor R303 and one end of the resistor R304 respectively. The other end of the resistor R302 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R303 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R304 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module, and the power-off detection pin of the IC chip is electrically connected to the second rectifier module.

[0007] The beneficial effects of the present invention are: The IC chip of this solution is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS tube Q1 and a MOS tube Q2. The RAM storage module and the Flash storage module are used to store programs, data such as the PWM1 and PWM2 states before the MCU is powered off, and the timer module is used to execute and output signals with different duty cycles of PWM1 and PWM2. PWM1 generates a reference voltage for the operational amplifier AMP1, and PWM2 generates a reference voltage for the operational amplifier AMP2, thereby controlling the current flowing through the first LED current output pin and the second LED current output pin respectively; the first analog-to-digital conversion module, the second analog-to-digital conversion module and the third analog-to-digital conversion module realize different PWM1 and PWM2 duty cycles by detecting the corresponding pin voltages; the comparator module is used to detect the wall switch signal of the peripheral device for the processing module to read the switch and off The reference generation module is used to generate a reference voltage for the operational amplifier AMP1 and the operational amplifier AMP2; the operational amplifier AMP1 and the operational amplifier AMP2 are used to control the conduction degree of the MOS transistors Q1 and the MOS transistors Q2, so as to control the LED current value flowing through the first LED current output pin and the second LED current output pin. This solution realizes dimming and multi-color temperature switching functions through the RAM storage module, Flash storage module, timer module, first analog-to-digital conversion module, second analog-to-digital conversion module, third analog-to-digital conversion module, processing module, reference generation module, comparator module, operational amplifier AMP1, operational amplifier AMP2, MOS transistors Q1 and Q2 provided inside the IC chip, in conjunction with the current setting pin, first color temperature state setting pin, second color temperature state setting pin, third color temperature state setting pin, power-off detection pin, first LED current output pin and second LED current output pin provided on the IC chip. This makes the IC chip of this solution compatible with the thyristor dimming function and also realizes multi-color temperature switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 It is a structural schematic diagram of the IC chip of the present invention; Figure 2 A circuit schematic diagram of the multi-color temperature switching circuit of the present invention; Figure 3 Another circuit schematic diagram of the multi-color temperature switching circuit of the present invention; Description of labels: 1. Flash storage module; 2. Timer module; 3. First analog-to-digital conversion module; 4. Second analog-to-digital conversion module; 5. Third analog-to-digital conversion module; 6. Processing module; 7. Reference generation module; 8. Comparator module; 9. Power supply module; 10. RAM storage module. DETAILED DESCRIPTION

[0009] To illustrate the technical content, achieved objectives and effects of the present invention in detail, the following description is given in conjunction with the embodiments and accompanying drawings.

[0010] Please refer to Figure 1 , the first technical solution adopted by the present invention is: An IC chip, comprising a current setting pin, a first color temperature state setting pin, a second color temperature state setting pin, a third color temperature state setting pin, a power-off detection pin, a first LED current output pin, and a second LED current output pin. The IC chip is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS transistor Q1, and a MOS transistor Q2. The processing module is electrically connected to the RAM storage module, the Flash storage module, the timer module, the first analog-to-digital conversion module, the second analog-to-digital conversion module, the third analog-to-digital conversion module and the comparator module respectively. The RAM storage module is electrically connected to the Flash storage module and the timer module respectively. The input end of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output end of the timer module and the second pulse width modulation output end of the timer module respectively. The output end of the reference generation module is electrically connected to the non-inverting input end of the operational amplifier AMP1 and the non-inverting input end of the operational amplifier AMP2 respectively. The output end of the operational amplifier AMP1 is electrically connected to the gate of the MOS tube Q1. The output end of the operational amplifier AMP2 is electrically connected to the gate of the MOS transistor Q2, the inverting input end of the operational amplifier AMP1 is electrically connected to the source of the MOS transistor Q1, the inverting input end of the operational amplifier AMP2 is electrically connected to the source of the MOS transistor Q2, the drain of the MOS transistor Q1 is electrically connected to the first LED current output pin, the drain of the MOS transistor Q2 is electrically connected to the second LED current output pin, the comparator module is electrically connected to the power-off detection pin, the first analog-to-digital conversion module is electrically connected to the first color temperature state setting pin, the second analog-to-digital conversion module is electrically connected to the second color temperature state setting pin, and the third analog-to-digital conversion module is electrically connected to the third color temperature state setting pin.

[0011] From the above description, it can be seen that the beneficial effects of the present invention are: The IC chip of this solution is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS tube Q1 and a MOS tube Q2. The RAM storage module and the Flash storage module are used to store programs, data such as the PWM1 and PWM2 states before the MCU is powered off, and the timer module is used to execute and output signals with different duty cycles of PWM1 and PWM2. PWM1 generates a reference voltage for the operational amplifier AMP1, and PWM2 generates a reference voltage for the operational amplifier AMP2, thereby controlling the current flowing through the first LED current output pin and the second LED current output pin respectively; the first analog-to-digital conversion module, the second analog-to-digital conversion module and the third analog-to-digital conversion module realize different PWM1 and PWM2 duty cycles by detecting the corresponding pin voltages; the comparator module is used to detect the wall switch signal of the peripheral device for the processing module to read the switch and off The reference generation module is used to generate a reference voltage for the operational amplifier AMP1 and the operational amplifier AMP2; the operational amplifier AMP1 and the operational amplifier AMP2 are used to control the conduction degree of the MOS transistors Q1 and the MOS transistors Q2, so as to control the LED current value flowing through the first LED current output pin and the second LED current output pin. This solution realizes dimming and multi-color temperature switching functions through the RAM storage module, Flash storage module, timer module, first analog-to-digital conversion module, second analog-to-digital conversion module, third analog-to-digital conversion module, processing module, reference generation module, comparator module, operational amplifier AMP1, operational amplifier AMP2, MOS transistors Q1 and Q2 provided inside the IC chip, in conjunction with the current setting pin, first color temperature state setting pin, second color temperature state setting pin, third color temperature state setting pin, power-off detection pin, first LED current output pin and second LED current output pin provided on the IC chip. This makes the IC chip of this solution compatible with the thyristor dimming function and also realizes multi-color temperature switching.

[0012] Furthermore, a resistor R3 is provided inside the IC chip. One end of the resistor R3 is electrically connected to the inverting input end of the operational amplifier AMP1 and the source of the MOS transistor Q1 respectively, and the other end of the resistor R3 is grounded.

[0013] As can be seen from the above description, the current i at the first LED current output pin flows to GND after passing through the resistor R3. The resistor R3 serves as a sampling resistor for the current i and is connected to the inverting input terminal of the operational amplifier AMP1. Through the amplifier virtual short circuit, it can be seen that by adjusting the reference voltage Vref output by the reference generation module to the operational amplifier AMP1, the current i at the first LED current output pin can be adjusted, and ultimately i*R3=Vref.

[0014] Furthermore, a resistor R4 is provided inside the IC chip, one end of the resistor R4 is electrically connected to the inverting input terminal of the operational amplifier AMP2 and the source of the MOS transistor Q2, respectively, and the other end of the resistor R4 is grounded.

[0015] As can be seen from the above description, the current i at the second LED current output pin flows to GND after passing through resistor R4. Resistor R4 serves as a sampling resistor for the current i and is connected to the inverting input of operational amplifier AMP2. As can be seen from the amplifier's virtual short circuit, by adjusting the reference voltage Vref output by the reference generation module to operational amplifier AMP2, the current i at the second LED current output pin can be adjusted, ultimately making i*R4=Vref.

[0016] Furthermore, a resistor R1 and a resistor R2 are provided inside the IC chip, the comparator module is electrically connected to one end of the resistor R1 and one end of the resistor R2 respectively, the other end of the resistor R1 is electrically connected to the power-off detection pin, and the other end of the resistor R2 is grounded.

[0017] From the above description, it can be seen that since the power-off detection pin is a high-voltage pin, a low voltage is obtained by connecting resistors R1 and R2 in series to divide the voltage, and then the voltage is given to the comparator module to determine whether the line is connected to the dimmer and the phase angle of the dimmer.

[0018] Furthermore, the IC chip is provided with a high-voltage power supply pin, and the IC chip is provided with a power supply module inside, and the power supply module is electrically connected to the high-voltage power supply pin, the Flash storage module, the timer module and the processing module respectively.

[0019] As can be seen from the above description, the RAM storage module is used to cache temporary data.

[0020] The second technical solution adopted by the present invention is: A multi-color temperature switching circuit includes a first rectifier module, a thyristor dimming constant current module, a first load module, a resistor R201, a resistor R202, a resistor R203, a resistor R204 and the above-mentioned IC chip; The current setting pin of the IC chip is electrically connected to one end of the resistor R201, and the other end of the resistor R201 is respectively electrically connected to the thyristor dimming constant current module, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the resistor R202 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R203 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R204 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module, and the power-off detection pin of the IC chip is respectively electrically connected to the first rectifier module and the thyristor dimming constant current module.

[0021] Furthermore, the thyristor dimming constant current module includes a chip IC1, the dimmer access detection pin of the chip IC1 is electrically connected to the power-off detection pin of the first rectifier module and the IC chip respectively, and the drain pin of the chip IC1 is electrically connected to the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204 respectively.

[0022] Furthermore, the thyristor dimming constant current module also includes a resistor R104 and an electrolytic capacitor E1, one end of the resistor R104 is electrically connected to the VD pin of the chip IC1, and the other end of the resistor R104 is respectively electrically connected to one end of the electrolytic capacitor E1, the drain pin of the chip IC1, the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204, and the other end of the electrolytic capacitor E1 is respectively electrically connected to the first rectifier module, the high-voltage power supply pin of the IC chip and the first load module.

[0023] Furthermore, the thyristor dimming constant current module also includes a resistor R105, a resistor R106 and a resistor R107, one end of the resistor R105 is electrically connected to the first current detection pin of the chip IC1, and the other end of the resistor R105 is electrically connected to one end of the resistor R106, one end of the resistor R107 and the second current detection pin of the chip IC1, respectively, the other end of the resistor R106 is electrically connected to the first rectifier module and the other end of the resistor R107, and the other end of the resistor R106 and the other end of the resistor R107 are both grounded.

[0024] The third technical solution adopted by the present invention is: A multi-color temperature switching circuit includes a second rectifier module, a second load module, a resistor R301, a resistor R302, a resistor R303, a resistor R304 and the above-mentioned IC chip; The current setting pin of the IC chip is electrically connected to one end of the resistor R301, and the other end of the resistor R301 is electrically connected to the second rectifier module, one end of the resistor R302, one end of the resistor R303 and one end of the resistor R304 respectively. The other end of the resistor R302 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R303 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R304 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module, and the power-off detection pin of the IC chip is electrically connected to the second rectifier module.

[0025] Please refer to Figure 1 , embodiment 1 of the present invention is: An IC chip is provided with a current setting pin (i.e., a VCS pin), a first color temperature state setting pin (i.e., a CS1 pin), a second color temperature state setting pin (i.e., a CS2 pin), a third color temperature state setting pin (i.e., a CS3 pin), a power-off detection pin (i.e., an AIN pin), a first LED current output pin (i.e., an OUT1 pin), and a second LED current output pin (i.e., an OUT2 pin). The IC chip is internally provided with a RAM storage module 10, a Flash storage module 1, a timer module 2, a first analog-to-digital conversion module 3, a second analog-to-digital conversion module 4, a third analog-to-digital conversion module 5, a processing module 6, a reference generation module 7, a comparator module 8, operational amplifiers AMP1 and AMP2, MOS transistors Q1, and MOS transistors Q2. The processing module 6 is electrically connected to the RAM storage module 10, the Flash storage module 1, the timer module 2, the first analog-to-digital conversion module 3, the second analog-to-digital conversion module 4, the third analog-to-digital conversion module 5 and the comparator module 8 respectively. The RAM storage module 10 is electrically connected to the Flash storage module 1 and the timer module 2 respectively. The input end of the reference generation module 7 is electrically connected to the current setting pin, the first pulse width modulation output end of the timer module 2 and the second pulse width modulation output end of the timer module 2 respectively. The output end of the reference generation module 7 is electrically connected to the non-inverting input end of the operational amplifier AMP1 and the non-inverting input end of the operational amplifier AMP2 respectively. The output end of the operational amplifier AMP1 is electrically connected to the MOS tube Q 1, the output end of the operational amplifier AMP2 is electrically connected to the gate of the MOS transistor Q2, the inverting input end of the operational amplifier AMP1 is electrically connected to the source of the MOS transistor Q1, the inverting input end of the operational amplifier AMP2 is electrically connected to the source of the MOS transistor Q2, the drain of the MOS transistor Q1 is electrically connected to the first LED current output pin, the drain of the MOS transistor Q2 is electrically connected to the second LED current output pin, the comparator module 8 is electrically connected to the power-off detection pin, the first analog-to-digital conversion module 3 is electrically connected to the first color temperature state setting pin, the second analog-to-digital conversion module 4 is electrically connected to the second color temperature state setting pin, and the third analog-to-digital conversion module 5 is electrically connected to the third color temperature state setting pin.

[0026] The comparator function of a power failure detection pin (i.e., AIN pin) is used to detect power failure of the wall switch, and the pre-burned program is used to enter the color temperature cycle jump state, and the color temperature memory function is realized after the light is turned off. By connecting a resistor to ground through a current setting pin (i.e., VCS pin), the maximum current of the IC chip's OUT1 and OUT2 pins, i.e., the initial reference current, can be set. By connecting resistors to ground (CS1 / CS2 / CS3) through the three CS pins (CS1, CS2, and CS3), the color temperature values of the three intermediate states can be adjusted to prevent color temperature deviation caused by junction voltage of white light LEDs and yellow light LEDs, as well as light efficiency deviation. This solution is achieved by using three ADC modules (first analog-to-digital conversion module 3, second analog-to-digital conversion module 4, and third analog-to-digital conversion module 5) to detect pin voltages and then output different PWM1 / PWM2 duty cycles to change the reference voltage and control the OUT1 pin / OUT2 pin current ratio.

[0027] The yellow light current or the white light current flows through the first LED current output pin and the second LED current output pin respectively; The RAM storage module 10 and the Flash storage module 1 are used to store programs, data such as the PWM1 / PWM2 status before the MCU is powered off, and the like.

[0028] The timer module 2 is used to execute the output of PWM1 / PWM2 signals with different duty cycles. PWM1 generates the AMP1 reference correspondingly, and PWM2 generates the AMP2 reference correspondingly, thereby controlling the current flowing through the OUT1 pin (yellow light, 2700K color temperature, light-emitting diodes LED W1-W8) and the current flowing through the OUT2 pin (white light, 5000K color temperature, light-emitting diodes LED A1-A8), respectively, to achieve constant current of the light-emitting diodes LED; the internal circuits of the timer module 2 may include devices and circuits that have been applied in the MCU field, such as counters, control registers, clock circuits, interrupt circuits, and output circuits.

[0029] The first analog-to-digital conversion module 3, the second analog-to-digital conversion module 4, and the third analog-to-digital conversion module 5 implement different PWM1 and PWM2 duty cycles through a program by detecting the voltages on the corresponding pins. The internal circuits of the first analog-to-digital conversion module 3, the second analog-to-digital conversion module 4, and the third analog-to-digital conversion module 5 may include analog input circuits, sample-and-hold circuits, analog-to-digital conversion units, logic control circuits, digital output circuits, and other components and circuits already used in the MCU field.

[0030] The comparator module 8 is used to detect the wall switch signal of the peripheral device, so that the processing module 6 can read the switch and power-off information.

[0031] The processing module 6 is used to execute the program, process the switch detection information, configure the timer module 2 data and finally output the set PWM1 / PWM2 signal.

[0032] The reference generation module 7 is used to generate reference voltages for the operational amplifier AMP1 and the operational amplifier AMP2; the reference generation module 7 may be a circuit that has been used in the chip field, such as a bandgap reference circuit and a Zener diode reference circuit in the prior art.

[0033] The operational amplifier AMP1 and the operational amplifier AMP2 are used to control the conduction degree of the MOS transistor Q1 and the MOS transistor Q2 to control the LED current value flowing through the OUT1 pin (i.e., the first LED current output pin) and the OUT2 pin (i.e., the second LED current output pin).

[0034] A resistor R3 is further provided inside the IC chip. One end of the resistor R3 is electrically connected to the inverting input end of the operational amplifier AMP1 and the source of the MOS transistor Q1 respectively, and the other end of the resistor R3 is grounded.

[0035] A resistor R4 is further provided inside the IC chip. One end of the resistor R4 is electrically connected to the inverting input end of the operational amplifier AMP2 and the source of the MOS transistor Q2, respectively, and the other end of the resistor R4 is grounded.

[0036] The IC chip is further provided with a resistor R1 and a resistor R2. The comparator module 8 is electrically connected to one end of the resistor R1 and one end of the resistor R2 respectively. The other end of the resistor R1 is electrically connected to the power-off detection pin, and the other end of the resistor R2 is grounded.

[0037] The IC chip is also provided with a high-voltage power supply pin (which draws power from the circuit bus to power various modules inside the IC chip). The IC chip is also provided with a power supply module 9 (used to power modules such as the Flash storage module 1, timer module 2 and processing module 6 inside the IC chip). The power supply module 9 is electrically connected to the high-voltage power supply pin, Flash storage module 1, timer module 2 and processing module 6 respectively; power is supplied to various modules inside the IC chip through a high-voltage power supply pin (i.e., HV pin).

[0038] Please refer to Figure 2 , the second embodiment of the present invention is: A multi-color temperature switching circuit includes a first rectifier module, a thyristor dimming constant current module, a first load module, a resistor R201, a resistor R202, a resistor R203, a resistor R204, and the IC chip of the first embodiment; The current setting pin of the IC chip is electrically connected to one end of the resistor R201, and the other end of the resistor R201 is respectively electrically connected to the thyristor dimming constant current module, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the resistor R202 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R203 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R204 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module, and the power-off detection pin of the IC chip is respectively electrically connected to the first rectifier module and the thyristor dimming constant current module.

[0039] The thyristor dimming constant current module includes a chip IC1, the dimmer access detection pin of the chip IC1 is electrically connected to the power-off detection pin of the first rectifier module and the IC chip respectively, and the drain pin of the chip IC1 is electrically connected to the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204 respectively.

[0040] The thyristor dimming constant current module also includes a resistor R104 and an electrolytic capacitor E1. One end of the resistor R104 is electrically connected to the VD pin of the chip IC1, and the other end of the resistor R104 is respectively electrically connected to one end of the electrolytic capacitor E1, the drain pin of the chip IC1, the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the electrolytic capacitor E1 is respectively electrically connected to the first rectifier module, the high-voltage power supply pin of the IC chip and the first load module.

[0041] The thyristor dimming constant current module also includes a resistor R105, a resistor R106 and a resistor R107. One end of the resistor R105 is electrically connected to the first current detection pin of the chip IC1, and the other end of the resistor R105 is electrically connected to one end of the resistor R106, one end of the resistor R107 and the second current detection pin of the chip IC1 respectively. The other end of the resistor R106 is electrically connected to the first rectifier module and the other end of the resistor R107 respectively, and the other end of the resistor R106 and the other end of the resistor R107 are both grounded.

[0042] The first rectifier module includes a fuse resistor F1, a varistor RV1, a rectifier bridge BR1, a diode D1 and an electrolytic capacitor E1. For the specific connection relationship between the various components, please refer to Figure 2 .

[0043] The first load module includes light emitting diodes W1-W8 and light emitting diodes A1-A8. For the specific connection relationship between the components, please refer to Figure 2 .

[0044] Chip IC1 is a conventional thyristor dimming IC chip on the market. It detects whether the dimmer is connected through the TRIAC pin (i.e., the drain pin) of chip IC1, and then pulls the bleed current through the VIN pin of chip IC1 to make the dimmer reliably turned on. Resistors R106 and R107 are used to set the maximum current of the entire lamp, i.e., the maximum current of the IC chip (i.e. Figure 2 The maximum current output from the OUT1 and OUT2 pins (represented by U1 in Figure 1) combined; The IC chip (i.e. Figure 2 The VIN pin of the chip IC1 is connected to the positive output end of the rectifier bridge to detect the wall switch signal, and the current ratio of the OUT1 pin and OUT2 pin of the IC chip is controlled by the program to control the color temperature state.

[0045] The color temperature values of state 2, state 3, and state 4 are adjusted by the resistance values of resistors R202, R203, and R204. The specific analysis is as follows: This embodiment takes the target as an example of a five-state (i.e., five-level color temperature) jump cycle: State 1: 2700K; State 2: 3000K; State 3: 3500K; State 4: 4000K; State 5: 5000K; The fixed duty cycle of state 1 is: PWM1=100%, PWM2=0% (only yellow light is on, i.e. 2700K); The fixed duty cycle of state five is: PWM1=0%, PWM2=100% (only white light is on, i.e. 5000K); In state 2, the duty cycle is set by taking different resistance values of resistor R202, corresponding to the following table 1:

[0046] Table 1 For example, if the value is 3KΩ, then PWM1 = 87% duty cycle, PWM2 = 13% duty cycle. When the voltage and luminous efficiency of white light and yellow light are exactly the same, the theoretical color temperature after color mixing is: 2700*87%+5000*13%=3000K. If the junction voltage or luminous efficiency of the two LEDs are different, the color temperature after color mixing may deviate from the theoretical value of 3000K. In this case, the value of R202 can be changed according to the table to achieve the change of PWM1 and PWM2 duty cycle, so that the color temperature is more accurate and close to the target color temperature.

[0047] Similarly, the theoretical value of resistor R203 is 3KΩ, and the value is selected according to Table 2 (corresponding to the change in output of different PWM1 / PWM2 duty cycles to adjust the color temperature;

[0048] Table 2 Similarly, the theoretical value of resistor R204 is 3KΩ, and the value changes according to Table 3 output different PWM1 / PWM2 duty cycles to adjust the color temperature;

[0049] Table 3 After setting the resistance value of each resistor, if the program sets the switch to be turned on or more than three times within three seconds, the entire lamp will enter the state 1-5 cyclic jump state. When it jumps to the user's preferred state, such as state 3, turn off the power. After that, the entire lamp will continue to light in state 3 when the power is turned on again at any time. Unless the switch operation is repeated three times or more within three seconds, it will continue to light in state 3.

[0050] Please refer to Figure 3 , the third embodiment of the present invention is: A multi-color temperature switching circuit includes a second rectifier module, a second load module, a resistor R301, a resistor R302, a resistor R303, a resistor R304, and the IC chip of the first embodiment; The current setting pin of the IC chip is electrically connected to one end of the resistor R301, and the other end of the resistor R301 is electrically connected to the second rectifier module, one end of the resistor R302, one end of the resistor R303 and one end of the resistor R304 respectively. The other end of the resistor R302 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R303 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R304 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module, and the power-off detection pin of the IC chip is electrically connected to the second rectifier module.

[0051] The second rectifier module includes a rectifier bridge BR2, a fuse resistor F2, a varistor RV2, a diode D2 and an electrolytic capacitor E2; The second load module includes light emitting diodes W11-W18 and light emitting diodes A11-A18; Electrolytic capacitor E2 is used as a conventional post-bridge filter electrolytic capacitor, and directly supplies power to the IC chip after filtering; The IC chip sets the maximum current output by the OUT1 and OUT2 pins through resistor R301, and adjusts the color temperature values of state 2, state 3, and state 4 through the resistance values of resistors R302, R303, and R304. In order to achieve accurate power-off detection, diode D2 is used to electrolytically isolate the rectifier bridge BR2 and the electrolytic capacitor E2, and the AIN pin of the IC chip (i.e., the power-off detection pin) draws power from the positive output terminal of the rectifier bridge BR2.

[0052] In summary, the present invention provides an IC chip and a multi-color temperature switching circuit. The IC chip is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS transistor Q1, and a MOS transistor Q2. The RAM storage module and the Flash storage module are used to store programs, data such as the PWM1 and PWM2 states before the MCU is powered off, and the timer module is used to execute output signals with different duty cycles for PWM1 and PWM2. PWM1 generates a reference voltage for the operational amplifier AMP1, and PWM2 generates a reference voltage for the operational amplifier AMP2, thereby controlling the currents flowing through the first LED current output pin and the second LED current output pin, respectively. The first analog-to-digital conversion module, the second analog-to-digital conversion module, and the third analog-to-digital conversion module implement different PWM1 and PWM2 duty cycles by detecting the voltages of the corresponding pins. The comparator module is used to detect the wall switch signal of the peripheral device. The processing module reads switch and power-off information; the reference generation module generates a reference voltage for the operational amplifier AMP1 and the operational amplifier AMP2; the operational amplifier AMP1 and the operational amplifier AMP2 control the conduction degree of the MOS transistors Q1 and the MOS transistors Q2, thereby controlling the LED current value flowing through the first LED current output pin and the second LED current output pin. This solution realizes dimming and multi-color temperature switching functions through the RAM storage module, Flash storage module, timer module, first analog-to-digital conversion module, second analog-to-digital conversion module, third analog-to-digital conversion module, processing module, reference generation module, comparator module, operational amplifier AMP1, operational amplifier AMP2, MOS transistors Q1 and Q2 provided within the IC chip, in conjunction with the current setting pin, first color temperature state setting pin, second color temperature state setting pin, third color temperature state setting pin, power-off detection pin, first LED current output pin, and second LED current output pin provided on the IC chip. This allows the IC chip of this solution to be compatible with the thyristor dimming function and also realize multi-color temperature switching.

[0053] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's description and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An IC chip, characterized in that: The IC chip is provided with a current setting pin, a first color temperature state setting pin, a second color temperature state setting pin, a third color temperature state setting pin, a power-off detection pin, a first LED current output pin, and a second LED current output pin. The IC chip is internally provided with a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital conversion module, a second analog-to-digital conversion module, a third analog-to-digital conversion module, a processing module, a reference generation module, a comparator module, an operational amplifier AMP1, an operational amplifier AMP2, a MOS transistor Q1, and a MOS transistor Q2; The processing module is electrically connected to the RAM storage module, the Flash storage module, the timer module, the first analog-to-digital conversion module, the second analog-to-digital conversion module, the third analog-to-digital conversion module and the comparator module respectively. The RAM storage module is electrically connected to the Flash storage module and the timer module respectively. The input end of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output end of the timer module and the second pulse width modulation output end of the timer module respectively. The output end of the reference generation module is electrically connected to the non-inverting input end of the operational amplifier AMP1 and the non-inverting input end of the operational amplifier AMP2 respectively. The output end of the operational amplifier AMP1 is electrically connected to the gate of the MOS tube Q1. The output end of the operational amplifier AMP2 is electrically connected to the gate of the MOS transistor Q2, the inverting input end of the operational amplifier AMP1 is electrically connected to the source of the MOS transistor Q1, the inverting input end of the operational amplifier AMP2 is electrically connected to the source of the MOS transistor Q2, the drain of the MOS transistor Q1 is electrically connected to the first LED current output pin, the drain of the MOS transistor Q2 is electrically connected to the second LED current output pin, the comparator module is electrically connected to the power-off detection pin, the first analog-to-digital conversion module is electrically connected to the first color temperature state setting pin, the second analog-to-digital conversion module is electrically connected to the second color temperature state setting pin, and the third analog-to-digital conversion module is electrically connected to the third color temperature state setting pin.

2. The IC chip according to claim 1, wherein A resistor R3 is further provided inside the IC chip. One end of the resistor R3 is electrically connected to the inverting input end of the operational amplifier AMP1 and the source of the MOS transistor Q1 respectively, and the other end of the resistor R3 is grounded.

3. The IC chip according to claim 1, wherein: A resistor R4 is further provided inside the IC chip. One end of the resistor R4 is electrically connected to the inverting input end of the operational amplifier AMP2 and the source of the MOS transistor Q2, respectively, and the other end of the resistor R4 is grounded.

4. The IC chip according to claim 1, wherein The IC chip is further provided with a resistor R1 and a resistor R2. The comparator module is electrically connected to one end of the resistor R1 and one end of the resistor R2 respectively. The other end of the resistor R1 is electrically connected to the power-off detection pin, and the other end of the resistor R2 is grounded.

5. The IC chip according to claim 1, wherein The IC chip is further provided with a high-voltage power supply pin, and the IC chip is further provided with a power supply module inside. The power supply module is electrically connected to the high-voltage power supply pin, the Flash storage module, the timer module and the processing module respectively.

6. A multi-color temperature switching circuit, characterized in that: It includes a first rectifier module, a thyristor dimming constant current module, a first load module, a resistor R201, a resistor R202, a resistor R203, a resistor R204 and an IC chip according to any one of claims 1 to 5; The current setting pin of the IC chip is electrically connected to one end of the resistor R201, and the other end of the resistor R201 is respectively electrically connected to the thyristor dimming constant current module, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the resistor R202 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R203 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R204 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module, and the power-off detection pin of the IC chip is respectively electrically connected to the first rectifier module and the thyristor dimming constant current module.

7. The multi-color temperature switching circuit according to claim 6, characterized in that: The thyristor dimming constant current module includes a chip IC1, the dimmer access detection pin of the chip IC1 is electrically connected to the power-off detection pin of the first rectifier module and the IC chip respectively, and the drain pin of the chip IC1 is electrically connected to the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204 respectively.

8. The multi-color temperature switching circuit according to claim 7, characterized in that: The thyristor dimming constant current module also includes a resistor R104 and an electrolytic capacitor E1. One end of the resistor R104 is electrically connected to the VD pin of the chip IC1, and the other end of the resistor R104 is respectively electrically connected to one end of the electrolytic capacitor E1, the drain pin of the chip IC1, the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203 and one end of the resistor R204. The other end of the electrolytic capacitor E1 is respectively electrically connected to the first rectifier module, the high-voltage power supply pin of the IC chip and the first load module.

9. The multi-color temperature switching circuit according to claim 7, wherein: The thyristor dimming constant current module also includes a resistor R105, a resistor R106 and a resistor R107. One end of the resistor R105 is electrically connected to the first current detection pin of the chip IC1, and the other end of the resistor R105 is electrically connected to one end of the resistor R106, one end of the resistor R107 and the second current detection pin of the chip IC1 respectively. The other end of the resistor R106 is electrically connected to the first rectifier module and the other end of the resistor R107 respectively, and the other end of the resistor R106 and the other end of the resistor R107 are both grounded.

10. A multi-color temperature switching circuit, characterized in that: comprising a second rectifier module, a second load module, a resistor R301, a resistor R302, a resistor R303, a resistor R304, and the IC chip of any one of claims 1-5; The current setting pin of the IC chip is electrically connected to one end of the resistor R301, and the other end of the resistor R301 is electrically connected to the second rectifier module, one end of the resistor R302, one end of the resistor R303 and one end of the resistor R304 respectively. The other end of the resistor R302 is electrically connected to the first color temperature state setting pin of the IC chip, the other end of the resistor R303 is electrically connected to the second color temperature state setting pin, and the other end of the resistor R304 is electrically connected to the third color temperature state setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module, and the power-off detection pin of the IC chip is electrically connected to the second rectifier module.

Citation Information

Patent Citations

  • LED lamp circuit capable of realizing silicon controlled rectifier dimming and switch color temperature adjustment

    CN113225865A

  • LED control circuit compatible with light modulation and color temperature modulation

    CN209627758U

  • LED lamp color temperature switching circuit

    CN213818266U

  • LED lamp circuit capable of realizing silicon controlled rectifier dimming and switch color temperature adjustment

    CN215453333U

  • Lamp multi-section color temperature switching circuit

    CN217563820U