LED driving circuit for power supply and data transmission by using two lines and transmission method

By using differential power supply and ground signals in the LED driving circuit for data transmission, the high cost of power line communication and signal susceptibility to interference in LED driving control is solved, and efficient and reliable LED system control is achieved.

CN119071964AInactive Publication Date: 2024-12-03WUXI DECHIP MICROELECTRONICS CO LTD

Patent Information

Application Number
CN202411476420.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing LED drive control, power line communication technology has problems such as high cost, susceptibility to interference and large signal attenuation, which affects the precise control of the LED system.

Method used

An LED driving circuit that uses two wires for power supply and data transmission is adopted, including a rectifier circuit, a power signal demodulation circuit and a data protocol decoding circuit. Data transmission is carried out through differential power supply and ground signals to achieve accurate LED control.

Benefits of technology

It reduces circuit complexity, improves system stability and data transmission speed and reliability, reduces costs, simplifies the control process of LED systems, and enhances anti-interference ability and production convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071964A_ABST
    Figure CN119071964A_ABST
Patent Text Reader

Abstract

The LED driving circuit comprises a rectifying circuit, the input end of the rectifying circuit is connected with a differential power supply ACP and a ground signal ACN, the differential power supply ACP and the ground signal ACN are converted into a direct-current power supply VCC and a ground signal GND, the two lines comprise a power line and a ground line, and the two lines are connected with the rectifying circuit. The direct current power supply VCC and the ground signal GND provide stable direct current voltage for normal work of the circuit; the input end of the power supply signal demodulation circuit is connected with a differential power supply ACP and a ground signal ACN and demodulates the differential power supply ACP and the ground signal ACN to obtain a demodulation signal, the first input end of the data protocol decoding circuit is connected with a direct-current power supply VCC, and the second input end of the data protocol decoding circuit is connected with a ground signal ACN. And the second input end is connected with the output end of the power supply signal demodulation circuit to receive the demodulation signal and decode the demodulation signal, so that the problems of high cost, easy signal interference, large signal attenuation and the like brought by the current PLC technology in the LED driving control field are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to LED driving, in particular to an LED driving circuit and a transmission method for performing power supply and data transmission by using two lines. Background Art

[0002] LED is widely used in landscape lighting, building lighting, display and other fields due to its energy saving, long life, high brightness, rich colors, adjustability and other remarkable characteristics. In these fields, LED driving control technology plays a vital role.

[0003] Traditional LED drive control mainly transmits control data through signal control lines to achieve control of LED systems, but this method leads to problems such as complex wiring and high costs. In recent years, with the rapid development of power line communication (PLC) technology, control data can be modulated onto the power line for transmission, thus achieving the purpose of "one line for two uses".

[0004] However, despite the progress of power line communication (PLC) in the fields of smart home and smart grid, its application in the field of LED drive control still faces significant challenges. Specifically, the cost of using PLC technology in LED control is high, and the common noise interference, signal attenuation and impedance mismatch on power lines will affect the accuracy and reliability of data transmission, which will have an adverse effect on the precise control of LED systems. Summary of the invention

[0005] In order to solve the defects of the above-mentioned prior art, the present invention provides an LED driving circuit and a transmission method using two wires for power supply and data transmission, so as to solve the problems of high cost, susceptibility to signal interference and large signal attenuation brought by the current PLC technology in the field of LED driving control.

[0006] To achieve the above technical objectives, the present invention adopts the following technical solution: an LED driving circuit using two wires for power supply and data transmission, A rectifier circuit is included, wherein the input end of the rectifier circuit is connected to a differential power supply ACP and a ground signal ACN, and the differential power supply ACP and the ground signal ACN are converted into a DC power supply VCC and a ground signal GND, wherein the two wires include a power line and a ground line, and the DC power supply VCC and the ground signal GND provide a stable DC voltage for the normal operation of the circuit; A power signal demodulation circuit, wherein an input end of the power signal demodulation circuit is connected to a differential power supply ACP and a ground signal ACN, and demodulates the differential power supply ACP and the ground signal ACN to obtain a demodulation signal; A data protocol decoding circuit, wherein a first input end of the data protocol decoding circuit is connected to the DC power supply VCC, and a second input end is connected to the output end of the power signal demodulation circuit to receive the demodulated signal and decode the demodulated signal, wherein the decoded data is used to control the LED.

[0007] Furthermore, the rectifier circuit includes four diodes D1, D2, D3, D4 and C1, wherein ACP is connected to the cathode of diode D3 and the anode of diode D1, ACN is connected to the cathode of diode D4 and the anode of diode D2, the anode of diode D1 and the cathode of diode D2 are connected as the rectified DC power supply VCC, the anode of diode D3 and the anode of diode D4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

[0008] Further, the rectifier circuit includes a PMOS tube P1, a PMOS tube P2, an NMOS tube N1, and an NMOS tube N2, wherein the source end of P1 is connected to the source end of P2 as the rectified DC power supply VCC, the drain end of P1 is connected to the drain end of N1 and connected to the differential power supply ACP, and are respectively connected to the gate ends of P2 and N2, the drain end of P2 is connected to the drain end of N2 and connected to the differential power supply ACN, and are respectively connected to the gate ends of P1 and N1, and the source end of N1 is connected to the source end of N2 as the rectified ground signal GND.

