[go: up one dir, main page]

CN201995160U - Control chip of light emitting diode (LED) power supply - Google Patents

Control chip of light emitting diode (LED) power supply Download PDF

Info

Publication number
CN201995160U
CN201995160U CN2010205407064U CN201020540706U CN201995160U CN 201995160 U CN201995160 U CN 201995160U CN 2010205407064 U CN2010205407064 U CN 2010205407064U CN 201020540706 U CN201020540706 U CN 201020540706U CN 201995160 U CN201995160 U CN 201995160U
Authority
CN
China
Prior art keywords
module
chip
volatile memory
pwm
comparator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CN2010205407064U
Other languages
Chinese (zh)
Inventor
陈光德
倪端
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN2010205407064U priority Critical patent/CN201995160U/en
Application granted granted Critical
Publication of CN201995160U publication Critical patent/CN201995160U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Led Devices (AREA)

Abstract

本实用新型涉及一种LED电源控制芯片,信号测量模块和采样控制模块相连,采样控制模块分别和样本比较器、易失存储器、PWM模块相连,样本比较器和非易失存储器相连,易失存储器和PWM模块相连,非易失存储器和PWM模块相连,24小时循环计数器与时间比较器相连,时间比较器和非易失存储器、PWM模块相连,时钟分频模块与24小时循环计数器相连,芯片地址模块与易失存储器相连,通信接口与易失存储器相连,通信接口与24小时循环计数器相连,通信接口与非易失存储器相连,LED并联支路断路数加法器与PWM模块、易失存储器相连,本实用新型可以简单地实现模数转换,不需要在芯片嵌入模拟电路,以最可能地减少成本,芯片既可以单独使用,也可以组网使用。

Figure 201020540706

The utility model relates to an LED power supply control chip, in which a signal measurement module is connected with a sampling control module, the sampling control module is respectively connected with a sample comparator, a volatile memory, and a PWM module, the sample comparator is connected with a nonvolatile memory, and the volatile memory It is connected with the PWM module, the non-volatile memory is connected with the PWM module, the 24-hour cycle counter is connected with the time comparator, the time comparator is connected with the non-volatile memory, and the PWM module, the clock frequency division module is connected with the 24-hour cycle counter, and the chip address The module is connected to the volatile memory, the communication interface is connected to the volatile memory, the communication interface is connected to the 24-hour cycle counter, the communication interface is connected to the non-volatile memory, the LED parallel branch open circuit number adder is connected to the PWM module and the volatile memory, The utility model can simply realize analog-to-digital conversion without embedding an analog circuit in the chip, so as to reduce the cost as much as possible, and the chip can be used alone or in a network.

Figure 201020540706

Description

LED电源控制芯片LED power control chip

技术领域technical field

本实用新型涉及一种芯片技术领域,具体涉及一种LED电源控制芯片。The utility model relates to the technical field of chips, in particular to an LED power supply control chip.

背景技术Background technique

LED的驱动主要是采用PWM控制的恒流源,现有的LED电源控制一般都提供温度的检测功能,但是对于温度的补偿一般只是对极限温度进行控制,采用关断电源或PWM无输出的做法,对于过流的保护,只是对总的恒流源总的电源电流进行检测以调节PWM输出;并没考虑通过环境光或条件参数改变电源输出功率的给定,因为这样就不被称为恒流源;并没有考虑LED并联支路的出现断路的情况,当LED的并联支路出现断路时,电流将加在剩余下的正常支路上,这样正常并联支路将要分摊总的电流,很可能会出现雪崩式的迅速损坏LED。The driving of LED mainly adopts the constant current source controlled by PWM. The existing LED power supply control generally provides the temperature detection function, but the temperature compensation generally only controls the limit temperature, and the method of turning off the power supply or PWM without output is adopted. , for over-current protection, it only detects the total power supply current of the total constant current source to adjust the PWM output; it does not consider changing the given power output power through ambient light or condition parameters, because this is not called constant Current source; it does not consider the open circuit of the parallel branch of the LED. When the parallel branch of the LED is open, the current will be added to the remaining normal branch. In this way, the normal parallel branch will share the total current, which is likely There will be an avalanche of rapid damage to the LED.

对于市电供电的情况,有时还有供电的峰谷调整要求,或者人为的进行功率的调整,所以需要设定定时的运行参数,现有的LED电源驱动芯片,不具有这样的功能。集合所有的情况,采用微处理器(MCU)是可以实现的,但是价格将会增加很多,不但芯片中要嵌入微处理器,还需要考虑处理器架构、模数转换器、通信接口、非易失存储器和微处理器编程语言体系,由于是采用的板级技术,可靠性不会很高,成本将比较高,且工作的时钟频率受限于所采用的微处理器 (MCU),用户的使用技术也有较高的要求,开发针对低成本,功能强大的LED电源控制芯片,一直是业界追求的目标。For the case of mains power supply, sometimes there is a requirement for peak and valley adjustment of power supply, or artificial power adjustment, so it is necessary to set timing operation parameters. The existing LED power supply driver chip does not have such a function. In all cases, it is possible to use a microprocessor (MCU), but the price will increase a lot. Not only must the microprocessor be embedded in the chip, but also the processor architecture, analog-to-digital converter, communication interface, non-easy Lost memory and microprocessor programming language system, due to the board-level technology used, the reliability will not be very high, the cost will be relatively high, and the working clock frequency is limited by the microprocessor (MCU) used, the user's The use of technology also has higher requirements, and the development of low-cost, powerful LED power supply control chips has always been the goal pursued by the industry.

发明内容Contents of the invention

本实用新型所要解决的问题是:提供一种功能性强、成本低的LED电源控制芯片,这种电源芯片是一种数字芯片,这种电源芯片没有嵌入微处理器和常规的模数转换器。本实用新型解决了LED并联支路断路时的安全问题,解决了LED灯具需要定时和设定参数情况下的运行问题,同时本实用新型所述芯片提供可编程的地址,可以在远程主机的控制下联网运行。The problem to be solved by the utility model is to provide a LED power supply control chip with strong functionality and low cost. This power supply chip is a digital chip. . The utility model solves the safety problem when the LED parallel branch circuit is broken, and solves the operation problem when the LED lamp needs timing and setting parameters. At the same time, the chip of the utility model provides a programmable address, which can be controlled by a remote host Run it online.

为了解决上述技术问题,本实用新型采用以下技术方案:In order to solve the above technical problems, the utility model adopts the following technical solutions:

