CN109168230B - LED drive control device and method using voltage pulse - Google Patents

LED drive control device and method using voltage pulse Download PDF

Info

Publication number
CN109168230B
CN109168230B CN201811366653.6A CN201811366653A CN109168230B CN 109168230 B CN109168230 B CN 109168230B CN 201811366653 A CN201811366653 A CN 201811366653A CN 109168230 B CN109168230 B CN 109168230B
Authority
CN
China
Prior art keywords
voltage
circuit
output
voltage pulse
transistor
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.)
Active
Application number
CN201811366653.6A
Other languages
Chinese (zh)
Other versions
CN109168230A (en
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.)
Xian University of Electronic Science and Technology
Original Assignee
Xian University of Electronic Science and Technology
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 Xian University of Electronic Science and Technology filed Critical Xian University of Electronic Science and Technology
Priority to CN201811366653.6A priority Critical patent/CN109168230B/en
Publication of CN109168230A publication Critical patent/CN109168230A/en
Application granted granted Critical
Publication of CN109168230B publication Critical patent/CN109168230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • 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/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention discloses a kind of LED drive dynamic control device and method using voltage pulse, drive dynamic control device includes four single-chip microcontroller master control borad, reference circuit, comparison amplifier circuit and digital information parser circuitry parts.Data controlling signal is stored in single-chip microcontroller master control borad with voltage pulse pattern, it is output in reference circuit after connecting external power and obtains a reference voltage value and voltage pulse partial pressure and be input in comparison amplifier circuit to be compared, obtained output voltage pulse input parse simultaneously output driving LED light into digital information parser circuitry.Power supply signal and data controlling signal are combined into one by the present invention using voltage pulse, reduce the complexity of chip design, the complexity of periphery circuit design, and reduce the cost of laying out pattern design, are convenient for the later period integrated and cascade to use.

Description

采用电压脉冲的LED驱动控制装置及方法LED drive control device and method using voltage pulse

技术领域technical field

本发明属于电子技术领域,更进一步涉及电子器件技术领域中的一种采用电压脉冲的发光二极管LED(Light Emitting Diode)驱动控制装置及方法。本发明的LED驱动控制电路可用于数模混合电路设计中驱动LED装置。The invention belongs to the technical field of electronics, and further relates to a light emitting diode (Light Emitting Diode) drive control device and method using voltage pulses in the technical field of electronic devices. The LED drive control circuit of the present invention can be used in the design of a digital-analog hybrid circuit to drive an LED device.

背景技术Background technique

在装饰照明LED驱动控制电路中,数模混合电路设计LED驱动控制电路有着广泛的应用,例如通过使用数字控制逻辑信号控制LED灯串等。传统LED驱动电路中电源信号和数字控制数据信号分别为两路输入,这种驱动控制电路设计简单,电源信号直接由外部提供,作为电路电源单独使用,而数据控制信号由外界输入后到驱动控制电路中解析使用。In decorative lighting LED drive control circuits, digital-analog hybrid circuit design LED drive control circuits have a wide range of applications, such as controlling LED light strings by using digital control logic signals. In the traditional LED drive circuit, the power signal and the digital control data signal are respectively input by two channels. The design of this drive control circuit is simple, and the power signal is directly provided by the outside, which is used alone as the circuit power supply, while the data control signal is input from the outside to the drive control. Analytical use in the circuit.

上海晶丰明源半导体有限公司在其申请的专利文献“驱动芯片、LED恒流驱动控制电路及LED驱动方法”(申请号:201510893776.5授权公告号:CN105430794 B)中公开了一种驱动芯片、LED驱动控制电路及LED驱动方法。该专利文献的LED驱动控制电路包括用于产生VCC电压的电压控制模块;用于产生一相对于所述驱动芯片的CS引脚的基准电压的基准源;用于输出一恒定电压的采样保持电路;用于比较采样保持电路输出与一MOS管的源极的比较器;用于电路控制的控制逻辑模块和用于检测驱动芯片的DRAIN引脚和所述MOS管漏极的过零检测模块,该电路实现了LED恒流驱动控制。但是该电路仍然存在的不足之处是:该电路中通过独立的电压控制模块和电路控制逻辑模块实现电路设计,使得电路结构较为复杂。该专利文献的LED驱动方法通过驱动芯片的VCC引脚连接一外部电源,控制逻辑模块发送导通信号至MOS管,控制逻辑模块发送关断信号至开关,以使得MOS管导通,开关断开。该方法存在的不足之处是,用于电路控制的控制逻辑模块需要外部输入,导通信号和关断信号分开使用,增加了电路设计成本。Shanghai Jingfeng Mingyuan Semiconductor Co., Ltd. discloses a driver chip, LED A driving control circuit and an LED driving method. The LED drive control circuit of this patent document includes a voltage control module for generating a VCC voltage; a reference source for generating a reference voltage relative to the CS pin of the driver chip; a sample-and-hold circuit for outputting a constant voltage ; A comparator for comparing the output of the sampling and holding circuit with the source of a MOS tube; a control logic module for circuit control and a zero-crossing detection module for detecting the DRAIN pin of the driving chip and the drain of the MOS tube, This circuit realizes LED constant current drive control. However, the disadvantage of this circuit is that the circuit design is realized through an independent voltage control module and a circuit control logic module, which makes the circuit structure more complicated. In the LED driving method of this patent document, the VCC pin of the driver chip is connected to an external power supply, the control logic module sends a turn-on signal to the MOS tube, and the control logic module sends a turn-off signal to the switch, so that the MOS tube is turned on and the switch is turned off. . The disadvantage of this method is that the control logic module used for circuit control needs an external input, and the on-signal and off-signal are used separately, which increases the cost of circuit design.

广州达森灯光股份有限公司在其申请的专利文献“一种LED驱动电源电路”(申请号:201511034938.6授权公告号:CN105657891 B)中公开了一种LED驱动电源电路。该专利文献的LED驱动电源电路主要包括依次与外部交流电连接的电源模块、控制模块、驱动模块以及发光模块,其中电源模块给控制模块、驱动模块和发光模块提供直流工作电压。该发明提供了一种LED驱动电源电路的设计方案,解决了目前农业照明灯具光源单一的不足,通过驱动电路上的LED恒流控制IC芯片,实现将恒压源转换成适合LED灯珠的恒流源,能够延长LED灯珠的寿命,但是,该专利技术仍然存在的不足之处是,同样需要独立的电源模块和控制模块来驱动整个LED驱动电源电路,使得电路结构较为复杂。Guangzhou Dasen Lighting Co., Ltd. discloses an LED drive power circuit in its patent document "A LED drive power circuit" (application number: 201511034938.6 authorized announcement number: CN105657891 B). The LED driving power supply circuit of this patent document mainly includes a power supply module, a control module, a driving module and a light emitting module which are sequentially connected to an external alternating current, wherein the power supply module provides a DC working voltage to the control module, the driving module and the light emitting module. This invention provides a design scheme of LED driving power supply circuit, which solves the problem of single light source for agricultural lighting lamps. Through the LED constant current control IC chip on the driving circuit, the constant voltage source can be converted into a constant voltage suitable for LED lamp beads. The current source can prolong the life of the LED lamp bead, but the disadvantage of this patented technology is that an independent power module and control module are also required to drive the entire LED driving power circuit, which makes the circuit structure more complicated.

深圳市海洋王照明工程有限公司在其申请的专利文献“LED驱动电路”(申请号:201310076659.0授权公告号:CN104053267 B)中公开了一种LED驱动电路。该专利技术主要包括用于输出稳定电压的供电单元;用于设定一延时时间并进行延时控制的微控制单元;继电器;用于根据微控制电路的输出信号控制所述继电器的通断的开关电路;与所述继电器及所述供电单元连接的分压电路;与所述LED驱动芯片电路连接的LED负载。该发明通过所述微控制器单元设定的延时时间后,虽然LED产生光衰,但是通过由微控制器单元、继电器、以及开关电路的控制,使LED看上去没有光衰,实现LED无光衰,但是,该专利技术仍然存在的不足之处是,需要独立的供电单元和微控制器单元,使得电路结构较为复杂。Shenzhen Ocean King Lighting Engineering Co., Ltd. discloses an LED drive circuit in its patent document "LED drive circuit" (application number: 201310076659.0 authorized announcement number: CN104053267 B). The patented technology mainly includes a power supply unit for outputting a stable voltage; a micro-control unit for setting a delay time and performing delay control; a relay; for controlling the on-off of the relay according to the output signal of the micro-control circuit A switch circuit; a voltage divider circuit connected to the relay and the power supply unit; an LED load connected to the LED driver chip circuit. In this invention, after the delay time set by the microcontroller unit, although the LED produces light decay, the LED appears to have no light decay through the control of the microcontroller unit, the relay, and the switch circuit, and realizes that the LED has no light decay. Light attenuation, however, the disadvantage of this patented technology is that an independent power supply unit and microcontroller unit are required, which makes the circuit structure more complicated.