[0009] Furthermore, the rectifier circuit includes four transistors, namely N1, N2, N3, and N4, the emitter and collector of each transistor are connected as an anode, and the base is used as a cathode, wherein ACP is connected to the cathode of transistor N3 and the anode of transistor N1, ACN is connected to the cathode of transistor N4 and the anode of transistor N2, the anode of transistor N1 and the cathode of transistor N2 are connected as the rectified DC power supply VCC, the anode of transistor N3 and the anode of transistor N4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

[0010] Furthermore, the power signal demodulation circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a comparator CMP, wherein the differential power supply ACP and the ground signal ACN are respectively connected to one end of the resistor R1 and the resistor R3, the other end of the resistor R1 is grounded through the resistor R2, and the other end of the resistor R3 is grounded through the resistor R4, the in-phase terminal of the comparator CMP is connected to the common end of the resistor R1 and the resistor R2, and the reverse terminal is connected to the common end of the resistor R3 and the resistor R4, and the output end OUT of the comparator serves as the output end of the power signal demodulation circuit.

[0011] Furthermore, the resistance value of the resistor R1 is equal to the resistance value of the resistor R3, and the resistance value of the resistor R2 is equal to the resistance value of the resistor R4.

[0012] Furthermore, the resistance values ​​of the resistor R1 and the resistor R3 are smaller than the resistance values ​​of the resistor R2 and the resistor R4.

[0013] The data protocol decoding circuit includes a 12-bit latch, a 12-bit shift register, a timer circuit, an edge detection circuit, a start-stop detection circuit, an OR gate U3, a NOT gate U4, an RS trigger U5, a bit counter, a data counter, an address detection circuit, and a data latch circuit; wherein the input end and the clock end of the edge detection circuit are respectively connected to the internal standard digital signal PWR_DAT and the first clock CLK, and a DPL signal corresponding to the rising edge of PWR_DAT is generated; the clock end and the reset end of the timer circuit are respectively connected to the first clock CLK and the DPL signal, and a second clock CK is generated. 190US; the digital input terminal of the start-stop detection circuit is connected to the internal standard digital signal PWR_DAT, the clock terminal is connected to the second clock CK190US, an output signal RSTB of the start-stop detection circuit is connected to an input terminal of the RS trigger U5 through the NOT gate U4, another output signal END is connected to the other input terminal of the RS trigger U5, the output terminal of the RS trigger U5 outputs the ENOM signal to the input terminal of the OR gate U3 and the enable terminal of the mode control circuit; an input terminal of the OR gate U3 is connected to the DPL signal, and the output terminal is connected to the reset terminal of the bit counter; the clock terminal of the bit counter is connected to the second The clock CK190US outputs the DCK signal at the output end, and is sent to the clock end of the data counter, the clock end of the address detection circuit, and the clock end of the 12-bit shift register respectively; the reset end of the data counter is connected to an output signal RSTB of the start-stop detection circuit, and the two output enable signals D7BIT and D19BIT of the data counter are connected to the data enable end of the address detection circuit and the data enable end of the data latch circuit respectively; the output enable signal D19BIT is also connected to the input end of the OR gate U3; the digital input end and the clock end of the 12-bit shift register are connected to the internal standard digital The signals PWR_DAT and DCK are output and connected to the input of the 12-bit latch and the verification bit and address input multiplexing end of the address detection circuit; the address input of the address detection circuit is connected to the output of the address module, the reset of the address detection circuit is connected to an output signal RSTB of the start-stop detection circuit, the output of the address detection circuit is connected to the data input of the data latch circuit and sends a DAOK signal; the clock of the data latch circuit is connected to the first clock CLK, the output is connected to the data latch signal end of the 12-bit latch, and the output of the 12-bit latch outputs the control data DAL[11:0].