一种LED电源控制芯片,其特征在于它包括:信号测量模块、采样控制模块、通信接口、样本比较器、时钟及分频模块、芯片地址模块、易失存储器、非易失存储器、24小时循环计数器、LED并联支路断路数加法器、时间比较器、PWM模块,信号测量模块和采样控制模块相连,以建立采样的通道和获取采样数据;采样控制模块分别和样本比较器、易失存储器、PWM模块相连,样本比较器和非易失存储器相连,以和来自非易失存储器的样本数据进行比较并将所得结果保存于易失存储器,易失存储器和PWM模块相连,采样控制模块对环境亮度值与易失存储器中的所保存的当前值做比较,如果环境亮度值发生变化,采样控制模块将向PWM模块发送环境亮度变化信号;采样控制模块同时对所测量的温度值与非易失存储器中的设定值做比较,如果不在正常温度范围内,采样控制模块向PWM模块发送温度异常信号,非易失存储器和PWM模块相连,PWM模块提取存储在非易失存储器的参数,24小时循环计数器与时间比较器相连,时间比较器和非易失存储器、PWM模块相连,时间比较器用于和来自非易失存储器中的定时值进行比较,当有定时起点到或者定时终点到信号发生,时间比较器将启动与PWM模块的连接,以启动依据此条件的PWM计算;时钟分频模块与24小时循环计数器相连,芯片地址模块与易失存储器相连,将芯片地址存入其中,通信接口与易失存储器相连,以将芯片地址取回到远程主机;通信接口与24小时循环计数器相连是为了启动校正时间,通信接口与非易失存储器相连,是为了设置、修改参数或接收参数,LED并联支路断路数加法器与PWM模块、易失存储器相连,对所有的LED支路的并联断路状况做进位加法运算,如果LED并联支路出现异常,将进位加法运算结果送入易失存储器,并向PWM模块传送LED并联支路异常信号。An LED power supply control chip is characterized in that it includes: a signal measurement module, a sampling control module, a communication interface, a sample comparator, a clock and a frequency division module, a chip address module, a volatile memory, a nonvolatile memory, and a 24-hour cycle Counter, LED parallel branch open circuit number adder, time comparator, PWM module, signal measurement module and sampling control module are connected to establish a sampling channel and obtain sampling data; the sampling control module is respectively connected to the sample comparator, volatile memory, The PWM module is connected, the sample comparator is connected with the non-volatile memory, and the sample data from the non-volatile memory is compared and the result is saved in the volatile memory, the volatile memory is connected with the PWM module, and the sampling control module controls the ambient brightness The value is compared with the current value saved in the volatile memory. If the ambient brightness value changes, the sampling control module will send an ambient brightness change signal to the PWM module; the sampling control module will compare the measured temperature value with the non-volatile memory at the same time. If it is not within the normal temperature range, the sampling control module sends a temperature abnormal signal to the PWM module, the non-volatile memory is connected to the PWM module, and the PWM module extracts the parameters stored in the non-volatile memory, 24-hour cycle The counter is connected to the time comparator, and the time comparator is connected to the non-volatile memory and the PWM module. The time comparator is used to compare with the timing value from the non-volatile memory. When a timing start or timing end signal occurs, the time The comparator will start the connection with the PWM module to start the PWM calculation based on this condition; the clock frequency division module is connected with the 24-hour cycle counter, the chip address module is connected with the volatile memory, and the chip address is stored in it, and the communication interface is connected with the easy The communication interface is connected with the 24-hour cycle counter to start the correction time, and the communication interface is connected with the non-volatile memory to set, modify or receive parameters. The LEDs are connected in parallel The open circuit number adder is connected with the PWM module and the volatile memory, and performs carry addition operation on the parallel open circuit status of all LED branches. If the LED parallel branch is abnormal, the result of the carry addition operation is sent to the volatile memory and sent to the The PWM module transmits the abnormal signal of the LED parallel branch.

本实用新型与现有技术相比具有以下有益效果:本实用新型各模块具有实时运行的特征,取消了嵌入微处理器的方法,同时降低了购买知识产权的代价,本实用新型可以简单地实现模数转换,不需要在芯片嵌入模拟电路,以最可能地减少成本,芯片既可以单独使用,也可以组网使用,在不增加大规模的成本的情况下,极大地改善和提高了现有的LED电源控制芯片的功能和LED的安全保护。本实用新型根据环境亮度具有平滑的调光;在温度的警戒范围具有平滑的调光和过温保护;可实现定时定条件运行;适合于不同照明亮度要求的远程网络控制。Compared with the prior art, the utility model has the following beneficial effects: each module of the utility model has the characteristics of real-time operation, cancels the method of embedding a microprocessor, and reduces the cost of purchasing intellectual property rights, and the utility model can be easily realized Analog-to-digital conversion does not need to embed analog circuits in the chip to reduce the cost as much as possible. The chip can be used alone or in a network, which greatly improves and enhances the existing The function of the LED power control chip and the safety protection of the LED. The utility model has smooth dimming according to the brightness of the environment; smooth dimming and over-temperature protection in the warning range of temperature; can realize timing and conditional operation; and is suitable for remote network control with different lighting brightness requirements.

附图说明Description of drawings

图1为芯片模块图Figure 1 is a chip module diagram

图2为芯片管脚图Figure 2 is the chip pin diagram

图3为信号测量模块图Figure 3 is a diagram of the signal measurement module

图4为备用电池充电模块、时钟及分频模块、24小时循环计数器模块图Figure 4 is a diagram of the backup battery charging module, clock and frequency division module, and 24-hour cycle counter module

图5为通信接口及芯片地址模块图Figure 5 is a diagram of the communication interface and chip address module

图6为PWM模块原理图。Figure 6 is a schematic diagram of the PWM module.

具体实施方式Detailed ways

参见图 1,本实用新型包括信号测量模块、备用电池充电模块、通信接口、采样控制模块、样本比较器、时钟及分频模块(即时钟发生模块和多路分频模块)、芯片地址模块、易失存储器、非易失存储器、24小时循环计数器、LED并联支路断路数加法器、时间比较器、PWM模块。各模块的连接关系如下:Referring to Figure 1, the utility model includes a signal measurement module, a backup battery charging module, a communication interface, a sampling control module, a sample comparator, a clock and a frequency division module (that is, a clock generation module and a multi-channel frequency division module), a chip address module, Volatile memory, non-volatile memory, 24-hour cycle counter, LED parallel branch open circuit number adder, time comparator, PWM module. The connection relationship of each module is as follows:

1)  信号测量模块和采样控制模块相连,以建立采样的通道和获取采样数据;被测对象为环境亮度信号、温度信号和多个通道的以数字I/O形式输入的LED并联支路断路信号,包含两个通道的电阻比较法测量温度和环境亮度,以及一种利用RC放电回路放电时间取样的信号测量法,温度测量电路内置于芯片中;1) The signal measurement module is connected to the sampling control module to establish a sampling channel and obtain sampling data; the measured objects are ambient brightness signals, temperature signals and LED parallel branch circuit break signals input in the form of digital I/O for multiple channels , including two-channel resistance comparison method to measure temperature and ambient brightness, and a signal measurement method using RC discharge circuit discharge time sampling, the temperature measurement circuit is built into the chip;

2)  采样控制模块分别和样本比较器、易失存储器、PWM模块相连,样本比较器和非易失存储器相连,芯片内置非易失存储器,以和来自非易失存储器的样本数据进行比较并将所得结果保存于易失存储器,此结果仍将在采样控制模块中做为运算的参数,根据运算结果确定是否向PWM模块发送环境亮度改变信号或温度异常信号,此采样控制模块对环境亮度值与易失存储器中的当前值做比较,如果发生变化,采样控制模块将向PWM模块发送环境亮度变化信号;此采样模块同时对所测量的温度值与非易失存储器中的设定值做比较,如果不在正常温度范围内,采样控制模块向PWM模块发送温度异常信号。易失存储器和PWM模块相连,保存用于PWM模块的PWM周期计数器和PWM脉宽计数器所用的计数值;2) The sampling control module is connected to the sample comparator, volatile memory, and PWM module respectively, the sample comparator is connected to the non-volatile memory, and the chip has a built-in non-volatile memory to compare with the sample data from the non-volatile memory and The obtained result is stored in the volatile memory, and this result will still be used as the parameter of the calculation in the sampling control module. According to the calculation result, it is determined whether to send the ambient brightness change signal or the abnormal temperature signal to the PWM module. The current value in the volatile memory is compared, and if there is a change, the sampling control module will send an ambient brightness change signal to the PWM module; the sampling module will compare the measured temperature value with the set value in the non-volatile memory at the same time, If it is not within the normal temperature range, the sampling control module sends an abnormal temperature signal to the PWM module. The volatile memory is connected to the PWM module, and saves the count value used by the PWM period counter and the PWM pulse width counter of the PWM module;

3)  芯片内置PWM模块,PWM模块的计算功能;其包含优先级判定计算,环境亮度与PWM占空比计算,温度调节计算,LED并联支路总的断路数所确定的PWM占空比计算,设定的运行时段时的PWM占空比计算,PWM模块内含两个计数器,一个用于脉冲周期计数,一个用于脉冲宽度计数用以产生PWM脉冲,PWM占空比对应于这两个计数器的计数值;3) The chip has a built-in PWM module, the calculation function of the PWM module; it includes the calculation of priority determination, the calculation of ambient brightness and PWM duty cycle, the calculation of temperature adjustment, the calculation of PWM duty cycle determined by the total number of open circuits of LED parallel branches, Calculate the PWM duty cycle during the set running period. The PWM module contains two counters, one for pulse cycle counting and one for pulse width counting to generate PWM pulses. The PWM duty cycle corresponds to these two counters count value;