发明内容Contents of the invention

本发明的目的在于克服上述现有技术的不足,提供一种采用电压脉冲的LED驱动控制装置及方法。The object of the present invention is to overcome the shortcomings of the above-mentioned prior art, and provide an LED drive control device and method using voltage pulses.

实现本发明目的的具体思路是,采用单片机主控板将控制信号以电压脉冲的方式输出到LED驱动控制电路中,不仅可以减少一路输入,而且电路结构简单。The specific idea of realizing the object of the present invention is that the control signal is output to the LED drive control circuit in the form of voltage pulse by using the single-chip main control board, which not only can reduce one input, but also has a simple circuit structure.

本发明的装置包括基准电路、比较放大器电路,单片机主控板、数字信息解析电路;所述单片机主控板的输入端接外电源,输出端分别与基准电路的输入端、比较放大器电路的第一输入端、数字信息解析电路的输入端连接;所述基准电路的输出端与比较放大器电路的第二输入端相连;所述比较放大器电路的输出端与数字信息解析电路的输入端相连;其中,The device of the present invention comprises a reference circuit, a comparative amplifier circuit, a main control board of a single-chip microcomputer, and a digital information analysis circuit; the input terminal of the main control board of the single-chip microcomputer is connected to an external power supply, and the output terminal is respectively connected to the input terminal of the reference circuit and the first part of the comparative amplifier circuit. An input terminal is connected to the input terminal of the digital information analysis circuit; the output terminal of the reference circuit is connected to the second input terminal of the comparative amplifier circuit; the output terminal of the comparative amplifier circuit is connected to the input terminal of the digital information analysis circuit; wherein ,

所述单片机主控板,用于构建由高低两个不同幅度的电压值组成的电压脉冲,并同时将电压脉冲输出到基准电路、比较放大器电路、数字信息解析电路中;The single-chip main control board is used to construct a voltage pulse composed of two voltage values with different amplitudes, high and low, and simultaneously output the voltage pulse to the reference circuit, the comparison amplifier circuit, and the digital information analysis circuit;

所述基准电路,用于通过自启动电路部分的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路,将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端;The reference circuit is used to provide a bias voltage for the reference circuit through the voltages of the first output terminal and the second output terminal of the self-starting circuit part, trigger the reference circuit to work, and the reference circuit can satisfy the input of 3V and 5V through the power supply suppression relatively high Output stable cascode structure amplifier circuit when power supply, output the input voltage pulse as a relatively stable reference voltage value between the voltage pulses divided by the voltage dividing resistor, and input the reference voltage value to the comparison amplifier a second input terminal of the circuit;

所述比较放大器电路,用于将单片机主控板输出的电压脉冲用分压电阻,分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路将输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,比较放大器的输出电压脉冲为数字信息解析电路可以识别的电压脉冲;The comparative amplifier circuit is used to divide the voltage pulse output by the main control board of the single-chip microcomputer into pulse voltages on both sides of the reference voltage value output by the reference circuit, and input it to the first input terminal of the comparative amplifier circuit, The reference circuit inputs the output reference voltage value to the second input terminal of the comparative amplifier circuit, and performs comparison through the comparative amplifier circuit, if the voltage value of the second input terminal of the comparative amplifier circuit is greater than the voltage value of the first input terminal of the comparative amplifier circuit, The output is the high voltage value in the voltage pulse. If the voltage value of the second input terminal of the comparative amplifier circuit is less than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a digital ground potential, and the output voltage pulse of the comparative amplifier is a digital information analysis circuit. Recognizable voltage pulses;

所述数字信息解析电路,用于将比较放大器电路输出的电压脉冲,输入到数字信息解析电路中,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The digital information analysis circuit is used to input the voltage pulse output by the comparative amplifier circuit into the digital information analysis circuit, and the counter in the digital information analysis circuit compares the high voltage value and the low voltage value within a voltage pulse cycle time length Counting, the number of high voltage values is greater than the number of low voltage values in a voltage pulse cycle, the output is a high voltage value, and the LED light is turned on, the count of high voltage values is less than the count of low voltage values in a cycle, and the output is power ground, The drive LED light is off.

本发明方法的具体步骤包括如下:The concrete steps of the inventive method comprise as follows:

(1)构建电压脉冲:(1) Build a voltage pulse:

(1a)用高低两个不同幅度的电压值组成电压脉冲,将高电压值维持的时间长度和低电压值维持的时间长度组成一个电压脉冲周期,按照下式,单片机主控板计算高电压值在一个电压脉冲周期内的占空比:(1a) Voltage pulses are composed of two voltage values with different amplitudes, high and low, and the duration of maintaining the high voltage value and the duration of maintaining the low voltage value form a voltage pulse cycle. According to the following formula, the MCU main control board calculates the high voltage value Duty cycle within one voltage pulse period:

其中,q1表示高电压值在一个电压脉冲周期内的占空比,τ表示高电压值在电压脉冲周期内占据的时间长度,T表示电压脉冲周期的时间长度。Among them, q1 represents the duty ratio of the high voltage value in a voltage pulse cycle, τ represents the time length occupied by the high voltage value in the voltage pulse cycle, and T represents the time length of the voltage pulse cycle.

(1b)用1-q1的值表示低电压值在一个电压脉冲周期内的占空比。(1b) Use the value of 1-q 1 to represent the duty cycle of the low voltage value in a voltage pulse period.

(1c)单片机主控板将高电压值在一个电压脉冲周期内的占空比,大于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“1”,单片机主控板将高电压值在一个电压脉冲周期内的占空比,小于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“0”。(1c) The main control board of the single-chip microcomputer expresses the voltage pulse when the duty cycle of the high voltage value in a voltage pulse cycle is greater than the duty cycle of the low voltage value in a voltage pulse cycle as a binary "1". The control board expresses the duty ratio of the high voltage value within one voltage pulse period as a binary "0" when the voltage pulse is smaller than the duty ratio of the low voltage value within one voltage pulse period.

(1d)单片机主控板将由高低两个不同幅度的电压值组成的电压脉冲以二进制的方式,存储于单片机主控板的存储器中。(1d) The main control board of the single-chip microcomputer stores the voltage pulse composed of two voltage values with different amplitudes, high and low, in the memory of the main control board of the single-chip microcomputer in binary form.

(2)输出电压脉冲:(2) Output voltage pulse:

(2a)将单片机主控板接入外电源,单片机主控板输出电压脉冲,电压脉冲启动基准电路中的自启动电路,通过自启动电路的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路开始工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端。(2a) Connect the main control board of the single-chip microcomputer to the external power supply, the main control board of the single-chip microcomputer outputs a voltage pulse, and the voltage pulse starts the self-starting circuit in the reference circuit, and the voltage through the first output terminal and the second output terminal of the self-starting circuit is the reference circuit The bias voltage is provided to trigger the reference circuit to start working. The reference circuit outputs the input voltage pulse as a voltage dividing resistor through a cascode structure amplifier circuit with a relatively high power supply rejection and a stable output when inputting 3V and 5V power supplies. The relatively stable reference voltage value between the divided voltage pulses is input to the second input end of the comparison amplifier circuit.

(2b)将单片机主控板输出的电压脉冲用分压电阻分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,此时得到的输出电压脉冲为数字信息解析电路可以识别的电压脉冲。(2b) The voltage pulse output by the main control board of the single-chip microcomputer is divided into pulse voltages on both sides of the reference voltage value output by the reference circuit with a voltage dividing resistor, and input to the first input terminal of the comparative amplifier circuit, and the reference voltage output by the reference circuit The value is input to the second input terminal in the comparative amplifier circuit, and compared by the comparative amplifier circuit, if the voltage value of the second input terminal of the comparative amplifier circuit is greater than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a high voltage pulse Voltage value, if the voltage value of the second input terminal of the comparative amplifier circuit is smaller than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a digital ground potential, and the output voltage pulse obtained at this time is a voltage pulse that can be recognized by the digital information analysis circuit.