[0014] A method for power supply and differential data transmission using a power line and a ground line, comprising: Convert the differential power supply ACP and ground signal ACN into DC power supply VCC and ground signal GND to provide a stable DC voltage for the normal operation of the circuit; When the differential power supply ACP is at a high level and the ground signal ACN is at a low level, a high level demodulation signal is output; When the differential power supply ACP is at a low level and the ground signal ACN is at a high level, a low level demodulation signal is output; The low level appearing in the demodulated signal is recorded as P code; The duration of the high level in the demodulated signal is obtained and recorded as t. When t>Trst, the high level corresponding to the time t is recorded as the reset code; the first high level that appears after the reset code and lasts less than the reset code time is recorded as the reference code, and the time of the high level is recorded as Tref. When , the high level corresponding to the time t is recorded as 0 code; when When t is reached, the high level corresponding to the time t is recorded as code 1; wherein n, m are natural numbers greater than 1, and m>n; Obtain a sequence consisting of 0 and 1 for each frame of data in the demodulated signal according to the reset code, the reference code, the 0 code, and the 1 code, and use the sequence as a decoding signal; The N data bits after the reference code in the sequence are used as the command code, and the remaining data bits after the command code are used as the data code, where the data bit is 0 or 1; according to the command code, the data code and the LED chip address, a control instruction is obtained to drive the LED to work; The start-stop detection circuit is responsible for identifying the start code and stop code. When the low level of PWR_DAT lasts for more than 20ms, the start-stop detection circuit generates an RSTB signal, indicating that the start code is successfully identified, indicating the start of a data packet transmission. At this time, the address detection module and the data counter are restored to the initial state by the RSTB signal; The ENOM signal is set to a low level, so that the LED drive circuit stops outputting and the bit counter is turned on at the same time. The bit counter is used to identify each bit of data. The data starts from the rising edge of PWR_DAT. The edge detection circuit outputs a DPL pulse signal at the rising edge of PWR_DAT to reset the bit counter. The DCK signal becomes a low level and resets the timer circuit at the same time. The timer circuit outputs the second clock CK190US with a period of 190us. After the bit counter counts the second clock CK190US 8 times, the DCK signal generated becomes high level. At this time, the bit counter stops working and maintains the current state until it is reset and restarts working next time; the rising edge of DCK is used to latch the value of PWR_DAT and push it into the 12-bit shift register; when the data volume reaches 7 bits, the address detection circuit determines whether it meets the requirements of the current circuit. At this time, DAT[6:3] is a fixed value of 1010, and DAT[2:0] is the same as the internal inherent address AD[2:0] or 7. If this requirement is met, the DAOK signal will become high level and the state is locked. If this requirement is not met, the DAOK signal remains low level unchanged; no matter what state it is, the address detection circuit will maintain the current output state until the start-stop detection circuit re-identifies the start code and generates RSTB signal to reset it, and then it will work again; When the data is decoded to 19 bits, if the DAOK signal is high, a latch signal LDDT is generated to latch the 12-bit data from the 12-bit shift register into the 12-bit latch for standby use, otherwise no LDDT latch signal is generated; the decoding of a data packet is completed; when the PWR_DAT high level lasts for 20ms, the start-stop detection circuit recognizes the stop code and generates an END signal, and the ENOM signal is set to a high level, indicating that the data decoding is completed, and the LED drive circuit starts to output normally and use the latest received data.

[0015] In summary, the present invention has achieved the following technical effects: The LED driving circuit provided by the present invention has a simple topological structure, which greatly reduces the complexity of the circuit structure and thus improves the stability of the system; The present invention uses the power line and the ground line as differential data lines, has strong anti-interference, and greatly improves the data transmission speed and reliability; Compared with the traditional control circuit, the LED driving circuit provided by the present invention uses only two wires, thereby greatly reducing the cost of the LED system; Compared with the prior art, the present invention utilizes power lines and ground lines for differential data transmission, and realizes effective data output by accurately identifying differential power signals. Subsequently, the data signal demodulated from the power line is transmitted to the decoding module for protocol analysis, thereby accurately controlling the LED drive unit. This system only requires two wires, the power line and the ground line, without the need to lay additional signal lines, which greatly simplifies the control process of the LED system. At the same time, the use of differential mode to transmit data on the power line and the ground line not only significantly enhances the anti-interference ability of the data, but also effectively improves the speed and reliability of data transmission. This not only helps to reduce costs, but also promotes the convenience of production and installation, and enhances the wide applicability of the product. In addition, the present invention is very conducive to the high integration of LED drive circuit chips. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] FIG1 is a schematic diagram of the circuit structure of the present invention; FIG2 is a schematic diagram of a rectifier bridge stack formed using diodes; FIG3 is a schematic diagram of a rectifier bridge stack formed by MOS tubes inside the chip; FIG4 is a schematic diagram of a rectifier bridge stack formed by NPN tubes inside the chip; FIG5 is a schematic diagram of a power supply differential signal demodulation circuit; Figure 6 is a schematic diagram of power differential signal; FIG7 is a schematic diagram of power supply differential signal demodulation output; Figure 8 is a diagram showing the definition of the code pattern during data transmission; FIG9 is a code structure of a frame of data and its timing diagram; Fig.10 It is a schematic diagram of the data protocol decoding circuit. DETAILED DESCRIPTION

[0017] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0018] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

[0019] In order to make the purpose, technical scheme and advantages of the present invention clearer, the device proposed by the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings adopt a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structure, proportion, size, etc. illustrated by the accompanying drawings of this specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effect that the present invention can produce and the purpose that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.

[0020] Example: like Figure 1 As shown, an LED driving circuit using two wires for power supply and data transmission includes a power line and a ground line, specifically an LED driving circuit using a power line and a ground line for power supply and differential data transmission, A rectifier circuit is included, wherein the input end of the rectifier circuit is connected to a differential power supply ACP and a ground signal ACN, and the differential power supply ACP and the ground signal ACN are converted into a DC power supply VCC and a ground signal GND, wherein the two wires include a power line and a ground line, and the DC power supply VCC and the ground signal GND provide a stable DC voltage for the normal operation of the circuit; A power signal demodulation circuit, wherein an input end of the power signal demodulation circuit is connected to a differential power supply ACP and a ground signal ACN, and demodulates the differential power supply ACP and the ground signal ACN to obtain a demodulation signal; A data protocol decoding circuit, wherein a first input end of the data protocol decoding circuit is connected to the DC power supply VCC, and a second input end is connected to the output end of the power signal demodulation circuit to receive the demodulated signal and decode the demodulated signal, wherein the decoded data is used to control the LED.