4)  备用电池充电模块具有充电电路,备用电池充电模块与时钟分频模块相连,以获得正确的时钟,时钟分频模块与24小时循环计数器相连;双电源为芯片供电,其中在主电源掉电时由电池供电为芯片提供保障24小时循环时钟的运行、非易失存储器的数据保存和芯片再启动,两个电源之间无需切换,从而保证其可靠性;4) The backup battery charging module has a charging circuit. The backup battery charging module is connected to the clock frequency division module to obtain the correct clock. The clock frequency division module is connected to the 24-hour cycle counter; the dual power supply supplies power to the chip, and the main power supply is powered off. The battery is always powered by the chip to ensure the operation of the 24-hour cycle clock, the data storage of the non-volatile memory and the restart of the chip, and there is no need to switch between the two power sources, thereby ensuring its reliability;

5)  24小时循环计数器与时间比较器相连,时间比较器和非易失存储器、PWM模块相连,时间比较器用于和来自非易失存储器中的定时值(起点或终点)进行比较,然后与PWM模块相连,当有定时起点到或者定时终点到信号发生,时间比较器将启动与PWM模块的连接,以启动依据此条件的PWM计算;5) The 24-hour cycle counter is connected to the time comparator, and the time comparator is connected to the non-volatile memory and the PWM module. The time comparator is used to compare with the timing value (start or end point) from the non-volatile memory, and then compare it with the PWM The modules are connected, when there is a timing start or timing end signal, the time comparator will start the connection with the PWM module to start the PWM calculation based on this condition;

6)  非易失存储器和PWM模块相连,是为了提取几个存储在其中的参数(安全温度最大值、极限温度值,定时起点和终点,设定的工作参数(如设定的工作电压或者环境亮度参数);6) The non-volatile memory is connected to the PWM module in order to extract several parameters stored in it (safety temperature maximum value, limit temperature value, timing start and end point, set working parameters (such as set working voltage or environment) Brightness parameter);

7)  芯片地址模块与易失存储器相连,将芯片地址存入其中;芯片为芯片地址的设定提供4个引脚,可以通过接电源正极和接地的组合形成15个不同的地址;7) The chip address module is connected to the volatile memory, and the chip address is stored in it; the chip provides 4 pins for setting the chip address, and 15 different addresses can be formed by connecting the positive pole of the power supply and the ground;

8)  通信接口与易失存储器相连,以将芯片地址取回到远程主机,将将要校准的时间值保存其中,芯片内置通信接口;8) The communication interface is connected to the volatile memory to retrieve the chip address to the remote host, and save the time value to be calibrated in it, and the chip has a built-in communication interface;

10)通信接口与24小时循环计数器相连是为了启动校正时间;10) The communication interface is connected with the 24-hour cycle counter to start the correction time;

11)通信接口与非易失存储器相连,是为了设置、修改参数或接收参数;11) The communication interface is connected to the non-volatile memory for setting, modifying or receiving parameters;

12)LED并联支路断路数加法器与PWM模块、易失存储器相连,LED并联支路断路数加法器对所有的LED支路的并联断路状况做进位加法运算,如果LED并联支路出现异常,将进位加法运算结果送入易失存储器,并向PWM模块传送LED并联支路异常信号。12) The LED parallel branch open circuit number adder is connected with the PWM module and the volatile memory. The LED parallel branch circuit open circuit number adder performs carry addition operation on the parallel open circuit status of all LED branches. If the LED parallel branch circuit is abnormal, Send the result of the carry addition operation to the volatile memory, and send the abnormal signal of the LED parallel branch to the PWM module.

参见图2,芯片体100具有24个管脚:主电源管脚VCC,备用电池电源管脚VCC1,地线GND,两个时钟管脚XTAL0和XTAL1,两个通信接口管脚RX和TX, 4个地址编程管脚A0~A3,两个电阻比较采样管脚X0和X1,3个RC充放电采样管脚B0~B2,6个LED并联支路断路反馈信号管脚IO-0~IO-5。LED并联支路断路数加法器通过芯片管脚IO-0~IO-5连接LED并联支路的电压取样的电平信号,判断LED并联支路断路的总和。Referring to Fig. 2, the chip body 100 has 24 pins: main power supply pin VCC, backup battery power supply pin VCC1, ground wire GND, two clock pins XTAL0 and XTAL1, two communication interface pins RX and TX, 4 1 address programming pin A0~A3, 2 resistance comparison sampling pins X0 and X1, 3 RC charge and discharge sampling pins B0~B2, 6 LED parallel branch circuit break feedback signal pins IO-0~IO-5 . The open circuit number adder of the LED parallel branch connects the level signal of the voltage sampling of the LED parallel branch through the chip pins IO-0-IO-5, and judges the sum of the open circuits of the LED parallel branch.

参见图3,图3为信号测量模块图。Referring to Fig. 3, Fig. 3 is a diagram of a signal measurement module.

1)温度信号的获取,芯片内置3个电阻,一个是标准精密电阻RS,一个是热敏电阻RT,一个是常规电阻R,RS和R通过通断控制模块105与数据采样控制模块106相连,热敏电阻RT通过与选通开关104相连后,通过通断控制模块105再与数据采样控制模块106相连,而三个电阻的另一端则相连在一起,然后与一个芯片外的电容C1相连,C1的另一端接地。其测量原理是:通过通断控制模块105接通标准精密电阻RS并置高电平,接通R并置低平台,RS将对C1充电,到R的连接到数据采样控制模块106的电平变高后表明电容C1充电已满,通过通断控制模块105断开标准精密电阻RS,并置R的连线为低电平,电容C1将通过电阻R放电,从而确定一个通过RS充电的标准的充电时间。对热敏电阻RT如标准精密电阻RS一样,也可采用同样的动作,当热敏电阻变化时,对电容C1的充电时间也会发生变化,对应于标准的精密电阻的充电时间,就能得出热敏电阻的值,从而得到温度的值。1) Acquisition of the temperature signal, the chip has 3 built-in resistors, one is a standard precision resistor RS, one is a thermistor RT, and the other is a conventional resistor R, RS and R are connected to the data sampling control module 106 through the on-off control module 105, After the thermistor RT is connected with the strobe switch 104, it is connected with the data sampling control module 106 through the on-off control module 105, and the other ends of the three resistors are connected together, and then connected with an off-chip capacitor C1, The other end of C1 is grounded. The measurement principle is: connect the standard precision resistor RS through the on-off control module 105 and set the high level, connect R and set the platform low, RS will charge C1, and connect to the level of R to the data sampling control module 106 When it becomes high, it indicates that the capacitor C1 is fully charged. The standard precision resistor RS is disconnected through the on-off control module 105, and the connection line of R is set to a low level. The capacitor C1 will discharge through the resistor R, thereby determining a standard for charging through RS. charging time. The thermistor RT is the same as the standard precision resistor RS, and the same action can also be used. When the thermistor changes, the charging time of the capacitor C1 will also change, corresponding to the charging time of the standard precision resistor, you can get The value of the thermistor is obtained to obtain the value of temperature.

)以测量电阻的方式获得环境光信号,如测量光敏电阻或者光敏二极管电阻RL,可以采用所述温度测量的原理,但被测电阻对象的放置与环境有关,故只能放在芯片外,RL与芯片内的选通开关104相连后,再通过通断控制105与数据采样控制模块106相连。选通开关104确定何时进行测量温度信号,何时测量环境光信号,实现二通道测量。 ) Obtain ambient light signals by measuring resistance, such as measuring photosensitive resistor or photodiode resistance RL, the principle of temperature measurement can be used, but the placement of the measured resistance object is related to the environment, so it can only be placed outside the chip, RL After being connected with the gate switch 104 in the chip, it is connected with the data sampling control module 106 through the on-off control 105 . The gating switch 104 determines when to measure the temperature signal and when to measure the ambient light signal to realize two-channel measurement.

)以测量RC充放电时间测量环境光,以测量RC放电时间测量环境光方法是另一种可选的模拟信号测量方法,将已得整理的环境光电压信号V(t),通过选通开关101连接电阻R1,然后分别与充电电容C2、比较器102的反相端相连、比较器103的同相端相连,比较器103的反相端接地构成一零比较器。参考电压Vf与比较器102的同相端相连,比较器102的输出连接至芯片的管脚B0,此管脚连接到采样控制模块106。比较器103的输出连接至芯片的管脚B1,此管脚连接到采样控制模块106。选通开关101的选通信号线通过芯片管脚B2连接到采样控制模块106。其测量原理是:当选通开关接通到V(t)的一边,开始对电容C2充电,当充电到参考电压Vf时,比较器102输出一个反转信号,这时选通开关101接通至接地端,电容C2开始放电,当放电结束后,比较器103给出信号,这时选通开关101接通V(t),开始充电。只要记录这个放电时间就可以根据公式:Vf=V(t)*e-t/RC得到V(t)的值。然后对应芯片内存储器中的标准量化记录表就可以完成模拟信号的采样。需要强调的是,同样可以通过测量充电C2电压到达Vf的时间来获得V(t)的值,尽管V(t)是一个时间的函数,但只要合适地选好Vf、R1和C2,使充放电时间足够短,可以获得V(t)很好的精度。 ) to measure the ambient light by measuring the RC charge and discharge time, and to measure the ambient light by measuring the RC discharge time is another optional analog signal measurement method. 101 is connected to the resistor R1, and then connected to the charging capacitor C2, the inverting terminal of the comparator 102, and the non-inverting terminal of the comparator 103, and the inverting terminal of the comparator 103 is grounded to form a zero comparator. The reference voltage Vf is connected to the non-inverting terminal of the comparator 102 , the output of the comparator 102 is connected to the pin B0 of the chip, and this pin is connected to the sampling control module 106 . The output of the comparator 103 is connected to the pin B1 of the chip, and this pin is connected to the sampling control module 106 . The gating signal line of the gating switch 101 is connected to the sampling control module 106 through the chip pin B2. The measurement principle is: when the gate switch is connected to one side of V(t), the capacitor C2 starts to be charged, and when it is charged to the reference voltage Vf, the comparator 102 outputs an inversion signal, and at this time the gate switch 101 is connected to At the ground terminal, the capacitor C2 starts to discharge, and when the discharge is over, the comparator 103 gives a signal, at this time the strobe switch 101 is connected to V(t), and charging starts. As long as the discharge time is recorded, the value of V(t) can be obtained according to the formula: Vf=V(t)*e -t/RC . Then, corresponding to the standard quantization recording table in the on-chip memory, the sampling of the analog signal can be completed. It should be emphasized that the value of V(t) can also be obtained by measuring the time when the charging C2 voltage reaches Vf. Although V(t) is a function of time, as long as Vf, R1 and C2 are properly selected, the charging The discharge time is short enough to obtain good accuracy of V(t).