(3)解析电压脉冲:(3) Analyze the voltage pulse:

将比较放大器电路输出的电压脉冲输入到数字信息解析电路,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The voltage pulse output by the comparative amplifier circuit is input to the digital information analysis circuit, and the counter in the digital information analysis circuit counts the high voltage value and the low voltage value within one voltage pulse cycle time length, and the high voltage value within one voltage pulse cycle The number of values is greater than the number of low voltage values, the output is a high voltage value, and the LED light is turned on. In one cycle, the count of the high voltage value is less than the count of the low voltage value, and the output is the power ground, and the LED light is turned off.

与现有技术相比,本发明具有如下优点:Compared with prior art, the present invention has following advantage:

第一,由于本发明的装置采用单片机主控板将控制信息以电压脉冲方式储存,并将电压脉冲同时输入到基准电路、比较放大器电路、数字信息解析电路中,相对于其他芯片设计,本发明减少了控制数据输入的电路装置,克服了现有技术中控制数据需要另外的模块输入比较复杂的缺点,使得本发明的LED驱动控制电路在芯片设计中能够减小设计的复杂程度。First, because the device of the present invention adopts the single-chip main control board to store the control information in the form of voltage pulses, and simultaneously inputs the voltage pulses into the reference circuit, the comparison amplifier circuit, and the digital information analysis circuit, compared with other chip designs, the present invention The circuit device for controlling data input is reduced, and the disadvantage in the prior art that control data requires additional module input is relatively complicated, so that the LED driving control circuit of the present invention can reduce the complexity of design in chip design.

第二,由于本发明的方法采用控制数据与电源电压共用一个输入端口,通过单片机主控板将控制数据以电压脉冲的方式直接输入到LED驱动控制电路中,同时可以通过对电压脉冲的编辑改进实现对控制数据的改变,实现了通过一个输入端口直接输入驱动LED驱动控制电路,克服了现有技术中需要另外的控制模块对控制数据进行编辑存储并输入到LED驱动控制电路中,导致电路设计方法比较复杂的缺点,使得本发明的采用电压脉冲的LED驱动控制方法更简洁方便。Second, because the method of the present invention uses the control data and the power supply voltage to share an input port, the control data is directly input into the LED drive control circuit in the form of voltage pulses through the main control board of the single-chip microcomputer, and at the same time, it can be improved by editing the voltage pulses. Realize the change of the control data, and realize the direct input to drive the LED drive control circuit through an input port, which overcomes the need for another control module in the prior art to edit and store the control data and input it into the LED drive control circuit, which leads to circuit design. The disadvantage of relatively complicated methods makes the LED drive control method using voltage pulses more concise and convenient in the present invention.

附图说明Description of drawings

图1为本发明采用电压脉冲的LED驱动控制装置方框图;Fig. 1 is the block diagram of LED drive control device adopting voltage pulse of the present invention;

图2为本发明基准电路的电原理图;Fig. 2 is the electrical schematic diagram of reference circuit of the present invention;

图3为本发明比较放大器电路的电原理图;Fig. 3 is the electrical schematic diagram of the comparison amplifier circuit of the present invention;

图4为本发明实施例中电压脉冲在各模块中示意图。Fig. 4 is a schematic diagram of voltage pulses in each module in the embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明做进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

参照附图1,对本发明的装置做进一步的描述。With reference to accompanying drawing 1, the device of the present invention is further described.

本发明的装置包括基准电路、比较放大器电路,还包括单片机主控板、数字信息解析电路;所述单片机主控板的输入端接外电源,输出端分别与基准电路的输入端、比较放大器电路的第一输入端、数字信息解析电路的输入端连接;所述基准电路的输出端与比较放大器电路的第二输入端相连;所述比较放大器电路的输出端与数字信息解析电路的输入端相连。其中:The device of the present invention comprises a reference circuit, a comparative amplifier circuit, and also includes a single-chip microcomputer main control board and a digital information analysis circuit; the input terminal of the single-chip microcomputer main control board is connected to an external power supply, and the output terminal is respectively connected to the input terminal of the reference circuit and the comparison amplifier circuit. The first input end of the digital information analysis circuit is connected; the output end of the reference circuit is connected with the second input end of the comparison amplifier circuit; the output end of the comparison amplifier circuit is connected with the input end of the digital information analysis circuit . in:

所述单片机主控板,用于构建由高低两个不同幅度的电压值组成的电压脉冲,并同时将电压脉冲输出到基准电路、比较放大器电路、数字信息解析电路中。The single-chip main control board is used to construct a voltage pulse composed of high and low voltage values with different amplitudes, and simultaneously output the voltage pulse to a reference circuit, a comparison amplifier circuit, and a digital information analysis circuit.

所述基准电路,用于通过自启动电路部分的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路,将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端。The reference circuit is used to provide a bias voltage for the reference circuit through the voltages of the first output terminal and the second output terminal of the self-starting circuit part, trigger the reference circuit to work, and the reference circuit can satisfy the input of 3V and 5V through the power supply suppression relatively high Output stable cascode structure amplifier circuit when power supply, output the input voltage pulse as a relatively stable reference voltage value between the voltage pulses divided by the voltage dividing resistor, and input the reference voltage value to the comparison amplifier the second input of the circuit.

所述比较放大器电路,用于将单片机主控板输出的电压脉冲用分压电阻,分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路将输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,比较放大器的输出电压脉冲为数字信息解析电路可以识别的电压脉冲。The comparative amplifier circuit is used to divide the voltage pulse output by the main control board of the single-chip microcomputer into pulse voltages on both sides of the reference voltage value output by the reference circuit, and input it to the first input terminal of the comparative amplifier circuit, The reference circuit inputs the output reference voltage value to the second input terminal of the comparative amplifier circuit, and performs comparison through the comparative amplifier circuit, if the voltage value of the second input terminal of the comparative amplifier circuit is greater than the voltage value of the first input terminal of the comparative amplifier circuit, The output is the high voltage value in the voltage pulse. If the voltage value of the second input terminal of the comparative amplifier circuit is less than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a digital ground potential, and the output voltage pulse of the comparative amplifier is a digital information analysis circuit. Recognizable voltage pulses.

所述数字信息解析电路,用于将比较放大器电路输出的电压脉冲,输入到数字信息解析电路中,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The digital information analysis circuit is used to input the voltage pulse output by the comparative amplifier circuit into the digital information analysis circuit, and the counter in the digital information analysis circuit compares the high voltage value and the low voltage value within a voltage pulse cycle time length Counting, the number of high voltage values is greater than the number of low voltage values in a voltage pulse cycle, the output is a high voltage value, and the LED light is turned on, the count of high voltage values is less than the count of low voltage values in a cycle, and the output is power ground, The drive LED light is off.

参考附图2,对本发明的基准电路做进一步的描述。Referring to Fig. 2, the reference circuit of the present invention will be further described.