[0021] It also includes a bandgap reference circuit for generating a reference voltage, and the reference voltage is sent to the voltage stabilizing circuit; The chip ID storage circuit is used to store the LED chip address of the LED driving circuit and send the address to the data protocol decoding circuit for use; Voltage stabilization circuit, used to convert the power supply voltage into a stable voltage for internal use, and supply it to other circuits except the digital power supply; The oscillator unit is used to generate a clock signal to provide a clock beat for the entire digital circuit operation; The data protocol decoding circuit is used to decode the demodulated signal to obtain the control instruction of the LED control system according to the clock signal and the LED chip address; the data protocol decoding circuit decodes the input demodulated signal according to the clock signal provided by the oscillator, and decides whether to execute the instruction in the data frame according to the decoded information and the ID provided by the chip ID storage circuit; A logic control circuit, used for generating corresponding display data according to the decoding instruction; The display data control circuit is used to convert the display data into grayscale duty data for controlling the brightness of the LED lamp. The grayscale duty data is sent to the LED driving circuit for driving the LED.

[0022] Specifically, the rectifier circuit is used to convert the differential power supply and ground signals ACP and ACN into DC power supply and ground signals VCC and GND, providing a stable DC voltage for the normal operation of the circuit. To facilitate internal chip integration, the present invention provides three different rectifier circuit structures.

[0023] The first one, such as Figure 2As shown, the rectifier circuit includes four diodes D1, D2, D3, D4 and C1, wherein ACP is connected to the cathode of diode D3 and the anode of diode D1, ACN is connected to the cathode of diode D4 and the anode of diode D2, the anode of diode D1 and the cathode of diode D2 are connected as the rectified DC power supply VCC, the anode of diode D3 and the anode of diode D4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

[0024] The second type, such as Figure 3 As shown, the rectifier circuit includes a PMOS tube P1, a PMOS tube P2, an NMOS tube N1, and an NMOS tube N2, wherein the source end of P1 is connected to the source end of P2 as the rectified DC power supply VCC, the drain end of P1 is connected to the drain end of N1 and connected to the differential power supply ACP, and is also connected to the gate ends of P2 and N2 respectively, the drain end of P2 is connected to the drain end of N2 and connected to the differential power supply ACN, and is also connected to the gate ends of P1 and N1 respectively, and the source end of N1 is connected to the source end of N2 as the rectified ground signal GND.

[0025] The third type is that the rectifier circuit includes 4 transistors, which may be 4 NPN transistors or 4 PNP transistors. Taking 4 NPN transistors as an example, Figure 4 As shown, they are N1, N2, N3, and N4 respectively, the emitter and collector of each transistor are connected as the anode, and the base is used as the cathode, wherein ACP is connected to the cathode of transistor N3 and the anode of transistor N1, ACN is connected to the cathode of transistor N4 and the anode of transistor N2, the anode of transistor N1 and the cathode of transistor N2 are connected as the rectified DC power supply VCC, the anode of transistor N3 and the anode of transistor N4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

[0026] The transistor can be of NPN or PNP structure. In the first and third structures, the filter capacitor after the rectifier bridge stack can be replaced with a MOS capacitor to facilitate internal chip integration. The source and drain ends of the MOS tube are connected as one pole of the capacitor, and the gate end of the MOS tube is used as the other pole of the capacitor.

[0027] like Figure 5As shown, the power signal demodulation circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a comparator CMP, wherein the differential power supply ACP and the ground signal ACN are respectively connected to one end of the resistor R1 and the resistor R3, the other end of the resistor R1 is grounded through the resistor R2, and the other end of the resistor R3 is grounded through the resistor R4, the in-phase terminal of the comparator CMP is connected to the common end of the resistor R1 and the resistor R2, and the reverse terminal is connected to the common end of the resistor R3 and the resistor R4, and the output end OUT of the comparator serves as the output end of the power signal demodulation circuit.

[0028] In this embodiment, the resistance value of the resistor R1 is equal to the resistance value of the resistor R3, and the resistance value of the resistor R2 is equal to the resistance value of the resistor R4.

[0029] In this embodiment, the resistance values ​​of the resistors R1 and R3 are smaller than the resistance values ​​of the resistors R2 and R4.

[0030] In this embodiment, the resistance values ​​of R1 and R3 are between 100 and 500 ohms, and the resistance values ​​of R2 and R4 are between 5k and 10k ohms.

[0031] like Figure 6 As shown, the differential power supply signal is characterized in that when ACP is a system high level, ACN is a system low level. When ACP is a system low level, ACN is a system high level. In other words, the differential power supply is a pair of reciprocal signals with a phase difference of 180°.

[0032] It should be emphasized that the differential power signal is different from the differential signal in the general sense because the differential signal in the general sense has a weak driving capability, while the differential power signal has a very strong driving capability and can provide the required driving current for the entire circuit while transmitting data.

[0033] Different from traditional sine wave AC, the rectification efficiency of differential power supply is greatly improved due to the 180° phase difference. During the entire differential power supply data transmission period, only the moment of differential power supply signal change is lost. Therefore, the capacitance value of the filter capacitor after rectification is lower, which greatly reduces the cost and is easier to integrate into the chip.

[0034] The power signal demodulation circuit works as follows: Specifically, ACP is connected to the non-inverting terminal of the comparator CMP after voltage division through resistors R1 and R2. ACN is connected to the inverting terminal of the comparator CMP after voltage division through resistors R3 and R4. And R2=R4, R1=R3. Let the voltage of the non-inverting terminal of the comparator be Vp and the voltage of the inverting terminal be Vn, then: ; ; Since R2=R4, R1=R3, we can conclude that: Obviously, 0 < k < 1.