数据采样流程,其功能包括:1)将连接具有采样的确定的标准量化值的非易失存储器110,这个数据不能丢失,可以通过通信接口编程改写,这个存储器需要是非易失的,对采样控制模块来讲是只读的。2)当采用电阻比较法进行采样时,对温度信号和环境光信号二路采样时控制通道切换,确定采样的间隔时间,对通断控制模块105进行控制。3)对权利所述的两种采样的方法都要求测试电容C1或者C2的充电或放电时间,查表与存储在非易失存储器110中的标准量化值做比较,如数据落在所确定的范围内,则将数据送至易失存储器107,如果采样的是环境亮度信号,则与当前所确定PWM信号的环境亮度值做比较,如果不同将启动与PWM模块连接的环境亮度变化信号;如果采样的是温度信号,则与非易失存储器中的设定值做比较,如果不在正常范围内,将启动与PWM模块连接的温度异常信号。输出驱动模块111是对PWM信号进行驱动放大后输出。 The data sampling process , its functions include: 1) Connect the non-volatile memory 110 with the determined standard quantization value of the sample. This data cannot be lost and can be rewritten through the communication interface programming. This memory needs to be non-volatile, and the sampling control Modules are read-only. 2) When the resistance comparison method is used for sampling, control channel switching when sampling the temperature signal and the ambient light signal, determine the sampling interval, and control the on-off control module 105 . 3) The two sampling methods described in the right require testing the charging or discharging time of the capacitor C1 or C2, and compare the look-up table with the standard quantized value stored in the non-volatile memory 110, if the data falls within the determined Within the scope, then the data is sent to the volatile memory 107, if what sampled is the ambient brightness signal, then compare with the ambient brightness value of the currently determined PWM signal, if it is different, the ambient brightness change signal connected to the PWM module will be started; if The temperature signal is sampled, and compared with the set value in the non-volatile memory, if it is not within the normal range, an abnormal temperature signal connected to the PWM module will be activated. The output driving module 111 drives and amplifies the PWM signal and then outputs it.

多路LED并联支路的断路判断,其方法是通过对各个LED的并联支路进行电压采样,并整定为电平信号,当有电压信号时,为高电平,当无电压信号时,为低电平,此时表明某LED并联支路已断开。这些信号通过芯片的管脚连接到LED并联支路断路数加法器108,这是一个简单的进位加法器所能实现的功能。所有支路都为高电平时,和数有最大值,所以可以判定LED支路是否存在断路。一旦和数不是最大值,将通过与PWM模块连接的LED并联支路异常信号触发PWM计模块109,并且根据断路数作出PWM的计算。The method of judging the disconnection of multiple LED parallel branches is to sample the voltage of each LED parallel branch and set it as a level signal. When there is a voltage signal, it is high level, and when there is no voltage signal, it is Low level, at this time, it indicates that a certain LED parallel branch has been disconnected. These signals are connected to the LED parallel branch disconnection number adder 108 through the pins of the chip, which is a function that can be realized by a simple carry adder. When all branches are at high level, the sum has a maximum value, so it can be determined whether there is an open circuit in the LED branch. Once the sum is not the maximum value, the PWM meter module 109 will be triggered by the abnormal signal of the LED parallel branch connected to the PWM module, and the PWM calculation will be made according to the disconnection number.

图4为备用电池充电模块、时钟及分频模块、24小时循环计数器电路图,主电源VCC经电阻R2连接到比较器201的同相端,比较器201的同相端经过R3接地,201的输出端通过电阻R4连接到三极管Q的基极,Q的发射极通过二极管D2向电池BT充电,Q的集电极通过二极管D1与主电源VCC相连,Q的发射极通过电容C3与地相连,Q的发射极与电阻R6相连,然后通过R7与地相连,Q的基极通过电阻R5与地相连,Q的发射极与电阻R6相连,然后连接到比较器201的反相端抑获取反馈信号。Figure 4 is a circuit diagram of a backup battery charging module, a clock and a frequency division module, and a 24-hour cycle counter. The main power supply VCC is connected to the non-inverting terminal of the comparator 201 through a resistor R2. The resistor R4 is connected to the base of the triode Q, the emitter of Q charges the battery BT through the diode D2, the collector of Q is connected to the main power supply VCC through the diode D1, the emitter of Q is connected to the ground through the capacitor C3, and the emitter of Q It is connected to the resistor R6, and then connected to the ground through R7, the base of Q is connected to the ground through the resistor R5, the emitter of Q is connected to the resistor R6, and then connected to the inverting terminal of the comparator 201 to obtain a feedback signal.

其工作原理是:VCC经R2、R3分压获得一个参考电压值作为比较器201的比较基准。然后比较器201输出一个信号到三极管Q,三极管选用开关管工作在开关状态,然后可对可充电电池BT充电。D1具有稳压的作为。在当充电时候,反馈的电压信号将升高,到参考电压的时候,比较器将没有输出,三极管将停止工作。BT电池将不被充电。反馈电压信号低到一定的时候,备用电池BT又会被充电。Its working principle is: VCC is divided by R2 and R3 to obtain a reference voltage value as the comparison reference of the comparator 201 . Then the comparator 201 outputs a signal to the triode Q, and the triode selects the switching tube to work in the switching state, and then can charge the rechargeable battery BT. D1 has the function of voltage regulation. When charging, the feedback voltage signal will increase, and when it reaches the reference voltage, the comparator will have no output, and the triode will stop working. BT batteries will not be charged. When the feedback voltage signal is low enough, the backup battery BT will be charged again.