基准电路包括自启动电路部分和基准电路部分,包括九个PMOS管、七个NMOS管、三个分压电阻、五个PNP双极型晶体管和一个自启动电路;其中,第一个PMOS管M1的源极与单片机主控板的输出端相连,第一个PMOS管M1的栅极分别与第二个PMOS管M2的漏极、第一个NMOS管M3的漏极、自启动电路的第一输出端、第三个PMOS管M5的栅极、第六个PMOS管M12的栅极、第八个PMOS管M15的栅极连接,第一个PMOS管M1的漏极与第二个PMOS管M2的源极相连;第二个PMOS管M2的栅极分别与第四个PMOS管M6的栅极、第五个PMOS管M9的栅极、第五个PMOS管M9的漏极、第五个NMOS管M10的漏极、第七个PMOS管M13的栅极、第九个PMOS管M16的栅极、自启动电路的第二输出端连接;第一个NMOS管M3的栅极分别与第三个NMOS管M7的栅极、第五个NMOS管M10的栅极、第七个NMOS管M14的栅极、第七个NMOS管M14的漏极、第七个PMOS管M13的漏极连接,第一个NMOS管M3的源极与第二个NMOS管M4的漏极相连;第二个NMOS管M4的栅极分别与第四个NMOS管M8的栅极、第六个NMOS管M11的栅极、第三个NMOS管M7的漏极、第四个PMOS管M6的漏极连接,第二个NMOS管M4的源极与第一个分压电阻R1的一端相连;第一个分压电阻R1的另一端与第一个PNP双极型三极管Q1的发射极相连;第一个PNP双极型三极管Q1的基极和第一个PNP双极型三极管Q1的集电极分别与电源地连接;第三个PMOS管M5的源极与单片机主控板的输出端相连,第三个PMOS管M5的漏极与第四个PMOS管M6的源极相连;第三个NMOS管M7的源极与第四个NMOS管M8的漏极相连;第四个NMOS管M8的源极与第二个PNP双极型三极管Q2的发射极相连;第二个PNP双极型三极管Q2的基极和第二个PNP双极型三极管Q2的集电极分别与电源地连接;第五个PMOS管M9的源极与单片机主控板的输出端相连;第五个NMOS管M10的源极与第六个NMOS管M11的漏极相连;第六个NMOS管M11的源极与第三个PNP双极型三极管Q3的发射极相连;第三个PNP双极型三极管Q3的基极和第三个PNP双极型三极管Q3的集电极分别与电源地连接;第六个PMOS管M12的源极与单片机主控板的输出端相连,第六个PMOS管M12的漏极与第七个PMOS管M13的源极相连;第七个NMOS管M14的源极与第四个PNP双极型三极管Q4的发射极相连;第四个PNP双极型三极管Q4的基极和第四个PNP双极型三极管Q4的集电极分别与电源地连接;第八个PMOS管M15的源极与单片机主控板的输出端相连,第八个PMOS管M15的漏极与第九个PMOS管M16的源极相连;第九个PMOS管M16的漏极分别与第二个分压电阻R2的一端、第三个分压电阻R3的一端连接;第二个分压电阻R2的另一端与第五个PNP双极型三极管Q5的发射极相连;第五个PNP双极型三极管Q5的基极和第五个PNP双极型三极管Q5的集电极分别与电源地连接;第三个分压电阻R3的另一端分别与电容C的一端、比较放大器电路中第二个NMOS管M20的栅极连接;电容C的另一端与电源地连接。The reference circuit includes a self-starting circuit part and a reference circuit part, including nine PMOS transistors, seven NMOS transistors, three voltage dividing resistors, five PNP bipolar transistors and a self-starting circuit; among them, the first PMOS transistor M1 The source of the MCU is connected to the output terminal of the main control board of the single-chip microcomputer, and the gate of the first PMOS transistor M1 is respectively connected to the drain of the second PMOS transistor M2, the drain of the first NMOS transistor M3, and the first gate of the self-starting circuit. The output terminal, the gate of the third PMOS transistor M5, the gate of the sixth PMOS transistor M12, and the gate of the eighth PMOS transistor M15 are connected, and the drain of the first PMOS transistor M1 is connected to the gate of the second PMOS transistor M2 The source of the second PMOS transistor M2 is connected to the gate of the fourth PMOS transistor M6, the gate of the fifth PMOS transistor M9, the drain of the fifth PMOS transistor M9, the fifth NMOS The drain of the tube M10, the grid of the seventh PMOS tube M13, the grid of the ninth PMOS tube M16, and the second output terminal of the self-starting circuit are connected; the grid of the first NMOS tube M3 is connected to the third The gate of the NMOS transistor M7, the gate of the fifth NMOS transistor M10, the gate of the seventh NMOS transistor M14, the drain of the seventh NMOS transistor M14, and the drain of the seventh PMOS transistor M13 are connected. The source of the first NMOS transistor M3 is connected to the drain of the second NMOS transistor M4; the gate of the second NMOS transistor M4 is respectively connected to the gate of the fourth NMOS transistor M8, the gate of the sixth NMOS transistor M11, The drain of the third NMOS transistor M7 is connected to the drain of the fourth PMOS transistor M6, and the source of the second NMOS transistor M4 is connected to one end of the first voltage dividing resistor R1; The other end is connected to the emitter of the first PNP bipolar transistor Q1; the base of the first PNP bipolar transistor Q1 and the collector of the first PNP bipolar transistor Q1 are respectively connected to the power ground; the third The source of the first PMOS transistor M5 is connected to the output terminal of the MCU main control board, the drain of the third PMOS transistor M5 is connected to the source of the fourth PMOS transistor M6; the source of the third NMOS transistor M7 is connected to the fourth The drain of the first NMOS transistor M8 is connected; the source of the fourth NMOS transistor M8 is connected to the emitter of the second PNP bipolar transistor Q2; the base of the second PNP bipolar transistor Q2 is connected to the second PNP bipolar transistor Q2 The collectors of the bipolar transistor Q2 are respectively connected to the power ground; the source of the fifth PMOS transistor M9 is connected to the output terminal of the MCU main control board; the source of the fifth NMOS transistor M10 is connected to the sixth NMOS transistor M11 The drain is connected; the source of the sixth NMOS transistor M11 is connected to the emitter of the third PNP bipolar transistor Q3; the base of the third PNP bipolar transistor Q3 is connected to the third PNP bipolar transistor Q3 The collectors of the transistors are respectively connected to the power ground; the source of the sixth PMOS transistor M12 is connected to the output terminal of the MCU main control board, and the drain of the sixth PMOS transistor M12 It is connected to the source of the seventh PMOS transistor M13; the source of the seventh NMOS transistor M14 is connected to the emitter of the fourth PNP bipolar transistor Q4; the base of the fourth PNP bipolar transistor Q4 is connected to the fourth PNP bipolar transistor Q4 The collectors of the four PNP bipolar transistors Q4 are respectively connected to the power ground; the source of the eighth PMOS transistor M15 is connected to the output terminal of the MCU main control board, and the drain of the eighth PMOS transistor M15 is connected to the ninth PMOS The source of the tube M16 is connected; the drain of the ninth PMOS tube M16 is respectively connected to one end of the second voltage dividing resistor R2 and one end of the third voltage dividing resistor R3; the other end of the second voltage dividing resistor R2 is connected to The emitter of the fifth PNP bipolar transistor Q5 is connected; the base of the fifth PNP bipolar transistor Q5 and the collector of the fifth PNP bipolar transistor Q5 are respectively connected to the power ground; the third voltage divider The other end of the resistor R3 is respectively connected to one end of the capacitor C and the gate of the second NMOS transistor M20 in the comparative amplifier circuit; the other end of the capacitor C is connected to the power ground.

参考附图3,对本发明的比较放大器电路做进一步的描述。Referring to accompanying drawing 3, the comparison amplifier circuit of the present invention is further described.

