CN201995160U - Control chip of light emitting diode (LED) power supply - Google Patents
Control chip of light emitting diode (LED) power supply Download PDFInfo
- 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
Links
- 238000005070 sampling Methods 0.000 claims abstract description 58
- 238000004891 communication Methods 0.000 claims abstract description 38
- 238000005259 measurement Methods 0.000 claims abstract description 13
- 230000002159 abnormal effect Effects 0.000 claims description 17
- 238000004364 calculation method Methods 0.000 claims description 17
- 239000003990 capacitor Substances 0.000 claims description 13
- 102100039435 C-X-C motif chemokine 17 Human genes 0.000 claims description 5
- 101000889048 Homo sapiens C-X-C motif chemokine 17 Proteins 0.000 claims description 5
- 239000000284 extract Substances 0.000 claims description 2
- 230000005856 abnormality Effects 0.000 claims 1
- 238000006243 chemical reaction Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 10
- 238000000034 method Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000012937 correction Methods 0.000 description 3
- 238000013139 quantization Methods 0.000 description 3
- 238000009529 body temperature measurement Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000000691 measurement method Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 102100040862 Dual specificity protein kinase CLK1 Human genes 0.000 description 1
- 101000749294 Homo sapiens Dual specificity protein kinase CLK1 Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control 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模块、易失存储器相连,本实用新型可以简单地实现模数转换,不需要在芯片嵌入模拟电路,以最可能地减少成本,芯片既可以单独使用,也可以组网使用。
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.
Description
技术领域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
参见图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
)以测量电阻的方式获得环境光信号,如测量光敏电阻或者光敏二极管电阻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
)以测量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
数据采样流程,其功能包括:1)将连接具有采样的确定的标准量化值的非易失存储器110,这个数据不能丢失,可以通过通信接口编程改写,这个存储器需要是非易失的,对采样控制模块来讲是只读的。2)当采用电阻比较法进行采样时,对温度信号和环境光信号二路采样时控制通道切换,确定采样的间隔时间,对通断控制模块105进行控制。3)对权利所述的两种采样的方法都要求测试电容C1或者C2的充电或放电时间,查表与存储在非易失存储器110中的标准量化值做比较,如数据落在所确定的范围内,则将数据送至易失存储器107,如果采样的是环境亮度信号,则与当前所确定PWM信号的环境亮度值做比较,如果不同将启动与PWM模块连接的环境亮度变化信号;如果采样的是温度信号,则与非易失存储器中的设定值做比较,如果不在正常范围内,将启动与PWM模块连接的温度异常信号。输出驱动模块111是对PWM信号进行驱动放大后输出。 The data sampling process , its functions include: 1) Connect the
多路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
图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
其工作原理是: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
备用电池BT为芯片内的时钟发生模块202、多路分频模块203、24小时循环计数器204、非易失存储器110、断电重启定时器207提供电源VCC1。除此外片内其他模块由主电源VCC供电,可保证主电源VCC掉电后备用电池无切换地工作。时钟发生模块202、多路分频模块203为常规的电路模块,其中多路分频提供几个工作时钟,其中一个是满足24小时循环计时器的1HZ时钟,还有全局运行时钟。The backup battery BT provides power VCC1 for the
芯片由主电源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
电容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
参见图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
参见图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
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
如果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)
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)
| 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 |
-
2010
- 2010-09-25 CN CN2010205407064U patent/CN201995160U/en not_active Expired - Lifetime
Cited By (2)
| 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 |