备用电池BT为芯片内的时钟发生模块202、多路分频模块203、24小时循环计数器204、非易失存储器110、断电重启定时器207提供电源VCC1。除此外片内其他模块由主电源VCC供电,可保证主电源VCC掉电后备用电池无切换地工作。时钟发生模块202、多路分频模块203为常规的电路模块,其中多路分频提供几个工作时钟,其中一个是满足24小时循环计时器的1HZ时钟,还有全局运行时钟。The backup battery BT provides power VCC1 for the clock generation module 202 , the multiplex frequency division module 203 , the 24-hour cycle counter 204 , the nonvolatile memory 110 , and the power-off restart timer 207 in the chip. Except that other modules in the chip are powered by the main power supply VCC, which can ensure that the backup battery works without switching after the main power supply VCC is powered off. The clock generation module 202 and the multi-channel frequency division module 203 are conventional circuit modules, wherein the multi-channel frequency division provides several working clocks, one of which is a 1HZ clock satisfying the 24-hour cycle timer, and there is also a global operating clock.

芯片由主电源VCC和备用电池电源VCC1两路供电,VCC1为时钟电路、多路分频模块、24小时循环计数器、非易失存储器和系统复位电路供电,以保证芯片主电源VCC掉电时电源无切换工作,数据不会丢失和24小时循环计数器能正常运行。The chip is powered by the main power supply VCC and the backup battery power supply VCC1. VCC1 supplies power for the clock circuit, multi-channel frequency division module, 24-hour cycle counter, non-volatile memory and system reset circuit to ensure the power supply when the main power supply VCC of the chip is powered off. There is no handover work, no data loss and 24-hour cycle counters can operate normally.

非易失存储器110,即掉电时保证其中内容不会丢失。内容包含:二路采样循环时间常数,采样量化标准表(可根据精度确定所需位数,如果8位就是0-255之间的二进制值),定时工作起点时间值(3字节数据),定时工作终点时间值(3字节数据),定时工作期间的工作期间的工作参数(如可对应于如市电电压或环境亮度指标),安全工作温度上限值,极限温度值。通过通信接口可以改变这些值,从而可以实现远程控制。根据用户需要一些常数可以确定为定值。易失存储器加上非易失存储器共有16位字长的寻址空间,24小时定时的初始值(为校时所用,为3字节数)可放入易失存储器保存。其内部连接关系和工作原理是:The non-volatile memory 110 ensures that the contents thereof will not be lost when the power is turned off. The content includes: two-way sampling cycle time constant, sampling quantization standard table (the required number of digits can be determined according to the accuracy, if 8 bits are binary values between 0-255), the starting time value of timing work (3 bytes of data), Timing work end time value (3 bytes of data), working parameters during the working period of timing work (for example, corresponding to mains voltage or ambient brightness index), safe working temperature upper limit, and limit temperature value. These values can be changed via the communication interface, allowing remote control. Some constants can be determined as fixed values according to user needs. The volatile memory plus the non-volatile memory have a total of 16-bit addressing space, and the initial value of the 24-hour timer (for time calibration, 3 bytes) can be stored in the volatile memory. Its internal connection relationship and working principle are:

电容C4、C5和晶振XTAL构成外部振荡源,通过管脚XTAL0和XTAL1连接到时钟发生模块202,时钟发生模块202连接到多路分频器203,多路分频器203产生的计时时钟CLK1连接到24小时循环计数器204,24小时循环计数器204产生16位输出连接到时间比较器208,非易失存储器110,与时间比较器(208)相连给予时间的比较值,来自通信接口的时间设定控制信号连接到24小时循环计数器204,来自通信接口的时间校准值设定连接到易失存储器是107。断电信号可以取自主电源VCC连接到断电重启定时器207,断电重启定时器207产生的输出重启信号连接到一个二或门209的一个输入端,其另一个输入端与复位信号Reset相连,二或门209产生的输出与易失存储器组206的输入端相连,与时间比较器的输入端相连,还与其他的由VCC提供电源的功能模块相连以保证可靠地复位。24小时循环计数器204是一直处于工作中,但24小时计数满后将重新从0开始计数,并且产生的计数值一直与非易失存储器110中所保存的定时工作起点时间值和定时工作终点时间值在时间比较器208中做比较运算,当计数值和定时工作起点时间值相等时将产生一个定时起点到信号输出,并转为与定时工作终点时间值做比较运算。当计数和定时工作终点时间值相等时将产生一个定时终点到信号输出,并转为与定时工作起点时间值做比较运算。这两条信号线将连接到PWM模块109,以触发PWM模块进行PWM的重新计算。Capacitors C4, C5 and crystal oscillator XTAL form an external oscillator source, which is connected to the clock generation module 202 through pins XTAL0 and XTAL1, the clock generation module 202 is connected to the multi-channel frequency divider 203, and the timing clock CLK1 generated by the multi-channel frequency divider 203 is connected to To the 24-hour cycle counter 204, the 24-hour cycle counter 204 generates a 16-bit output connected to the time comparator 208, the non-volatile memory 110, connected to the time comparator (208) to give the comparison value of the time, and the time setting from the communication interface The control signal is connected to the 24-hour cycle counter 204, and the time calibration value setting from the communication interface is connected to the volatile memory 107. The power-off signal can be taken from the main power supply VCC and connected to the power-off restart timer 207, and the output restart signal generated by the power-off restart timer 207 is connected to an input end of a two-OR gate 209, and the other input end is connected to the reset signal Reset , the output generated by the two OR gate 209 is connected with the input terminal of the volatile memory bank 206, with the input terminal of the time comparator, and also connected with other functional modules powered by VCC to ensure reliable reset. The 24-hour cycle counter 204 is always in work, but it will start counting from 0 again after the 24-hour count is full, and the count value produced is always consistent with the regular work start time value and the regular work end time stored in the nonvolatile memory 110 Value is compared in time comparator 208, will produce a timing start point to signal output when counting value and timing work start time value are equal, and turn into and do comparison operation with timing work end time value. When the count is equal to the timing end time value, a timing end point arrival signal output will be generated, and it will be converted into a comparison operation with the timing work starting point time value. These two signal lines will be connected to the PWM module 109 to trigger the PWM module to recalculate the PWM.

参见图5,图5为通信接口及芯片地址模块图, 4个地址编程管脚A0~A3分别连接到芯片地址模块301,芯片地址模块根据4个编程引脚可以确定芯片地址,4条引脚通过接电源VCC和接地的组合可以构成0除外的15个不同的地址,可以实现最大由15颗芯片构成主机芯片结构网络,芯片地址模块301连接易失存储器107,一旦芯片上电,将启动写入线,芯片地址模块301将向易失存储器107中对应的地址写入芯片的地址值,通信接口303与易失存储器107相连,通信端口对外的两个引脚是RX和TX,对外可连接主机、对内连接芯片内的通信接口303,通信接口303连接非易失存储器110。其工作原理如下:4个地址编程管脚A0~A3的对外连线通过电源VCC和地的接线组合形成的地址通过芯片地址模块301写入在易失存储器107内。通信的工作过程是:1)首先远程主机发送一个开始信号;2)然后远程主机发一个读信号读易失存储器107中的某一地址内的8位芯片地址值地址,然后通过通信接口303进行并串转换后返回到主机进行比较运算,主机已经预设了地址参数,如果比较后不相等,则退出通信,否则进行下一步。3)当比较结果相等时,可进行的控制操作有三个:非易失存储器的读或写、时间的校正。在任何一个控制操作的过程中,都对控制信号一直保持,直到下一个控制信号到来。如果是多条数据对非易失存储器的操作,需确定一个地址数做循环操作(不一定是连续得到地址),如果是校正时间的操作,则发送校准值到易失存储器,24小时循环计数器204将会被触发,实现校准时间。通信结束后,控制信号解除保持。通信接口做数据串并数据转换以及反过来的并串转换和数据传输通,控制信号的流向和保持,控制数据通信的方向。 See Figure 5, Figure 5 is a communication interface and chip address module diagram, the four address programming pins A0~A3 are respectively connected to the chip address module 301, the chip address module can determine the chip address according to the four programming pins, four pins By connecting the power supply VCC and grounding, 15 different addresses except 0 can be formed, and a maximum of 15 chips can be used to form a host chip structure network. The chip address module 301 is connected to the volatile memory 107. Once the chip is powered on, it will start writing Into the line, the chip address module 301 will write the address value of the chip to the corresponding address in the volatile memory 107, the communication interface 303 is connected with the volatile memory 107, and the two external pins of the communication port are RX and TX, which can be connected externally The host is internally connected to the communication interface 303 in the chip, and the communication interface 303 is connected to the non-volatile memory 110 . Its working principle is as follows: the external connection lines of the four address programming pins A0-A3 are written into the volatile memory 107 through the chip address module 301 through the combination of the power supply VCC and the ground connection. The working process of the communication is: 1) first the remote host sends a start signal; 2) then the remote host sends a read signal to read the 8-bit chip address value address in a certain address in the volatile memory 107, and then proceed through the communication interface 303 After parallel-to-serial conversion, return to the host for comparison operation. The host has preset address parameters. If they are not equal after comparison, exit the communication, otherwise proceed to the next step. 3) When the comparison results are equal, there are three possible control operations: reading or writing of the non-volatile memory, and time correction. During any control operation, the control signal is maintained until the next control signal arrives. If it is the operation of multiple pieces of data on the non-volatile memory, it is necessary to determine a number of addresses to do the cycle operation (not necessarily to obtain the address continuously), if it is the operation of correcting the time, send the calibration value to the volatile memory, 24-hour cycle counter 204 will be triggered to achieve the calibration time. After the communication is completed, the control signal is released from hold. The communication interface performs data serial-to-parallel data conversion and reverse parallel-to-serial conversion and data transmission, controls the flow and retention of signals, and controls the direction of data communication.

参见图6,图6为PWM模块原理图数字逻辑电路116通过读出线、地址线和数据线与非易失存储器110相连;数字逻辑电路116通过PWM周期改变信号线、地址线、数据线和读出线与PWM周期计数器113相连;数字逻辑电路116通过PWM脉宽改变信号线、地址线、数据线和读出线与PWM脉宽计数器112相连;数字逻辑电路116通过数据线、地址线和写入线与易失存储器107相连;PWM周期计数器113通过读出线、地址线和数据线与易失存储器10)相连;PWM脉宽计数器112通过读出线、地址线和数据线与易失存储器107相连;PWM周期计数器113通过读出线、地址线、数据线和(113)的计数溢出信号线与PWM脉宽计数器112相连;PWM脉宽计数器112的计数溢出信号线与PWM发生器114相连;PWM发生器114产生PWM信号输出。 Referring to FIG. 6, FIG. 6 is a schematic diagram of the PWM module . The digital logic circuit 116 is connected to the nonvolatile memory 110 through the readout line, the address line and the data line; the digital logic circuit 116 changes the signal line, the address line, and the data line through the PWM cycle. And readout line is connected with PWM period counter 113; Digital logic circuit 116 is connected with PWM pulse width counter 112 through PWM pulse width change signal line, address line, data line and readout line; Digital logic circuit 116 is connected through data line, address line and the writing line is connected with the volatile memory 107; the PWM period counter 113 is connected with the volatile memory 10) through the readout line, the address line and the data line; the PWM pulse width counter 112 is connected with the volatile memory through the readout line, the address line and the data line The PWM cycle counter 113 is connected with the PWM pulse width counter 112 by the count overflow signal line of the readout line, the address line, the data line and (113); the count overflow signal line of the PWM pulse width counter 112 is connected with the PWM generator 114 connected; PWM generator 114 generates PWM signal output.

5个控制信号:环境亮度变化信号、温度异常信号、定时起点到信号、定时终点到信号、LED并联支路异常信号分别传送到数字逻辑电路116,数字逻辑电路(116)执行以下步骤:PWM重新计算的请求根据工作安全级别其优先级顺序如下:1、LED并联支路异常信号,2、温度异常信号,3、定时起点到信号、定时终点到信号,4、环境亮度变化信号。PWM计算的算法描述如下:开始时,看哪个控制信号到来,如果没有任何控制信号,就按环境亮度数据做PWM计算,如果温度异常信号到来,但温度处于安全工作温度上限值,极限温度值之间,以反斜率方法作为占空比计算依据,当到达极限温度值时,PWM占空比为最小,无输出。当LED并联支路异常信号到来时,根据LED并联支路的断路数,计算占空比。如果定时起点到信号到来,读取要求的调光工作参数(如设定的市电电压或亮度指标),计算占空比。如果定时终点到信号到来,恢复常规的调光工作参数值,计算占空比,所以计算仍然适应环境光的变化,就是在环境光控制的占空比的基础上再次改变占空比。其PWM计算的实质是产生两个计数的值保存在易失存储器107中,只要计数值发生改变,就将触发对应的两个计数器112和113将要发生改变计数值的那个,他将从易失存储器107中读出对应的计数值而重新计数。PWM的产生由两个参数所确定,即脉冲周期和脉冲宽度,可由两个计数器PWM周期计数器113和PWM脉宽计数器112来得到,当112开始计数时,PWM脉冲开始产生,直到计数完毕,然后产生脉冲下降沿,并等待113计数结束,当113计数溢出后触发112开始重新计数,并且113也重新计数,进入下一周期的循环。5 control signals: environmental brightness change signal, temperature abnormal signal, timing start point arrival signal, timing end point arrival signal, LED parallel branch abnormal signal are sent to the digital logic circuit 116 respectively, and the digital logic circuit (116) executes the following steps: PWM reset The priority order of the calculation request is as follows according to the work safety level: 1. LED parallel branch abnormal signal, 2. Temperature abnormal signal, 3. Timing start point arrival signal, timing end point arrival signal, 4. Environmental brightness change signal. The algorithm of PWM calculation is described as follows: at the beginning, see which control signal arrives, if there is no control signal, do PWM calculation according to the ambient brightness data, if the abnormal temperature signal arrives, but the temperature is at the upper limit of safe working temperature, the limit temperature value Between, the reverse slope method is used as the calculation basis for the duty cycle. When the limit temperature is reached, the PWM duty cycle is the minimum and there is no output. When the abnormal signal of the LED parallel branch arrives, the duty cycle is calculated according to the number of open circuits of the LED parallel branch. If the signal arrives from the timing starting point, read the required dimming working parameters (such as the set mains voltage or brightness index), and calculate the duty cycle. If the signal arrives at the end of the timing, restore the normal dimming parameter value and calculate the duty cycle, so the calculation still adapts to the change of ambient light, which is to change the duty cycle again on the basis of the duty cycle of ambient light control. The essence of its PWM calculation is to generate two counted values and store them in the volatile memory 107. As long as the counted value changes, it will trigger the corresponding two counters 112 and 113, which will change the counted value. The corresponding count value is read out from the memory 107 and counted again. The generation of PWM is determined by two parameters, i.e. pulse period and pulse width, which can be obtained by two counters PWM period counter 113 and PWM pulse width counter 112. When 112 starts counting, the PWM pulse begins to generate until the counting is completed, and then Generate the falling edge of the pulse and wait for the end of 113 counting. When 113 counts overflow, trigger 112 to start counting again, and 113 also counts again to enter the cycle of the next cycle.

如果LED并联支路的路数少于芯片所设定的路数,多余的管脚要接正电源VCC。对于芯片地址的编程,要在PCB板上安装一个具有4路的单刀双掷跳线开关或拨码开关,按照不同的跳线接正电源或地,以实现地址编程的要求。芯片的地址确定好后,可以通过网络的方式控制芯片,通过通信接口的通信接口进行通信,设定定时时间和定时工作参数值可以在相同环境亮度下LED发出不同的亮度。可以网络实施和单独芯片实施,当单独芯片实施时,可以忽略芯片地址的设定。If the number of LED parallel branches is less than the number set by the chip, the extra pins should be connected to the positive power supply VCC. For the programming of the chip address, a 4-way SPDT jumper switch or DIP switch should be installed on the PCB, and the positive power or ground should be connected according to different jumpers to realize the address programming requirements. After the address of the chip is determined, the chip can be controlled through the network, communicate through the communication interface of the communication interface, set the timing time and timing work parameter values, and the LED can emit different brightness under the same ambient brightness. It can be implemented by network or by a single chip, and when implemented by a single chip, the setting of the chip address can be ignored.