比较放大器电路包括三个分压电阻、三个PMOS管、四个NMOS管和一个非门;其中,第一个分压电阻R4的一端与单片机主控板的输出端相连,第一个分压电阻R4的另一端与第二个分压电阻R5的一端相连;第二个分压电阻R5的另一端分别与第三个分压电阻R6的一端、第一个NMOS管M18的栅极连接;第三个分压电阻R6的另一端与电源地相连;第一个PMOS管M17的源极与单片机主控板的输出端相连,第一个PMOS管M17的栅极分别与其漏极、第二个PMOS管M19的栅极、第一个NMOS管M18的漏极连接;第一个NMOS管M18的源极分别与第二个NMOS管M20的源极、第三个NMOS管M21的漏极连接;第二个PMOS管M19的源极与单片机主控板的输出端相连,第二个PMOS管M19的漏极分别与第二个NOMS管M20的漏极、第三个PMOS管M22的栅极连接;第二个NMOS管M20的栅极分别与基准电路中第三个分压电阻R3的另一端、电容C的一端连接;第三个NMOS管M21的栅极与第四个NMOS管M23的栅极相连,第三个NMOS管M21的源极与电源地相连;第三个PMOS管M22的源极与单片机主控板的输出端相连,第三个PMOS管M22的漏极分别第四个NMOS管M23的漏极、非门INV的输入端连接;第四个NMOS管M23的源极与电源地相连;非门INV的输出端与数字信息解析电路的输入端相连。The comparative amplifier circuit includes three voltage divider resistors, three PMOS transistors, four NMOS transistors and a NOT gate; wherein, one end of the first voltage divider resistor R4 is connected to the output terminal of the MCU main control board, and the first voltage divider The other end of the resistor R4 is connected to one end of the second voltage dividing resistor R5; the other end of the second voltage dividing resistor R5 is respectively connected to one end of the third voltage dividing resistor R6 and the gate of the first NMOS transistor M18; The other end of the third voltage dividing resistor R6 is connected to the power ground; the source of the first PMOS transistor M17 is connected to the output terminal of the main control board of the single-chip microcomputer, and the gate of the first PMOS transistor M17 is connected to its drain and the second The gate of the first PMOS transistor M19 is connected to the drain of the first NMOS transistor M18; the source of the first NMOS transistor M18 is respectively connected to the source of the second NMOS transistor M20 and the drain of the third NMOS transistor M21 ; The source of the second PMOS transistor M19 is connected to the output terminal of the MCU main control board, and the drain of the second PMOS transistor M19 is respectively connected to the drain of the second NOMS transistor M20 and the gate of the third PMOS transistor M22 connection; the gate of the second NMOS transistor M20 is respectively connected to the other end of the third voltage dividing resistor R3 and one end of the capacitor C in the reference circuit; the gate of the third NMOS transistor M21 is connected to the gate of the fourth NMOS transistor M23 The gate is connected, the source of the third NMOS transistor M21 is connected to the power ground; the source of the third PMOS transistor M22 is connected to the output terminal of the MCU main control board, and the drain of the third PMOS transistor M22 is respectively the fourth The drain of the NMOS transistor M23 is connected to the input terminal of the invertor INV; the source of the fourth NMOS transistor M23 is connected to the power ground; the output terminal of the invertor INV is connected to the input terminal of the digital information analysis circuit.

下面对本发明方法的具体步骤做进一步的描述。The specific steps of the method of the present invention are further described below.

步骤1,构建电压脉冲。Step 1, build a voltage pulse.

用高低两个不同幅度的电压值组成电压脉冲,将高电压值维持的时间长度和低电压值维持的时间长度组成一个电压脉冲周期,按照下式,计算高电压值在一个电压脉冲周期内的占空比:The voltage pulse is composed of two voltage values with different amplitudes, high and low, and the time length for maintaining the high voltage value and the time length for maintaining the low voltage value form a voltage pulse cycle. According to the following formula, calculate the high voltage value in a voltage pulse cycle Duty cycle:

其中,q1表示高电压值在一个电压脉冲周期内的占空比,τ表示高电压值在电压脉冲周期内占据的时间长度,T表示电压脉冲周期的时间长度。Among them, q1 represents the duty ratio of the high voltage value in a voltage pulse cycle, τ represents the time length occupied by the high voltage value in the voltage pulse cycle, and T represents the time length of the voltage pulse cycle.

用1-q1的值表示低电压值在一个电压脉冲周期内的占空比。Use the value of 1-q 1 to represent the duty cycle of the low voltage value in a voltage pulse period.

将高电压值在一个电压脉冲周期内的占空比,大于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“1”,将高电压值在一个电压脉冲周期内的占空比,小于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“0”。The duty ratio of the high voltage value in a voltage pulse period is greater than the duty ratio of the low voltage value in a voltage pulse period, and the voltage pulse is expressed as a binary "1", and the high voltage value in a voltage pulse period The duty cycle within the low voltage value is less than the duty cycle of the low voltage value within a voltage pulse period, and the voltage pulse is expressed as a binary "0".

将由高低两个不同幅度的电压值组成的电压脉冲以二进制的方式,存储于单片机主控板的存储器中。The voltage pulse composed of high and low voltage values with different amplitudes is stored in the memory of the single-chip main control board in binary form.

步骤2,输出电压脉冲。Step 2, output voltage pulse.

将单片机主控板接入外电源,单片机主控板输出电压脉冲,电压脉冲将基准电路中的自启动电路打开,通过自启动电路的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路开始工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端。Connect the main control board of the single-chip microcomputer to the external power supply, the main control board of the single-chip microcomputer outputs a voltage pulse, and the voltage pulse turns on the self-starting circuit in the reference circuit, and provides bias for the reference circuit through the voltage of the first output terminal and the second output terminal of the self-starting circuit. Set the voltage and trigger the reference circuit to start working. The reference circuit outputs the input voltage pulse as a voltage divider between the voltage divider resistor through the cascode structure amplifier circuit with a relatively high power supply suppression that can satisfy the input 3V and 5V power supply. The relatively stable reference voltage value between the subsequent voltage pulses is input to the second input terminal of the comparison amplifier circuit.

将单片机主控板输出的电压脉冲用分压电阻分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,此时得到的输出电压脉冲为数字信息解析电路可以识别的电压脉冲。The voltage pulse output by the main control board of the single-chip microcomputer is divided into pulse voltages located on both sides of the reference voltage value output by the reference circuit with a voltage dividing resistor, and input to the first input terminal of the comparison amplifier circuit, and the reference voltage value output by the reference circuit is input to The second input terminal in the comparison amplifier circuit is compared by the comparison amplifier circuit, if the voltage value of the second input terminal of the comparison amplifier circuit is greater than the voltage value of the first input terminal of the comparison amplifier circuit, the output is a high voltage value in the voltage pulse, If the voltage value of the second input terminal of the comparative amplifier circuit is smaller than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a digital ground potential, and the output voltage pulse obtained at this time is a voltage pulse that can be recognized by the digital information analysis circuit.

步骤3,解析电压脉冲。Step 3, analyze the voltage pulse.

将比较放大器电路输出的电压脉冲输入到数字信息解析电路,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The voltage pulse output by the comparative amplifier circuit is input to the digital information analysis circuit, and the counter in the digital information analysis circuit counts the high voltage value and the low voltage value within one voltage pulse cycle time length, and the high voltage value within one voltage pulse cycle The number of values is greater than the number of low voltage values, the output is a high voltage value, and the LED light is turned on. In one cycle, the count of the high voltage value is less than the count of the low voltage value, and the output is the power ground, and the LED light is turned off.

参照附图4,通过实施例对本发明的效果做进一步的描述。With reference to accompanying drawing 4, the effect of the present invention is described further through embodiment.

图4(a)为本发明实施例中单片机主控板中输出的电压脉冲示意图。本发明的具体实施例中取电压脉冲周期长为10us,其中5V电压值占空比为60%,即6us,3V电压值占空比为40%,即4us时,表示为“1”,5V电压值占空比为40%,即4us,3V电压值占空比为60%,即6us时,表示为“0”,从单片机主控板中输出到基准电路,比较放大器电路以及数字信息解析电路中。Fig. 4(a) is a schematic diagram of voltage pulses output from the main control board of the single-chip microcomputer in the embodiment of the present invention. In the specific embodiment of the present invention, the voltage pulse cycle length is 10us, wherein the duty cycle of the 5V voltage value is 60%, that is, 6us, and the duty cycle of the 3V voltage value is 40%, that is, when it is 4us, it is expressed as "1", 5V The duty cycle of the voltage value is 40%, that is, 4us. When the duty cycle of the 3V voltage value is 60%, that is, 6us, it is expressed as "0", and it is output from the MCU main control board to the reference circuit, the comparison amplifier circuit and digital information analysis. in the circuit.

图4(b)为本发明实施例中电压脉冲输入到基准电路和比较放大器电路中的示意图,图4(b)中的虚线表示电压脉冲经过基准电路后输出的电压曲线,实线表示电压脉冲经过电阻分压后输出的电压曲线。Fig. 4 (b) is the schematic diagram that voltage pulse is input in the reference circuit and comparative amplifier circuit in the embodiment of the present invention, and the dotted line in Fig. 4 (b) represents the voltage curve that voltage pulse outputs after the reference circuit, and solid line represents voltage pulse The output voltage curve after resistive voltage division.

图4(c)为本发明实施例中电压脉冲经过基准电路后输出的电压和电压脉冲经过电阻分压后输出的电压脉冲输入到比较放大器电路中电压脉冲示意图。Fig. 4(c) is a schematic diagram of the voltage pulse output after the voltage pulse passes through the reference circuit and the voltage pulse output after the voltage pulse is divided by the resistor in the embodiment of the present invention and input to the comparison amplifier circuit.