[0035] Then: Vp = ACP * k, Vn = ACN * k.

[0036] It can be concluded that: Vp is proportional to ACP, and Vn is proportional to ACN.

[0037] Therefore, during the process of differential power supply for data transmission, when ACP is the system high level and ACN is the system low level, then at this time the comparator Vp > Vn, and at this time the output terminal OUT of the comparator CMP is at the high level. When ACP is the system low level and ACN is the system high level, then at this time the comparator Vp < Vn, and at this time the output terminal OUT of the comparator CMP is at the low level.

[0038] As Figure 6 and Figure 7 shown, during the entire data transfer period, the differential power supplies ACP and ACN change rapidly, and the comparator CMP continuously converts the differential signal into a single-ended demodulated signal and outputs it at the OUT terminal, thereby realizing the demodulation of the signal in the differential power supply.

[0039] As Fig.10 shown, the data protocol decoding circuit includes a 12-bit latch, a 12-bit shift register, a timer circuit, an edge detection circuit, a start / stop detection circuit, an OR gate U3, a NOT gate U4, an RS flip-flop U5, a bit counter, a data counter, an address detection circuit, and a data latch circuit; the input terminal and the clock terminal of the edge detection circuit are respectively connected to the internal standard digital signal PWR_DAT and the first clock CLK, and generate a DPL signal corresponding to the rising edge of PWR_DAT; the clock terminal and the reset terminal of the timer circuit are respectively connected to the first clock CLK and the DPL signal; and generate a second clock CK190US; the period of the second clock CK190US is 190 μs; the digital input terminal of the start / stop detection circuit is connected to the internal standard digital signal PWR_DAT, the clock terminal is connected to the second clock CK190US, one output signal RSTB of the start / stop detection circuit is connected to one input terminal of the RS flip-flop U5 through the NOT gate U4, and another output signal END is connected to the other input terminal of the RS flip-flop U5. The output terminal of the RS flip-flop U5 outputs an ENOM signal to the input terminal of the OR gate U3 and the enable terminal of the mode control circuit; one input terminal of the OR gate U3 is connected to the DPL signal, and the output terminal is connected to the reset terminal of the bit counter; the clock terminal of the bit counter is connected to the second clock CK190US, and the output terminal outputs a DCK signal, and sends it to the clock terminal of the data counter, the clock terminal of the address detection circuit, and the clock terminal of the 12-bit shift register respectively; the reset terminal of the data counter is connected to one output signal RSTB of the start / stop detection circuit, and the two output enable signals D7BIT and D19BIT of the data counter are respectively connected to the data enable terminals of the address detection circuit ( Fig.10D7BIT in the data latch circuit) and the data enable terminal ( Fig.10 D19BIT in the output enable signal D19BIT is also connected to the input of the OR gate U3; the digital input and clock terminals of the 12-bit shift register are respectively connected to the internal standard digital signals PWR_DAT and DCK signals, and the output is connected to the input of the 12-bit latch and the verification bit and address input multiplexing terminal of the address detection circuit ( Fig.10 DAT[6:0] in the address detection circuit); the address input terminal of the address detection circuit is connected to the output of the address module, that is, AD[2:0]; the reset terminal of the address detection circuit is connected to an output signal RSTB of the start-stop detection circuit; the output terminal of the address detection circuit is connected to the data input terminal of the data latch circuit and sends a DAOK signal; the clock terminal of the data latch circuit is connected to the first clock CLK, and the output terminal is connected to the data latch signal terminal of the 12-bit latch, that is, Fig.10 The LCH terminal in the 12-bit latch outputs the control data DAL[11:0].

[0040] The working principle of the data protocol decoding circuit is: the power signal demodulation circuit converts the data on the differential data lines ACP and ACN into the internal standard digital signal PWR_DAT, and then the data decoding circuit completes the decoding of the data packet. The schematic diagram of the decoding circuit is shown in Fig.10.The start-stop detection circuit is responsible for identifying the start code and stop code. When the low level of PWR_DAT lasts for more than 20ms, the start-stop detection circuit generates an RSTB signal, indicating that the start code is successfully identified, indicating the start of the transmission of a data packet. At this time, the address detection module and the data counter are restored to the initial state by the RSTB signal. The ENOM signal is set to a low level, so that the LED drive circuit stops outputting and the bit counter is turned on at the same time. The bit counter is used to identify each bit of data. The data starts with the rising edge of PWR_DAT. The edge detection circuit outputs a DPL pulse signal at the rising edge of PWR_DAT, resets the bit counter, and the DCK signal becomes low level, and resets the timer circuit at the same time. The timer circuit outputs the second clock CK190US with a period of 190us; the bit counter counts the second clock CK190US 8 times and generates a DCK signal that becomes high level. At this time, the bit counter stops working and maintains the current state until it is reset next time and then restarts working. The rising edge of DCK is used to latch the value of PWR_DAT and push it into the 12-bit shift register. When the data volume reaches 7 bits, the address detection circuit determines whether it meets the requirements of the current circuit. At this time, DAT[6:3] should be a fixed value of 1010, and DAT[2:0] should be the same as the internal inherent address AD[2:0] or 7. If this requirement is met, the DAOK signal will become high and the state will be locked. If this requirement is not met, the DAOK signal will remain low. However, no matter what the state is, the address detection circuit will maintain the current output state until the start-stop detection circuit re-identifies the start code and generates the RSTB signal to reset it before it can work again. When the data is decoded to 19 bits, if the DAOK signal is high, a latch signal LDDT is generated to latch the 12-bit data from the 12-bit shift register into the 12-bit latch for standby use, otherwise the LDDT latch signal will not be generated. However, regardless of whether the latch signal LDDT is finally generated, it means that the decoding of a data packet has ended. Generally, a frame of data contains one or more data packets. The circuit decodes each data packet and determines whether it is valid. When the PWR_DAT high level lasts for 20ms, the start-stop detection circuit recognizes the stop code and generates an END signal. The ENOM signal is set to a high level, indicating that the data decoding is completed. The LED drive circuit starts to output normally and use the latest received data.

[0041] A method for power supply and differential data transmission using a power line and a ground line, comprising: Convert the differential power supply ACP and ground signal ACN into DC power supply VCC and ground signal GND to provide a stable DC voltage for the normal operation of the circuit; When the differential power supply ACP is at a high level and the ground signal ACN is at a low level, a high level demodulation signal is output; When the differential power supply ACP is at a low level and the ground signal ACN is at a high level, a low level demodulation signal is output; The low level appearing in the demodulated signal is recorded as P code; The duration of the high level in the demodulated signal is obtained and recorded as t. When t>Trst, the high level corresponding to the time t is recorded as the reset code; the first high level that appears after the reset code and lasts less than the reset code time is recorded as the reference code, and the time of the high level is recorded as Tref; when When , the high level corresponding to the time t is recorded as 0 code; when When t is reached, the high level corresponding to the time t is recorded as code 1; wherein n, m are natural numbers greater than 1, and m>n; Obtain a sequence consisting of 0 and 1 for each frame of data in the demodulated signal according to the reset code, the reference code, the 0 code, and the 1 code, and use the sequence as a decoding signal; The N data bits after the reference code in the sequence are used as the command code, and the remaining data bits after the command code are used as the data code, where the data bit is 0 or 1; according to the command code, the data code and the LED chip address, a control instruction is obtained to drive the LED to work; The start-stop detection circuit is responsible for identifying the start code and stop code. When the low level of PWR_DAT lasts for more than 20ms, the start-stop detection circuit generates an RSTB signal, indicating that the start code is successfully identified, indicating the start of a data packet transmission. At this time, the address detection module and the data counter are restored to the initial state by the RSTB signal; The ENOM signal is set to a low level, so that the LED drive circuit stops outputting and the bit counter is turned on at the same time. The bit counter is used to identify each bit of data. The data starts from the rising edge of PWR_DAT. The edge detection circuit outputs a DPL pulse signal at the rising edge of PWR_DAT to reset the bit counter. The DCK signal becomes a low level and resets the timer circuit at the same time. The timer circuit outputs the second clock CK190US with a period of 190us. After the bit counter counts the second clock CK190US 8 times, the DCK signal generated becomes high level. At this time, the bit counter stops working and maintains the current state until it is reset and restarts working next time; the rising edge of DCK is used to latch the value of PWR_DAT and push it into the 12-bit shift register; when the data volume reaches 7 bits, the address detection circuit determines whether it meets the requirements of the current circuit. At this time, DAT[6:3] is a fixed value of 1010, and DAT[2:0] is the same as the internal inherent address AD[2:0] or 7. If this requirement is met, the DAOK signal will become high level and the state is locked. If this requirement is not met, the DAOK signal remains low level unchanged; no matter what state it is, the address detection circuit will maintain the current output state until the start-stop detection circuit re-identifies the start code and generates RSTB signal to reset it, and then it will work again; When the data is decoded to 19 bits, if the DAOK signal is high, a latch signal LDDT is generated to latch the 12-bit data from the 12-bit shift register into the 12-bit latch for standby use, otherwise no LDDT latch signal is generated; the decoding of a data packet is completed; when the PWR_DAT high level lasts for 20ms, the start-stop detection circuit recognizes the stop code and generates an END signal, and the ENOM signal is set to a high level, indicating that the data decoding is completed, and the LED drive circuit starts to output normally and use the latest received data.

[0042] Among them, the detailed process of the data protocol decoding circuit during the decoding process is: When the demodulated signal is at a low level for a period of time, the low level during this period is defined as P code, and the low level time is defined as Tp. At the same time, the duration of the high level in the demodulated signal is defined as t.

[0043] Furthermore, it is stipulated that when t>Trst, the code type is defined as a reset code.

[0044] Furthermore, the high level between two P codes is defined as 1 code, 0 code, and reference code. In order to distinguish the above code types, the high level after the first P code that is less than the reset code time is defined as the reference code, and the time is defined as Tref.

[0045] Furthermore, in order to distinguish code 0 from code 1, we define the high level time of code 0 as T0 and the high level time of code 1 as T1, and satisfy T1=n*T0, Tref=m*T0, where n and m are natural numbers greater than 1, and m>n. Obviously, when is defined as 0 code, when is defined as 1 code.

[0046] Furthermore, by defining the data pattern, the data protocol decoding circuit can identify "0" or "1" of the demodulated signal, and thus can identify the sequence of "0" and "1" in the entire demodulated signal.

[0047] Specifically, Figure 8 and Fig. 9 As shown, a frame of data can be defined as including a reset code RST, a reference code REF, a command code CMD, and data codes D0, D1...D M And other basic elements. The command code and data code can be composed of N data bits, N is a natural number that is not 0. The data bit is the 0 code or 1 code. Preferably, N=8, and a command code or data code contains 8 data bits. At this point, the data decoding protocol decoding circuit can complete the decoding of the demodulated signal according to the above-mentioned data frame structure and the definition of the data code type, and then combine the decoded data with the chip ID to decide whether to execute the corresponding instruction. The above is only a preferred implementation of the present invention, and does not impose any formal limitation on the present invention. Any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are within the scope of the technical solution of the present invention.

Claims

1. An LED driving circuit using two wires for power supply and data transmission, characterized in that: A rectifier circuit is included, wherein the input end of the rectifier circuit is connected to a differential power supply ACP and a ground signal ACN through two wires, and the differential power supply ACP and the ground signal ACN are converted into a direct current power supply VCC and a ground signal GND, wherein the two wires include a power line and a ground line, and the direct current power supply VCC and the ground signal GND provide a stable direct current voltage for the normal operation of the circuit; A power signal demodulation circuit, wherein the input end of the power signal demodulation circuit is connected to the differential power supply ACP and the ground signal ACN through two lines, and the differential power supply ACP and the ground signal ACN are demodulated to obtain a demodulation signal; A data protocol decoding circuit, wherein a first input end of the data protocol decoding circuit is connected to the DC power supply VCC, and a second input end is connected to the output end of the power signal demodulation circuit to receive the demodulated signal and decode the demodulated signal, wherein the decoded data is used to control the LED.

2. The LED driving circuit using two wires for power supply and data transmission according to claim 1, characterized in that: The rectifier circuit includes four diodes D1, D2, D3, D4 and C1, wherein ACP is connected to the cathode of diode D3 and the anode of diode D1, ACN is connected to the cathode of diode D4 and the anode of diode D2, the anode of diode D1 and the cathode of diode D2 are connected as the rectified DC power supply VCC, the anode of diode D3 and the anode of diode D4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

3. The LED driving circuit using two wires for power supply and data transmission according to claim 1, characterized in that: The rectifier circuit includes a PMOS tube P1, a PMOS tube P2, an NMOS tube N1, and an NMOS tube N2, wherein the source end of P1 is connected to the source end of P2 as the rectified DC power supply VCC, the drain end of P1 is connected to the drain end of N1 and connected to the differential power supply ACP, and are respectively connected to the gate ends of P2 and N2, the drain end of P2 is connected to the drain end of N2 and connected to the differential power supply ACN, and are respectively connected to the gate ends of P1 and N1, and the source end of N1 is connected to the source end of N2 as the rectified ground signal GND.

4. The LED driving circuit using two wires for power supply and data transmission according to claim 1, characterized in that: The rectifier circuit includes four transistors, namely N1, N2, N3, and N4. The emitter and collector of each transistor are connected as an anode, and the base is used as a cathode. Among them, ACP is connected to the cathode of transistor N3 and the anode of transistor N1, ACN is connected to the cathode of transistor N4 and the anode of transistor N2, the anode of transistor N1 and the cathode of transistor N2 are connected as the rectified DC power supply VCC, the anode of transistor N3 and the anode of transistor N4 are connected as the rectified ground signal GND, and the DC power supply VCC and the ground signal GND are incorporated into capacitor C1.

5. The LED driving circuit using two wires for power supply and data transmission according to claim 1, characterized in that: The power signal demodulation circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a comparator CMP, wherein a differential power supply ACP and a ground signal ACN are respectively connected to one end of the resistor R1 and the resistor R3, the other end of the resistor R1 is grounded through the resistor R2, and the other end of the resistor R3 is grounded through the resistor R4, the in-phase terminal of the comparator CMP is connected to the common end of the resistor R1 and the resistor R2, and the reverse terminal is connected to the common end of the resistor R3 and the resistor R4, and the output end OUT of the comparator serves as the output end of the power signal demodulation circuit.

6. The LED driving circuit using two wires for power supply and data transmission according to claim 6, characterized in that: The resistance value of the resistor R1 is equal to the resistance value of the resistor R3, and the resistance value of the resistor R2 is equal to the resistance value of the resistor R4.

7. The LED driving circuit using two wires for power supply and data transmission according to claim 7, characterized in that: The resistance values ​​of the resistors R1 and R3 are smaller than the resistance values ​​of the resistors R2 and R4.

8. The LED driving circuit using two wires for power supply and data transmission according to claim 7, characterized in that: The data protocol decoding circuit includes a 12-bit latch, a 12-bit shift register, a timer circuit, an edge detection circuit, a start-stop detection circuit, an OR gate U3, a NOT gate U4, an RS trigger U5, a bit counter, a data counter, an address detection circuit, and a data latch circuit; wherein the input end and the clock end of the edge detection circuit are respectively connected to the internal standard digital signal PWR_DAT and the first clock CLK, and a DPL signal corresponding to the rising edge of PWR_DAT is generated; the clock end and the reset end of the timer circuit are respectively connected to the first clock CLK and the DPL signal, and a second clock CK is generated. 190US; the digital input terminal of the start-stop detection circuit is connected to the internal standard digital signal PWR_DAT, the clock terminal is connected to the second clock CK190US, an output signal RSTB of the start-stop detection circuit is connected to an input terminal of the RS trigger U5 through the NOT gate U4, another output signal END is connected to the other input terminal of the RS trigger U5, the output terminal of the RS trigger U5 outputs the ENOM signal to the input terminal of the OR gate U3 and the enable terminal of the mode control circuit; an input terminal of the OR gate U3 is connected to the DPL signal, and the output terminal is connected to the reset terminal of the bit counter; the clock terminal of the bit counter is connected to the second The clock CK190US outputs the DCK signal at the output end, and is sent to the clock end of the data counter, the clock end of the address detection circuit, and the clock end of the 12-bit shift register respectively; the reset end of the data counter is connected to an output signal RSTB of the start-stop detection circuit, and the two output enable signals D7BIT and D19BIT of the data counter are connected to the data enable end of the address detection circuit and the data enable end of the data latch circuit respectively; the output enable signal D19BIT is also connected to the input end of the OR gate U3; the digital input end and the clock end of the 12-bit shift register are connected to the internal standard digital The signals PWR_DAT and DCK are output and connected to the input of the 12-bit latch and the verification bit and address input multiplexing end of the address detection circuit; the address input of the address detection circuit is connected to the output of the address module, the reset of the address detection circuit is connected to an output signal RSTB of the start-stop detection circuit, the output of the address detection circuit is connected to the data input of the data latch circuit and sends a DAOK signal; the clock of the data latch circuit is connected to the first clock CLK, the output is connected to the data latch signal end of the 12-bit latch, and the output of the 12-bit latch outputs the control data DAL[11:0].

9. A method for power supply and differential data transmission using a power line and a ground line, characterized in that: include, Convert the differential power supply ACP and ground signal ACN into DC power supply VCC and ground signal GND to provide a stable DC voltage for the normal operation of the circuit; When the differential power supply ACP is at a high level and the ground signal ACN is at a low level, a high level demodulation signal is output; When the differential power supply ACP is at a low level and the ground signal ACN is at a high level, a low level demodulation signal is output; The low level appearing in the demodulated signal is recorded as P code; Obtain the duration of the high level in the demodulated signal and record it as t, and when t>Trst, record the high level corresponding to the time t as a reset code; The first high level that appears after the reset code and lasts less than the reset code time is recorded as the reference code, and the time of the high level is recorded as Tref. When , the high level corresponding to the time t is recorded as 0 code; when When t is reached, the high level corresponding to the time t is recorded as code 1; wherein n, m are natural numbers greater than 1, and m>n; Obtain a sequence consisting of 0 and 1 for each frame of data in the demodulated signal according to the reset code, the reference code, the 0 code, and the 1 code, and use the sequence as a decoding signal; The N data bits after the reference code in the sequence are used as the command code, and the remaining data bits after the command code are used as the data code, where the data bit is 0 or 1; according to the command code, the data code and the LED chip address, a control instruction is obtained to drive the LED to work; The start-stop detection circuit is responsible for identifying the start code and stop code. When the low level of PWR_DAT lasts for more than 20ms, the start-stop detection circuit generates an RSTB signal, indicating that the start code is successfully identified, indicating the start of a data packet transmission. At this time, the address detection module and the data counter are restored to the initial state by the RSTB signal; The ENOM signal is set to a low level, so that the LED drive circuit stops outputting and the bit counter is turned on at the same time. The bit counter is used to identify each bit of data. The data starts from the rising edge of PWR_DAT. The edge detection circuit outputs a DPL pulse signal at the rising edge of PWR_DAT to reset the bit counter. The DCK signal becomes a low level and resets the timer circuit at the same time. The timer circuit outputs the second clock CK190US with a period of 190us. After the bit counter counts the second clock CK190US 8 times, the DCK signal generated becomes high level. At this time, the bit counter stops working and maintains the current state until it is reset and restarts working next time; the rising edge of DCK is used to latch the value of PWR_DAT and push it into the 12-bit shift register; when the data volume reaches 7 bits, the address detection circuit determines whether it meets the requirements of the current circuit. At this time, DAT[6:3] is a fixed value of 1010, DAT[2:0] is the same as the internal inherent address AD[2:0] or 7. If this requirement is met, the DAOK signal will become high level and the state is locked. If this requirement is not met, the DAOK signal remains low level unchanged; no matter what In any state, the address detection circuit will keep the existing output state until the start-stop detection circuit re-identifies the start code and generates the RSTB signal to reset it, and then it will work again; when the data is decoded to 19 bits, if the DAOK signal is high, the latch signal LDDT is generated to latch the 12-bit data from the 12-bit shift register into the 12-bit latch for standby use, otherwise the LDDT latch signal will not be generated; the decoding of a data packet is completed; when the PWR_DAT high level lasts for 20ms, the start-stop detection circuit recognizes the stop code and generates the END signal, and the ENOM signal is set to a high level, indicating that the data decoding is completed, and the LED drive circuit starts to output normally and use the latest received data.

Citation Information

Patent Citations

  • Intelligent LED drive power supply

    CN102843841A

  • LED drive circuit for transmitting data through power line and data transmission method

    CN107896400A

  • Self-adaptive data decoding circuit and LED unit circuit

    CN111970792A

  • Power supply and communication circuit based on two direct-current lines and method thereof

    CN113922796A

  • Power source superimposed multiplex communication system

    JP2010098530A

Cited By

  • Coding communication method of LED driving chip, controller and LED driving system

    CN121619700A