Claims (10)

1.一种LED电源控制芯片,其特征在于它包括:信号测量模块、采样控制模块、通信接口、样本比较器、时钟及分频模块、芯片地址模块、易失存储器、非易失存储器、24小时循环计数器、LED并联支路断路数加法器、时间比较器、PWM模块,信号测量模块和采样控制模块相连,以建立采样的通道和获取采样数据;采样控制模块分别和样本比较器、易失存储器、PWM模块相连,样本比较器和非易失存储器相连,以和来自非易失存储器的样本数据进行比较并将所得结果保存于易失存储器,易失存储器和PWM模块相连,采样控制模块对环境亮度值与易失存储器中的所保存的当前值做比较,如果环境亮度值发生变化,采样控制模块将向PWM模块发送环境亮度变化信号;采样控制模块同时对所测量的温度值与非易失存储器中的设定值做比较,如果不在正常温度范围内,采样控制模块向PWM模块发送温度异常信号,非易失存储器和PWM模块相连,PWM模块提取存储在非易失存储器的参数,24小时循环计数器与时间比较器相连,时间比较器和非易失存储器、PWM模块相连,时间比较器用于和来自非易失存储器中的定时值进行比较,当有定时起点到或者定时终点到信号发生,时间比较器将启动与PWM模块的连接,以启动依据此条件的PWM计算;时钟分频模块与24小时循环计数器相连,芯片地址模块与易失存储器相连,将芯片地址存入其中,通信接口与易失存储器相连,以将芯片地址取回到远程主机;通信接口与24小时循环计数器相连是为了启动校正时间,通信接口与非易失存储器相连,是为了设置、修改参数或接收参数,LED并联支路断路数加法器与PWM模块、易失存储器相连,对所有的LED支路的并联断路状况做进位加法运算,如果LED并联支路出现异常,将进位加法运算结果送入易失存储器,并向PWM模块传送LED并联支路异常信号。1. A LED power supply control chip is characterized in that it comprises: a signal measurement module, a sampling control module, a communication interface, a sample comparator, a clock and a frequency division module, a chip address module, a volatile memory, a nonvolatile memory, 24 Hour cycle counter, LED parallel branch open circuit number adder, time comparator, PWM module, signal measurement module and sampling control module are connected to establish a sampling channel and obtain sampling data; the sampling control module is respectively connected to the sample comparator, volatile The memory is connected to the PWM module, the sample comparator is connected to the non-volatile memory, and the sample data from the non-volatile memory is compared and the result is stored in the volatile memory, the volatile memory is connected to the PWM module, and the sampling control module is connected to the The ambient brightness value is compared with the current value stored in the volatile memory. If the ambient brightness value changes, the sampling control module will send an ambient brightness change signal to the PWM module; the sampling control module will compare the measured temperature value with the non-volatile If it is not within the normal temperature range, the sampling control module sends a temperature abnormal signal to the PWM module, the non-volatile memory is connected to the PWM module, and the PWM module extracts the parameters stored in the non-volatile memory, 24 The hour cycle counter is connected to the time comparator, and the time comparator is connected to the non-volatile memory and the PWM module. The time comparator is used to compare with the timing value from the non-volatile memory. , the time comparator will start the connection with the PWM module to start the PWM calculation based on this condition; the clock frequency division module is connected with the 24-hour cycle counter, the chip address module is connected with the volatile memory, and the chip address is stored in it, and the communication interface It is connected with volatile memory to retrieve the chip address to the remote host; the communication interface is connected with the 24-hour cycle counter to start the calibration time, and the communication interface is connected with non-volatile memory to set, modify or receive parameters, LED The open circuit number adder of the parallel branch is connected with the PWM module and the volatile memory, and performs carry addition operation on the parallel open circuit status of all LED branches. If an abnormality occurs in the LED parallel branch, the result of the carry addition operation is sent to the volatile memory. And transmit the LED parallel branch abnormal signal to the PWM module. 2.如权利要求1所述的一种LED电源控制芯片,其特征在于:所述信号测量模块包括内置芯片的3个电阻,一个是标准精密电阻RS,一个是热敏电阻RT,一个是常规电阻R,RS和R通过通断控制模块(105)与采样控制模块(106)相连,热敏电阻RT通过与选通开关(104)相连后,通过通断控制模块(105)再与采样控制模块(106)相连,三个电阻的另一端则相连在一起,与一个芯片外的电容C1相连,C1的另一端接地。2. A LED power supply control chip as claimed in claim 1, characterized in that: said signal measurement module includes 3 resistors built into the chip, one is a standard precision resistor RS, one is a thermistor RT, and one is a conventional Resistors R, RS and R are connected to the sampling control module (106) through the on-off control module (105), and the thermistor RT is connected to the strobe switch (104) through the on-off control module (105) and then connected to the sampling control module (105). The modules (106) are connected, and the other ends of the three resistors are connected together, and connected to an off-chip capacitor C1, and the other end of C1 is grounded. 3.如权利要求2所述的一种LED电源控制芯片,其特征在于:光敏电阻RL放在芯片外,与芯片内的选通开关(104)相连后,再通过通断控制模块(105)与采样控制模块(106)相连。3. An LED power supply control chip according to claim 2, characterized in that: the photoresistor RL is placed outside the chip, connected to the gate switch (104) inside the chip, and then passed through the on-off control module (105) Connect with sampling control module (106). 4.如权利要求2所述的一种LED电源控制芯片,其特征在于:环境光电压信号V(t)通过选通开关(101)连接电阻R1,电阻R1分别与充电电容C2、比较器(102)的反相端相连、比较器(103)的同相端相连,比较器(103)的反相端接地构成一零比较器,参考电压Vf与比较器(102)的同相端相连,比较器(102)的输出连接至芯片的管脚B0,此管脚连接到采样控制模块(106),比较器(103)的输出连接至芯片的管脚B1,此管脚连接到采样控制模块(106),选通开关(101)的选通信号线通过芯片管脚B2连接到采样控制模块(106)。4. An LED power supply control chip according to claim 2, characterized in that: the ambient light voltage signal V(t) is connected to the resistor R1 through the strobe switch (101), and the resistor R1 is connected to the charging capacitor C2 and the comparator ( 102), the inverting terminal of the comparator (103) is connected, the inverting terminal of the comparator (103) is grounded to form a zero comparator, the reference voltage Vf is connected to the non-inverting terminal of the comparator (102), and the comparator The output of (102) is connected to the pin B0 of the chip, and this pin is connected to the sampling control module (106), and the output of the comparator (103) is connected to the pin B1 of the chip, and this pin is connected to the sampling control module (106 ), the strobe signal line of the strobe switch (101) is connected to the sampling control module (106) through the chip pin B2. 5.如权利要求1或2所述的一种LED电源控制芯片,其特征在于:它还设有备用电池充电模块,备用电池充电模块与时钟分频模块相连,以获得正确的时钟。5. A LED power supply control chip as claimed in claim 1 or 2, characterized in that it is also provided with a backup battery charging module, and the backup battery charging module is connected with the clock frequency division module to obtain a correct clock. 6.如权利要求5所述的一种LED电源控制芯片,其特征在于所述备用电池充电模块:主电源VCC经电阻R2连接到比较器(201)的同相端,比较器(201)的同相端经过R3接地,比较器(201)的输出端通过电阻R4连接到三极管Q的基极,Q的发射极通过二极管D2向电池BT充电,Q的集电极通过二极管D1与主电源VCC相连,Q的发射极通过电容C3与地相连,Q的发射极与电阻R6相连,然后通过R7与地相连,Q的基极通过电阻R5与地相连,Q的发射极与电阻R6相连,然后连接到比较器(201)的反相端抑获取反馈信号。6. A LED power supply control chip according to claim 5, characterized in that the backup battery charging module: the main power supply VCC is connected to the non-inverting terminal of the comparator (201) through a resistor R2, and the non-inverting terminal of the comparator (201) The terminal is grounded through R3, the output terminal of the comparator (201) is connected to the base of the transistor Q through the resistor R4, the emitter of Q charges the battery BT through the diode D2, and the collector of Q is connected to the main power supply VCC through the diode D1, Q The emitter of Q is connected to the ground through the capacitor C3, the emitter of Q is connected to the resistor R6, and then connected to the ground through R7, the base of Q is connected to the ground through the resistor R5, the emitter of Q is connected to the resistor R6, and then connected to the comparison The inverting terminal of the device (201) obtains the feedback signal. 7.如权利要求1或2所述的一种LED电源控制芯片,其特征在于所述芯片地址模块具有4个地址编程管脚A0~A3,4个地址编程管脚A0~A3分别连接到芯片地址模块(301),芯片地址模块的根据4个编程引脚可以确定芯片地址,4个地址编程管脚A0~A3通过接电源VCC和接地的组合可以构成0地址除外的15个不同的地址,可以实现最大由15颗芯片构成主机芯片结构网络。7. A LED power supply control chip as claimed in claim 1 or 2, characterized in that the chip address module has 4 address programming pins A0-A3, and the 4 address programming pins A0-A3 are respectively connected to the chip The address module (301), the chip address module can determine the chip address according to the 4 programming pins, and the 4 address programming pins A0~A3 can form 15 different addresses except the 0 address through the combination of the power supply VCC and the ground. It can realize a host chip structure network composed of up to 15 chips. 8.如权利要求1或2所述的一种LED电源控制芯片,其特征在于:芯片(100)具有24个管脚:主电源管脚VCC,备用电池电源管脚VCC1,地线GND,两个时钟管脚XTAL0和XTAL1,两个通信接口管脚RX和TX,对外可连接主机、对内连接芯片内的通信接口(303),4个地址编程管脚A0~A3,两个电阻比较采样管脚X0和X1,3个RC充放电采样管脚B0~B2,6个LED并联支路断路反馈信号管脚IO-0~IO-5。8. An LED power supply control chip as claimed in claim 1 or 2, characterized in that: the chip (100) has 24 pins: main power pin VCC, backup battery power pin VCC1, ground wire GND, two Two clock pins XTAL0 and XTAL1, two communication interface pins RX and TX, which can be connected to the host externally and internally connected to the communication interface (303) in the chip, 4 address programming pins A0~A3, and two resistors for comparison sampling Pins X0 and X1, 3 RC charge and discharge sampling pins B0~B2, 6 LED parallel branch circuit break feedback signal pins IO-0~IO-5. 9.如权利要求8所述的一种LED电源控制芯片,其特征在于:所述LED并联支路断路数加法器通过芯片管脚IO-0~IO-5连接LED并联支路的电压取样的电平信号,判断LED并联支路断路的总和。9. A LED power supply control chip as claimed in claim 8, characterized in that: said LED parallel branch open circuit number adder is connected to the voltage sampling of LED parallel branch through chip pins IO-0-IO-5 Level signal, judge the sum of LED parallel branch open circuit. 10.如权利要求1或2所述的一种LED电源控制芯片,其特征在于:所述PWM模块的数字逻辑电路(116)通过读出线、地址线和数据线与非易失存储器(110)相连;数字逻辑电路(116)通过PWM周期改变信号线、地址线、数据线和读出线与PWM周期计数器(113)相连,数字逻辑电路(116)通过PWM脉宽改变信号线、地址线、数据线和读出线与PWM脉宽计数器(112)相连;数字逻辑电路(116)通过数据线、地址线和写入线与易失存储器(107)相连;PWM周期计数器(113)通过读出线、地址线和数据线与易失存储器(107)相连;PWM脉宽计数器(112)通过读出线、地址线和数据线与易失存储器(107)相连;PWM周期计数器(113)通过读出线、地址线、数据线和(113)的计数溢出信号线与PWM脉宽计数器(112)相连;PWM脉宽计数器(112)相连的计数溢出信号线与PWM发生器(114)相连;(114)产生PWM信号输出。10. A kind of LED power supply control chip as claimed in claim 1 or 2, is characterized in that: the digital logic circuit (116) of described PWM module communicates with nonvolatile memory (110) through readout line, address line and data line ) is connected; the digital logic circuit (116) is connected to the PWM cycle counter (113) through the PWM cycle change signal line, address line, data line and readout line, and the digital logic circuit (116) changes the signal line and address line through the PWM pulse width , the data line and the readout line are connected with the PWM pulse width counter (112); the digital logic circuit (116) is connected with the volatile memory (107) through the data line, the address line and the write line; The outgoing line, the address line and the data line are connected with the volatile memory (107); the PWM pulse width counter (112) is connected with the volatile memory (107) through the readout line, the address line and the data line; the PWM cycle counter (113) is passed through The count overflow signal line of readout line, address line, data line and (113) is connected with PWM pulse width counter (112); the count overflow signal line connected with PWM pulse width counter (112) is connected with PWM generator (114); (114) Generate PWM signal output.
CN2010205407064U 2010-09-25 2010-09-25 Control chip of light emitting diode (LED) power supply Expired - Lifetime CN201995160U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010205407064U CN201995160U (en) 2010-09-25 2010-09-25 Control chip of light emitting diode (LED) power supply

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010205407064U CN201995160U (en) 2010-09-25 2010-09-25 Control chip of light emitting diode (LED) power supply