图4(d)为本发明实施例中比较放大器电路输出的电压脉冲输入到数字信息解析电路中输出的信号示意图,其中,“1”即5V高电压驱动LED灯亮,“0”即电源地驱动LED灯灭。Fig. 4(d) is a schematic diagram of the signal outputted from the voltage pulse output by the comparative amplifier circuit in the embodiment of the present invention and output in the digital information analysis circuit, wherein, "1" means that the 5V high voltage drives the LED to light up, and "0" means the power ground drives LED lights off.

Claims (4)

1.一种采用电压脉冲的发光二极管LED驱动控制装置,包括基准电路、比较放大器电路,其特征在于,还包括单片机主控板、数字信息解析电路;所述单片机主控板的输入端接外电源,输出端分别与基准电路的输入端、比较放大器电路的第一输入端、数字信息解析电路的输入端连接;所述基准电路的输出端与比较放大器电路的第二输入端相连;所述比较放大器电路的输出端与数字信息解析电路的输入端相连;其中:1. a kind of light-emitting diode LED drive control device that adopts voltage pulse, comprise reference circuit, comparative amplifier circuit, it is characterized in that, also comprise single-chip microcomputer main control board, digital information analysis circuit; The input terminal of described single-chip microcomputer main control board is connected external power supply, the output end is respectively connected with the input end of the reference circuit, the first input end of the comparative amplifier circuit, and the input end of the digital information analysis circuit; the output end of the reference circuit is connected with the second input end of the comparative amplifier circuit; The output terminal of the comparison amplifier circuit is connected with the input terminal of the digital information analysis circuit; wherein: 所述单片机主控板,用于构建由高低两个不同幅度的电压值组成的电压脉冲,并同时将电压脉冲输出到基准电路、比较放大器电路、数字信息解析电路中;The single-chip main control board is used to construct a voltage pulse composed of two voltage values with different amplitudes, high and low, and simultaneously output the voltage pulse to the reference circuit, the comparison amplifier circuit, and the digital information analysis circuit; 所述基准电路,用于通过自启动电路部分的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路,将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端;The reference circuit is used to provide a bias voltage for the reference circuit through the voltages of the first output terminal and the second output terminal of the self-starting circuit part, trigger the reference circuit to work, and the reference circuit can satisfy the input of 3V and 5V through the power supply suppression relatively high Output stable cascode structure amplifier circuit when power supply, output the input voltage pulse as a relatively stable reference voltage value between the voltage pulses divided by the voltage dividing resistor, and input the reference voltage value to the comparison amplifier a second input terminal of the circuit; 所述比较放大器电路,用于将单片机主控板输出的电压脉冲用分压电阻,分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路将输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,比较放大器的输出电压脉冲为数字信息解析电路可以识别的电压脉冲;The comparative amplifier circuit is used to divide the voltage pulse output by the main control board of the single-chip microcomputer into pulse voltages on both sides of the reference voltage value output by the reference circuit, and input it to the first input terminal of the comparative amplifier circuit, The reference circuit inputs the output reference voltage value to the second input terminal of the comparative amplifier circuit, and performs comparison through the comparative amplifier circuit, if the voltage value of the second input terminal of the comparative amplifier circuit is greater than the voltage value of the first input terminal of the comparative amplifier circuit, The output is the high voltage value in the voltage pulse. If the voltage value of the second input terminal of the comparative amplifier circuit is less than the voltage value of the first input terminal of the comparative amplifier circuit, the output is a digital ground potential, and the output voltage pulse of the comparative amplifier is a digital information analysis circuit. Recognizable voltage pulses; 所述数字信息解析电路,用于将比较放大器电路输出的电压脉冲,输入到数字信息解析电路中,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The digital information analysis circuit is used to input the voltage pulse output by the comparative amplifier circuit into the digital information analysis circuit, and the counter in the digital information analysis circuit compares the high voltage value and the low voltage value within a voltage pulse cycle time length Counting, the number of high voltage values is greater than the number of low voltage values in a voltage pulse cycle, the output is a high voltage value, and the LED light is turned on, the count of high voltage values is less than the count of low voltage values in a cycle, and the output is power ground, The drive LED light is off. 2.根据权利要求1所述的采用电压脉冲的发光二极管LED驱动控制装置,其特征在于,所述的基准电路包括九个PMOS管、七个NMOS管、三个分压电阻、五个PNP双极型晶体管和一个自启动电路;其中,第一个PMOS管M1的源极与单片机主控板的输出端相连,第一个PMOS管M1的栅极分别与第二个PMOS管M2的漏极、第一个NMOS管M3的漏极、自启动电路的第一输出端、第三个PMOS管M5的栅极、第六个PMOS管M12的栅极、第八个PMOS管M15的栅极连接,第一个PMOS管M1的漏极与第二个PMOS管M2的源极相连;第二个PMOS管M2的栅极分别与第四个PMOS管M6的栅极、第五个PMOS管M9的栅极、第五个PMOS管M9的漏极、第五个NMOS管M10的漏极、第七个PMOS管M13的栅极、第九个PMOS管M16的栅极、自启动电路的第二输出端连接;第一个NMOS管M3的栅极分别与第三个NMOS管M7的栅极、第五个NMOS管M10的栅极、第七个NMOS管M14的栅极、第七个NMOS管M14的漏极、第七个PMOS管M13的漏极连接,第一个NMOS管M3的源极与第二个NMOS管M4的漏极相连;第二个NMOS管M4的栅极分别与第四个NMOS管M8的栅极、第六个NMOS管M11的栅极、第三个NMOS管M7的漏极、第四个PMOS管M6的漏极连接,第二个NMOS管M4的源极与第一个分压电阻R1的一端相连;第一个分压电阻R1的另一端与第一个PNP双极型三极管Q1的发射极相连;第一个PNP双极型三极管Q1的基极和第一个PNP双极型三极管Q1的集电极分别与电源地连接;第三个PMOS管M5的源极与单片机主控板的输出端相连,第三个PMOS管M5的漏极与第四个PMOS管M6的源极相连;第三个NMOS管M7的源极与第四个NMOS管M8的漏极相连;第四个NMOS管M8的源极与第二个PNP双极型三极管Q2的发射极相连;第二个PNP双极型三极管Q2的基极和第二个PNP双极型三极管Q2的集电极分别与电源地连接;第五个PMOS管M9的源极与单片机主控板的输出端相连;第五个NMOS管M10的源极与第六个NMOS管M11的漏极相连;第六个NMOS管M11的源极与第三个PNP双极型三极管Q3的发射极相连;第三个PNP双极型三极管Q3的基极和第三个PNP双极型三极管Q3的集电极分别与电源地连接;第六个PMOS管M12的源极与单片机主控板的输出端相连,第六个PMOS管M12的漏极与第七个PMOS管M13的源极相连;第七个NMOS管M14的源极与第四个PNP双极型三极管Q4的发射极相连;第四个PNP双极型三极管Q4的基极和第四个PNP双极型三极管Q4的集电极分别与电源地连接;第八个PMOS管M15的源极与单片机主控板的输出端相连,第八个PMOS管M15的漏极与第九个PMOS管M16的源极相连;第九个PMOS管M16的漏极分别与第二个分压电阻R2的一端、第三个分压电阻R3的一端连接;第二个分压电阻R2的另一端与第五个PNP双极型三极管Q5的发射极相连;第五个PNP双极型三极管Q5的基极和第五个PNP双极型三极管Q5的集电极分别与电源地连接;第三个分压电阻R3的另一端分别与电容C的一端、比较放大器电路中第二个NMOS管M20的栅极连接;电容C的另一端与电源地连接。2. The light-emitting diode LED drive control device using voltage pulses according to claim 1, wherein the reference circuit includes nine PMOS transistors, seven NMOS transistors, three voltage dividing resistors, five PNP dual Pole type transistor and a self-starting circuit; wherein, the source of the first PMOS transistor M1 is connected to the output terminal of the MCU main control board, and the gate of the first PMOS transistor M1 is respectively connected to the drain of the second PMOS transistor M2 , the drain of the first NMOS transistor M3, the first output terminal of the self-starting circuit, the gate of the third PMOS transistor M5, the gate of the sixth PMOS transistor M12, and the gate of the eighth PMOS transistor M15 are connected , the drain of the first PMOS transistor M1 is connected to the source of the second PMOS transistor M2; the gate of the second PMOS transistor M2 is respectively connected to the gate of the fourth PMOS transistor M6 and the gate of the fifth PMOS transistor M9 Gate, the drain of the fifth PMOS transistor M9, the drain of the fifth NMOS transistor M10, the gate of the seventh PMOS transistor M13, the gate of the ninth PMOS transistor M16, the second output of the self-starting circuit The gate of the first NMOS transistor M3 is respectively connected to the gate of the third NMOS transistor M7, the gate of the fifth NMOS transistor M10, the gate of the seventh NMOS transistor M14, the gate of the seventh NMOS transistor M14 The drain of the seventh PMOS transistor M13 is connected, the source of the first NMOS transistor M3 is connected to the drain of the second NMOS transistor M4; the gate of the second NMOS transistor M4 is respectively connected to the fourth The gate of the NMOS transistor M8, the gate of the sixth NMOS transistor M11, the drain of the third NMOS transistor M7, and the drain of the fourth PMOS transistor M6 are connected, and the source of the second NMOS transistor M4 is connected to the first One end of the first divider resistor R1 is connected; the other end of the first divider resistor R1 is connected to the emitter of the first PNP bipolar transistor Q1; the base of the first PNP bipolar transistor Q1 is connected to the first The collectors of the PNP bipolar transistor Q1 are respectively connected to the power ground; the source of the third PMOS transistor M5 is connected to the output terminal of the MCU main control board, and the drain of the third PMOS transistor M5 is connected to the fourth PMOS transistor M6 The source of the third NMOS transistor M7 is connected to the drain of the fourth NMOS transistor M8; the source of the fourth NMOS transistor M8 is connected to the emitter of the second PNP bipolar transistor Q2; The base of the second PNP bipolar transistor Q2 and the collector of the second PNP bipolar transistor Q2 are respectively connected to the power ground; the source of the fifth PMOS transistor M9 is connected to the output terminal of the microcontroller main control board; The source of the fifth NMOS transistor M10 is connected to the drain of the sixth NMOS transistor M11; the source of the sixth NMOS transistor M11 is connected to the emitter of the third PNP bipolar transistor Q3; the third PNP bipolar transistor Q3 The base of the polar transistor Q3 and the collector of the third PNP bipolar transistor Q3 are respectively connected to the power ground; the source of the sixth PMOS transistor M12 is connected to the single The output terminal of the main control board of the chip computer is connected, the drain of the sixth PMOS transistor M12 is connected to the source of the seventh PMOS transistor M13; the source of the seventh NMOS transistor M14 is connected to the fourth PNP bipolar transistor Q4 The emitter of the fourth PNP bipolar transistor Q4 and the collector of the fourth PNP bipolar transistor Q4 are respectively connected to the power ground; the source of the eighth PMOS transistor M15 is connected to the MCU main control board The drain of the eighth PMOS transistor M15 is connected to the source of the ninth PMOS transistor M16; the drain of the ninth PMOS transistor M16 is respectively connected to one end of the second voltage dividing resistor R2, the third One end of the voltage dividing resistor R3 is connected; the other end of the second voltage dividing resistor R2 is connected to the emitter of the fifth PNP bipolar transistor Q5; the base of the fifth PNP bipolar transistor Q5 is connected to the fifth PNP bipolar transistor Q5 The collector of the bipolar transistor Q5 is respectively connected to the power ground; the other end of the third voltage dividing resistor R3 is respectively connected to one end of the capacitor C and the gate of the second NMOS transistor M20 in the comparison amplifier circuit; the other end of the capacitor C Connect one end to the power ground. 3.根据权利要求1所述的采用电压脉冲的发光二极管LED驱动控制装置,其特征在于,所述的比较放大器电路包括三个分压电阻、三个PMOS管、四个NMOS管和一个非门;其中,第一个分压电阻R4的一端与单片机主控板的输出端相连,第一个分压电阻R4的另一端与第二个分压电阻R5的一端相连;第二个分压电阻R5的另一端分别与第三个分压电阻R6的一端、第一个NMOS管M18的栅极连接;第三个分压电阻R6的另一端与电源地相连;第一个PMOS管M17的源极与单片机主控板的输出端相连,第一个PMOS管M17的栅极分别与其漏极、第二个PMOS管M19的栅极、第一个NMOS管M18的漏极连接;第一个NMOS管M18的源极分别与第二个NMOS管M20的源极、第三个NMOS管M21的漏极连接;第二个PMOS管M19的源极与单片机主控板的输出端相连,第二个PMOS管M19的漏极分别与第二个NOMS管M20的漏极、第三个PMOS管M22的栅极连接;第二个NMOS管M20的栅极分别与基准电路中第三个分压电阻R3的另一端、电容C的一端连接;第三个NMOS管M21的栅极与第四个NMOS管M23的栅极相连,第三个NMOS管M21的源极与电源地相连;第三个PMOS管M22的源极与单片机主控板的输出端相连,第三个PMOS管M22的漏极分别第四个NMOS管M23的漏极、非门INV的输入端连接;第四个NMOS管M23的源极与电源地相连;非门INV的输出端与数字信息解析电路的输入端相连。3. The light-emitting diode LED drive control device using voltage pulses according to claim 1, wherein the comparative amplifier circuit includes three voltage divider resistors, three PMOS transistors, four NMOS transistors and a NOT gate ; Wherein, one end of the first voltage dividing resistor R4 is connected with the output terminal of the MCU main control board, and the other end of the first voltage dividing resistor R4 is connected with one end of the second voltage dividing resistor R5; the second voltage dividing resistor The other end of R5 is respectively connected to one end of the third voltage dividing resistor R6 and the gate of the first NMOS transistor M18; the other end of the third voltage dividing resistor R6 is connected to the power ground; the source of the first PMOS transistor M17 The pole is connected to the output terminal of the MCU main control board, the gate of the first PMOS transistor M17 is connected to its drain, the gate of the second PMOS transistor M19, and the drain of the first NMOS transistor M18; the first NMOS The source of the tube M18 is respectively connected to the source of the second NMOS tube M20 and the drain of the third NMOS tube M21; the source of the second PMOS tube M19 is connected to the output terminal of the microcontroller main control board, and the second The drain of the PMOS transistor M19 is respectively connected to the drain of the second NOMS transistor M20 and the gate of the third PMOS transistor M22; the gate of the second NMOS transistor M20 is respectively connected to the third voltage dividing resistor R3 in the reference circuit The other end of the capacitor C is connected to the other end of the capacitor C; the gate of the third NMOS transistor M21 is connected to the gate of the fourth NMOS transistor M23, and the source of the third NMOS transistor M21 is connected to the power ground; the third PMOS transistor The source of M22 is connected to the output terminal of the MCU main control board, the drain of the third PMOS transistor M22 is respectively connected to the drain of the fourth NMOS transistor M23, and the input terminal of the inverter INV; the source of the fourth NMOS transistor M23 The pole is connected to the power ground; the output terminal of the NOT gate INV is connected to the input terminal of the digital information analysis circuit. 4.一种采用电压脉冲的发光二极管LED驱动控制方法,其特征在于,利用单片机主控板将控制数据以电压脉冲方式输出到LED驱动控制电路中;该方法的具体步骤包括如下:4. A light-emitting diode LED drive control method that adopts voltage pulse is characterized in that, utilizes single-chip microcomputer main control board to output control data in the LED drive control circuit with voltage pulse mode; The concrete steps of this method comprise as follows: (1)构建电压脉冲:(1) Build a voltage pulse: (1a)用高低两个不同幅度的电压值组成电压脉冲,将高电压值维持的时间长度和低电压值维持的时间长度组成一个电压脉冲周期,按照下式,单片机主控板计算高电压值在一个电压脉冲周期内的占空比:(1a) Voltage pulses are composed of two voltage values with different amplitudes, high and low, and the duration of maintaining the high voltage value and the duration of maintaining the low voltage value form a voltage pulse cycle. According to the following formula, the MCU main control board calculates the high voltage value Duty cycle within one voltage pulse period: 其中,q1表示高电压值在一个电压脉冲周期内的占空比,τ表示高电压值在电压脉冲周期内占据的时间长度,T表示电压脉冲周期的时间长度;Among them, q1 represents the duty ratio of the high voltage value in a voltage pulse cycle, τ represents the time length occupied by the high voltage value in the voltage pulse cycle, and T represents the time length of the voltage pulse cycle; (1b)用1-q1的值表示低电压值在一个电压脉冲周期内的占空比;(1b) Use the value of 1-q 1 to represent the duty cycle of the low voltage value within a voltage pulse period; (1c)单片机主控板将高电压值在一个电压脉冲周期内的占空比,大于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“1”,单片机主控板将高电压值在一个电压脉冲周期内的占空比,小于低电压值在一个电压脉冲周期内的占空比时的电压脉冲表示为二进制的“0”;(1c) The main control board of the single-chip microcomputer expresses the voltage pulse when the duty cycle of the high voltage value in a voltage pulse cycle is greater than the duty cycle of the low voltage value in a voltage pulse cycle as a binary "1". The control board expresses the duty cycle of the high voltage value in a voltage pulse cycle as a binary "0" when the voltage pulse is smaller than the duty cycle of the low voltage value in a voltage pulse cycle; (1d)单片机主控板将由高低两个不同幅度的电压值组成的电压脉冲以二进制的方式,存储于单片机主控板的存储器中;(1d) The single-chip microcomputer main control board stores the voltage pulse composed of two high and low voltage values with different amplitudes in binary form in the memory of the single-chip microcomputer main control board; (2)输出电压脉冲:(2) Output voltage pulse: (2a)将单片机主控板接入外电源,单片机主控板输出电压脉冲,电压脉冲启动基准电路中的自启动电路,通过自启动电路的第一输出端和第二输出端的电压为基准电路提供偏置电压,触发基准电路开始工作,基准电路通过电源抑制比较高的能够满足输入3V和5V电源时输出稳定的共源共栅结构放大电路将输入的电压脉冲输出为一个介于分压电阻分压后的电压脉冲之间的比较平稳的基准电压值,将基准电压值输入到比较放大器电路的第二输入端;(2a) Connect the main control board of the single-chip microcomputer to the external power supply, the main control board of the single-chip microcomputer outputs a voltage pulse, and the voltage pulse starts the self-starting circuit in the reference circuit, and the voltage through the first output terminal and the second output terminal of the self-starting circuit is the reference circuit The bias voltage is provided to trigger the reference circuit to start working. The reference circuit outputs the input voltage pulse as a voltage dividing resistor through a cascode structure amplifier circuit with a relatively high power supply rejection and a stable output when inputting 3V and 5V power supplies. A relatively stable reference voltage value between the divided voltage pulses, the reference voltage value is input to the second input terminal of the comparative amplifier circuit; (2b)将单片机主控板输出的电压脉冲用分压电阻,分压为位于基准电路输出的基准电压值两侧的脉冲电压,输入到比较放大器电路的第一输入端,基准电路将输出的基准电压值输入到比较放大器电路中的第二输入端,通过比较放大电路进行比较,若比较放大器电路的第二输入端的电压值大于比较放大器电路的第一输入端的电压值,输出为电压脉冲中的高电压值,若比较放大器电路的第二输入端的电压值小于比较放大器电路的第一输入端的电压值,输出为数字地电位,比较放大器的输出电压脉冲为数字信息解析电路可以识别的电压脉冲;(2b) The voltage pulse output by the main control board of the single-chip microcomputer is divided into pulse voltages on both sides of the reference voltage value output by the reference circuit with a voltage dividing resistor, and input to the first input terminal of the comparative amplifier circuit, and the reference circuit outputs the The reference voltage value is input to the second input end of the comparison amplifier circuit, and compared by the comparison amplifier circuit, if the voltage value of the second input end of the comparison amplifier circuit is greater than the voltage value of the first input end of the comparison amplifier circuit, the output is a voltage pulse If the voltage value of the second input end of the comparison amplifier circuit is less than the voltage value of the first input end of the comparison amplifier circuit, the output is a digital ground potential, and the output voltage pulse of the comparison amplifier is a voltage pulse that can be recognized by the digital information analysis circuit ; (3)解析电压脉冲:(3) Analyze the voltage pulse: 将比较放大器电路输出的电压脉冲输入到数字信息解析电路,通过数字信息解析电路中的计数器在一个电压脉冲周期时间长度内对高电压值和低电压值进行计数,在一个电压脉冲周期内高电压值的数目大于低电压值的数目,输出为高电压值,驱动LED灯亮,在一个周期内高电压值计数小于低电压值计数,输出为电源地,驱动LED灯灭。The voltage pulse output by the comparative amplifier circuit is input to the digital information analysis circuit, and the counter in the digital information analysis circuit counts the high voltage value and the low voltage value within one voltage pulse cycle time length, and the high voltage value within one voltage pulse cycle The number of values is greater than the number of low voltage values, the output is a high voltage value, and the LED light is turned on. In one cycle, the count of the high voltage value is less than the count of the low voltage value, and the output is the power ground, and the LED light is turned off.
CN201811366653.6A 2018-11-16 2018-11-16 LED drive control device and method using voltage pulse Active CN109168230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811366653.6A CN109168230B (en) 2018-11-16 2018-11-16 LED drive control device and method using voltage pulse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811366653.6A CN109168230B (en) 2018-11-16 2018-11-16 LED drive control device and method using voltage pulse

Publications (2)

Publication Number Publication Date
CN109168230A CN109168230A (en) 2019-01-08
CN109168230B true CN109168230B (en) 2019-10-08

Family

ID=64875937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811366653.6A Active CN109168230B (en) 2018-11-16 2018-11-16 LED drive control device and method using voltage pulse

Country Status (1)

Country Link
CN (1) CN109168230B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112526581B (en) * 2020-11-26 2024-10-18 南京模数智芯微电子科技有限公司 Time discriminator suitable for radiation detection front end readout circuit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008295237A (en) * 2007-05-25 2008-12-04 Nec Electronics Corp Switching pulse formation circuit and regulator using same
CN201523469U (en) * 2009-11-07 2010-07-07 桂林电子科技大学 An intelligent LED pulse drive circuit
JP5616768B2 (en) * 2010-12-08 2014-10-29 ローム株式会社 LIGHT EMITTING ELEMENT DRIVE CIRCUIT, LIGHT EMITTING DEVICE USING THE SAME, AND ELECTRONIC DEVICE
US9553501B2 (en) * 2010-12-08 2017-01-24 On-Bright Electronics (Shanghai) Co., Ltd. System and method providing over current protection based on duty cycle information for power converter
CN107017795B (en) * 2017-03-31 2019-04-30 德力西(杭州)变频器有限公司 Pulse-generator circuit and its control method