Publications (1)

Publication Number Publication Date
CN201995160U true CN201995160U (en) 2011-09-28

Family

ID=44671633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010205407064U Expired - Lifetime CN201995160U (en) 2010-09-25 2010-09-25 Control chip of light emitting diode (LED) power supply

Country Status (1)

Country Link
CN (1) CN201995160U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113960A (en) * 2013-04-19 2014-10-22 硅工厂股份有限公司 Led Lighting Device And Led Lighting Control Method
CN104125671A (en) * 2013-04-24 2014-10-29 鸿富锦精密工业(武汉)有限公司 Illuminating apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113960A (en) * 2013-04-19 2014-10-22 硅工厂股份有限公司 Led Lighting Device And Led Lighting Control Method
CN104125671A (en) * 2013-04-24 2014-10-29 鸿富锦精密工业(武汉)有限公司 Illuminating apparatus

Similar Documents

Publication Publication Date Title
US20010009361A1 (en) Method for monitoring operating parameters of a rechargeable power supply
US10114080B2 (en) LED lighting device and a method to verify its lifespan
CN201303252Y (en) Intelligent battery management solar charge controller
CN101915598B (en) A kind of header of low-power-consumption network intelligent water meter and using method thereof
US6137264A (en) Battery pack
US20220155125A1 (en) M-bus receiving circuit and m-bus-based 4g water meter collector
CN102930877B (en) Digital monitoring system suitable for light module controller and implementation method of digital monitoring system
CN204313883U (en) A kind of Handheld soil multi-parameter measurer based on SDI-12 agreement
CN201995160U (en) Control chip of light emitting diode (LED) power supply
CN201134958Y (en) Solar controlling circuit
CN206117240U (en) Lithium cell safety quick charge circuit from discernment input source
CN101977464B (en) LED power control chip
CN103822667A (en) Temperature-humidity acquisition system based on Bluetooth technology
CN202738216U (en) Automatic induction light modulation apparatus
CN101034137B (en) Battery cut-off discharge voltage measurement and correction method
CN205209646U (en) Novel temperature measuring circuit
CN102621378A (en) Ultralow-power-consumption method for measuring voltage of power supply by RC (Resistor-Capacitor) integral
CN212410692U (en) Distribution line loss acquisition module and system
CN103582249B (en) Electric portable lamp and control method with Source Current Control device
CN109470378B (en) A method for preventing false detection of failure, AD detection circuit and electronic equipment
CN207098640U (en) A kind of USB safe chargings monitoring for protection instrument
CN109613969A (en) SSD power supply circuit, capacitance management method, system, device and storage medium
CN116488276A (en) battery management chip
US11114705B2 (en) Current measurement and voltage control approach
CN205449233U (en) A Turbine Flowmeter Calibration Power Automatic Identification Circuit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20110928

Effective date of abandoning: 20140115

AV01 Patent right actively abandoned

Granted publication date: 20110928

Effective date of abandoning: 20140115

RGAV Abandon patent right to avoid regrant