Also Published As

Publication number Publication date
CN109168230A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
WO2017128449A1 (en) Usb interface led lamp string control system
CN102196621B (en) LED dimming circuit
CN105634461A (en) Level shift circuit
CN109168230B (en) LED drive control device and method using voltage pulse
CN204156724U (en) A kind of rotating forward positive voltage feedback circuit
CN107947774A (en) LDMOS level shift dv/dt noise suppression circuits for IGBT grid drive chips
CN104362846A (en) Multi-output direct current-direct current converter with power-on timing sequence controllable
CN104185345B (en) A kind of control device for constant current driver circuit for LED
CN112015114B (en) Automatic control circuit for time sequence of multi-path power supply
JP4705264B2 (en) Switching regulator
CN204517773U (en) A kind of single ended input hysteresis comparator circuit
CN1169080C (en) Integrating circuits included in semiconductor devices
CN111615247A (en) A kind of automobile drive front-end PMOS anti-backflow circuit
CN201044520Y (en) Two-wire two-way light string controller
CN103068127B (en) A kind of LED lamp and two-color LED dimming circuit
CN207283517U (en) Circuit occurs for a kind of pwm signal
CN113849025B (en) A power rail generation circuit
WO2012155624A1 (en) A method and a system for the level switching
CN209767384U (en) Voltage regulating circuit of charge pump
CN204362403U (en) A kind of lighting lamp circuit
TW202349838A (en) Boost converter for increasing output stability
CN108448893B (en) Dynamic slope compensation circuit based on duty ratio
CN210402700U (en) Output signal control system of infrared remote control receiving chip
CN203206547U (en) Timing boost bidirectional controller for battery lamp
CN204755347U (en) Integrated brushless fan -driving ware of single coil direct current that joins conversely protection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant