The present disclosure relates to LED driving, and in particular to a method and a circuit for data transmission by pulling a power line down to a ground line.
With the rapid development of LED (Light-emitting Diode) lighting and display technology, the design and optimization of LED driving control has become a key link to enhance product competitiveness and reduce costs. Traditional LED driving control systems typically rely on independent signal lines to transmit control data for controlling LEDs, including functions such as brightness adjustment, color change, and dynamic display.
However, the use of additional signal lines significantly increases the material cost, and aggravates the complexity of system wiring, installation and later maintenance. Meanwhile, such a control way is not suitable for a scenario where only a two-line product with a power line and a ground line is available.
To solve the defects in the prior art, the present disclosure provides a method and a circuit for data transmission by pulling a power line down to a ground line, thus solving the problems of increased cost, complicated wiring, installation and maintenance caused by the use of additional signals at present and inadaptability to two-line products.
To achieve the objective above, the present disclosure employs the following technical solution: a method for data transmission by pulling a power line to a ground line, including:
Demodulating a waveform signal on a power supply VCC includes the following sub-steps:
A power supply level is defined as VPWR, and a system ground level is defined as VGND, and a first turn-on voltage VT41, a second turn-on voltage VT42, a first trigger threshold V1 and a second trigger threshold V2 are acquired.
The power supply VCC is divided into two conditions: converting a voltage of the power supply VCC from VGND to VPWR, and the voltage of the power supply VCC from VPWR to VGND.
When the voltage of the power supply VCC is converted from VGND to VPWR, acquiring the first level signal specifically includes the following sub-steps: with the increase of VCC voltage, when VT41<VCC<V1, obtaining the first level signal at a high level, and inverting the first level signal to obtain the first inverted level signal at a low level; when V1<VCC, obtaining the first level signal at a low level, and inverting the first level signal to obtain the first inverted level at a high level; and acquiring the second level signal specifically comprises the following sub-steps: with the increase of the voltage of VCC, when VT42<VCC<V2, obtaining the second level signal at a high level, and when V2<VCC, obtaining the second level signal at a low level.
When the voltage of the power supply VCC is converted from VPWR to VGND, acquiring the first level signal specifically includes the following sub-steps: with the decrease of the voltage of VCC, when V1<VCC<VPWR, obtaining the first level signal at a low level, and inverting the first level signal to obtain the first inverted level signal at a high level; when VT41<VCC<V1, obtaining the first level signal at a high level, and inverting the first level signal to obtain the first inverted level at a low level; and acquiring the second level signal specifically comprises the following sub-steps: with the decrease of the voltage of VCC, when V2<VCC<VPWR, obtaining the second level signal at a low level, and when VT42<VCC<V2, obtaining the second level signal at a high level.
When the first level signal is at a high level, the first inverted level signal is at a low level, and the demodulated signal is at a low level at this time; and when the first level signal is at a low level, the first inverted level signal is at a high level, and a level state of the demodulated signal is determined by the second level signal.
When the second level signal is at a high level, the level state of the demodulated signal is determined by the first inverted level signal; and when the second level signal is at a low level and the first inverted level signal is at a high level, the demodulated signal is at a high level at this time.
The first trigger threshold V1 is less than the second trigger threshold V2, that is, V1<V2.
When the voltage of the power supply VCC is converted from VGND to VPWR, with the increase of the voltage of VCC:
When the voltage of the power supply VCC is converted from VPWR to VGND, with the decrease of the voltage of VCC:
recording a high level corresponding to the duration t as 0 code; when
recording a high level corresponding to the duration t as 1 code, wherein n and m are natural numbers greater than 1, and m>n;
The method further includes:
A circuit for data transmission by pulling a power line down to a ground line includes:
The power signal demodulation circuit includes:
An output of the first level trigger module is connected to an input terminal of the inverter INV2, and an output of the inverter INV2 is connected to a R terminal of a RS flip-flop, and is used for zero clearing of an output terminal Q of the RS flip-flop, thus enabling the output terminal Q of the RS flip-flop to output a low level; an output of the second level trigger module is connected to an S terminal of the RS flip-flop, and configured to set the output terminal Q of the RS flip-flop, thus enabling the output terminal Q of the RS flip-flop to output a high level.
The first level trigger module includes a pull-up resistor R1, a transistor T1, a transistor T2, a transistor T3, a transistor T4, and an inverter INV1.
Internal elements and topological connection relationships of the second level trigger module are the same as those of the first level trigger module.
The RS flip-flop includes an input NAND gate NAND1, an input NAND gate NAND2, and an inverter INV3.
One input terminal S of the input NAND gate NAND1 is connected to an output terminal of the second level trigger module, and the other terminal of the input NAND gate NAND1 is connected to an output terminal of the input NAND gate NAND2. One input terminal R of the input NAND gate NAND2 is connected to an output terminal of the inverter INV2, and the other terminal of the input NAND gate NAND2 is connected to an output terminal of the input NAND gate NAND1. An input terminal of the inverter INV3 is connected to an output terminal of the input NAND gate NAND2, and an output thereof serves as an output of the power signal demodulation circuit.
In conclusion, the present disclosure has the following beneficial effects:
The power line is configured for data transmission in a manner of pulling the power line down to the ground. Data output is achieved by performing signal identification on a duration of a trigger level in the process of pulling the power line to the ground or pulling the power line up from the ground. A data signal demodulated from the power line is sent into a decoding module for protocol decoding, thus achieving the control of an LED driver unit. A system requires only two lines, i.e., a power line and a ground line, and the control of the LED system can be achieved without an additional signal line, which is beneficial to reduce the cost, facilitate the production and installation, enhance the applicability of a product, as well as beneficial to chip integration of an LED driver circuit.
The present disclosure can reduce the cost: the material cost can be significantly reduced by reducing or eliminating the dependence on an independent signal line, this is because no additional cables and connectors are needed.
The present disclosure can simplify the system wiring: the complicated system wiring is avoided, making the production process of an LED driving control system simpler and more convenient.
The present disclosure is convenient for installation and maintenance: the system component is reduced, the complexity of installation is reduced, and the later maintenance and trouble removal are convenient.
The present disclosure is wide in applicability: the method is suitable for scenarios where only a two-line product with a power line and a ground line is available, and the adaptability and flexibility of the product are enhanced.
The present disclosure is further described below with reference to accompanying drawings.
The specific embodiment is only an explanation of the present disclosure, rather than limiting the present disclosure. Those skilled in the art, after reading this specification, can make changes without creative contribution to the embodiment as needed, and all the modifications in the scope of the claims of the present disclosure are protected by the patent law.
In order to make the objectives, technical solutions and advantages of the present disclosure more clearly, an apparatus provided by the present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments. Advantage and features of the present disclosure will become more clearly from the follow description. It should be noted that the accompanying drawings are all depicted in extremely simplified forms and at inaccurate scales, and are only for the purpose of assisting to describe the embodiments of the present disclosure conveniently and clearly. To better illustrate the objectives, features, and advantages of the present disclosure, please refer to the accompanying drawings. It should be appreciated that the structures, proportions, sizes, and the like of the figures in the present disclosure are intended to be used in conjunction with the disclosure of the specification for those skilled in the art for understanding and reading, which are not intended to limit the conditions for implementing the present disclosure and therefore have no substantive technical significance. Any modifications to the structures, changes in proportional relationships, or adjustments in size shall still fall within the scope of the technical content disclosed by the present disclosure without affecting the efficacy and objectives achievable by the present disclosure.
A method for data transmission by pulling a power line to a ground line is provided to cooperate with a circuit for data transmission by pulling a power line down to the ground line. The power line is pulled down to the ground for data transmission, thus achieving data transmission of a two-line product, and saving the cost of redundant signals of redundant lines.
To describe the circuit for data transmission by pulling a power line down to the ground line better, the circuit for data transmission by pulling a power line down to the ground line is further described here:
Further, the power signal demodulation circuit is configured to generate a demodulated signal, as shown in
An output of the first level trigger module is connected to an input terminal of the inverter INV2, and an output of the inverter INV2 is connected to a R terminal of a RS flip-flop, and is used for zero clearing of an output terminal Q of the RS flip-flop, thus enabling the output terminal Q of the RS flip-flop to output a low level. An output of the second level trigger module is connected to an S terminal of the RS flip-flop, and configured to set the output terminal Q of the RS flip-flop, thus enabling the output terminal Q of the RS flip-flop to output a high level.
Further, the first level trigger module includes a pull-up resistor R1, a transistor T1, a transistor T2, a transistor T3, a transistor T, and an inverter INV1. One terminal of the pull-up resistor R1 is connected to a power line, the other terminal of the pull-up resistor R1 is connected to a drain of the transistor T1, a gate of the transistor T1 is connected to the power line, a source of the transistor T1 is connected to gate-drain of the transistor T2 to make the transistor T2 form an equivalent diode through a diode connection method of the transistor, and a source of the transistor T2 is grounded. Gates of the transistor T3 and the transistor T4 are connected together and then connected to the drain of the transistor T1 and one terminal of the pull-up resistor T1, drains of the transistor T3 and the transistor T4 are connected, and sources of the transistor T3 and the transistor T4 are respectively connected to the power supply and the ground to form an inverter structure. An output of the inverter is connected to an input terminal of the inverter INV1, and an output terminal of the inverter INV1 serves as an output of the first level trigger module.
Internal elements and topological connection relationships of the second level trigger module are the same as those of the first level trigger module.
Therefore, output states of the two-level trigger modules are determined by the level state of the power supply VCC, in other words, the states of the two-level trigger modules are triggered by the level state of the power supply VCC.
The RS flip-flop includes an input NAND gate NAND1, an input NAND gate NAND2, and an inverter INV3.
One input terminal S of the input NAND gate NAND1 is connected to an output terminal of the second level trigger module, the other terminal of the input NAND gate NAND1 is connected to an output terminal of the input NAND gate NAND2. One input terminal R of the input NAND gate NAND2 is connected to an output terminal of the inverter INV2, the other terminal of the input NAND gate NAND2 is connected to an output terminal of the input NAND gate NAND1. An input terminal of the inverter INV3 is connected to an output terminal of the input NAND gate NAND2, and an output thereof serves as an output of the power signal demodulation circuit.
A method for data transmission by pulling a power line down to a ground line includes:
Demodulating a waveform signal on a power supply VCC specifically includes the following sub-steps:
A power supply level is defined as VPWR, a system ground level is defined as VGND, and a first turn-on voltage VT41, a second turn-on voltage VT42, a first trigger threshold V1 and a second trigger threshold V2 are acquired. The first turn-on voltage VT41 and the second turn-on voltage VT42 are turn-on voltages of the transistors T4 of the two-level trigger modules, respectively, and the first trigger threshold V1 and the second trigger threshold V2 are trigger thresholds of the two-level trigger modules, respectively.
As a voltage of the power supply VCC needs to be converted between VPWR and VGND at a high speed during data transmission, the power supply VCC is divided into two conditions: the voltage of the power supply VCC is converted from VGND to VPWR, and the voltage of the power supply VCC is converted from VPWR to VGND.
When the voltage of the power supply VCC is converted from VGND to VPWR, acquiring the first level signal specifically includes the following sub-steps: with the increase of the voltage of VCC, when VT41<VCC<V1, the first level signal is at a high level, and the first level signal is inverted to obtain the first inverted level signal at a low level, and when V1<VCC, the first level signal is at a low level, and the obtained first inverted level is at a high level; acquiring the second level signal specifically includes the following sub-steps: with the increase of the voltage of VCC, when VT42<VCC<V2, the second level signal is at a high level, and when V2<VCC, the second level signal is at a low level.
When the voltage of the power supply VCC is converted from VPWR to VGND, acquiring the first level signal specifically includes the following sub-steps: with the decrease of the voltage of VCC, when V1<VCC<VPWR, the first level signal is at a low level, and the obtained first inverted level signal is at a high level, and when VT41<VCC<V1, the first level signal is at a high level, and the obtained first inverted level is at a low level; and acquiring the second level signal specifically comprises the following sub-steps: with the decrease of the voltage of VCC, when V2<VCC<VPWR, the second level signal is at a low level, and when VT42<VCC<V2, the second level signal is at a high level.
When the first level signal is at a high level, the first inverted level signal is at a low level, and at this time, the demodulated signal is at a low level. When the first level signal is at a low level, the first inverted level signal is at a high level, and at this time, the level state of the demodulated signal is determined by the second level signal.
When the second level signal is at a high level, the level state of the demodulated signal is determined by the first inverted level signal. When the second level signal is at a low level and the first inverted level signal is at a high level, the demodulated signal is at a high level.
The first trigger threshold V1 is less than the second trigger threshold V2, that is, V1<V2.
When the voltage of the power supply VCC is converted from VGND to VPWR, with the increase of the voltage of VCC:
When the voltage of the power supply VCC is converted from VPWR to VGND, with the decrease of the voltage of VCC:
The detailed process is as follows:
When the voltage of the power supply VCC is converted from VGND to VPWR, with the increase of the voltage of VCC, when the voltage of VCC is higher than the turn-on voltage VT4 of the transistor T4 but less than the trigger level VT, that is, VT4<VCC<VT. Due to the pull-up effect of R1, the transistor T3 is turned off, the transistor T4 is turned on, an input terminal of the INV1 is at a low level, and after single inversion, an output of the level trigger module is at a high level.
Further, when the voltage of VCC continues to rise beyond VT until reaching VPWR, i.e., VCC>VT, the transistors T1 and T2 are turned on, making gate inputs of T3 and T4 to be pulled to the relatively low level, the T3 is turned on, making the input of the inverter at a high level; and after single inversion, the output of the level trigger module is at a low level.
It needs to be emphasized that during chip design, the size of the T3 transistor needs to be greater than that of the T4 transistor, when VCC>VT, the T3 transistor has stronger driving capacity in comparison with the T4 transistor, thereby enabling an input terminal of the INV1 to be at a high level.
When the voltage of the power supply VCC is converted from VPWR to VGND, when the voltage of VCC decreases but is still higher than the trigger level VT, that is, VT<VCC<VPWR. As the transistors T1 and T2 are turned on, an output of a node N1 is at a relatively low level, and as the transistor T3 has greater driving capability than T4, an output of a node N3 is at a relatively high level. After single inversion, the output of the level trigger module remains at a low level.
Further, when the voltage of VCC continues to decrease to be lower than VT but higher than VT4, i.e., VT4<VCC<VT, the transistors T1 and T2 are turned off. Due to the pull-up effect of R1, the T3 is turned off, and the T4 is turned on, which makes the output of the N3 at a relatively high level, and after single inversion, the output of the level trigger module is at a low level.
It needs to be emphasized that to achieve the above effect, the size of the transistors and resistors need to be reasonably selected in the design process of the chip.
The operation of the above level trigger module can be summarized as one conclusion, in the process of converting between the power supply level VPWR and the ground level VGND, when the voltage of the power supply VCC is lower than the trigger level VT, the output of the level trigger module is high, and when the voltage of the power supply VCC is higher than the trigger level VT, the output of the level trigger module is low.
It should be noted that the trigger level thresholds of the first level trigger module and the second level trigger module are different.
Preferably, the trigger level of the first level trigger module is less than that of the second level trigger module. If the trigger level threshold of the first level trigger module is V1, and the trigger level threshold of the second level trigger module is V2, then V1<V2.
Further, the first level trigger module is connected to a reset terminal of the RS flip-flop after single inversion by the inverter INV2. The operation process thereof is as follows:
When the first level trigger module outputs a high level, after a single inversion, a clear terminal R of the flip-flop is at a low level, and thus an output terminal Q of the flip-flop outputs a low level. When the first level trigger module outputs a low level, after a single conversion, the clear terminal R of the flip-flop is at a high level, and thus an output state of the output terminal Q of the flip-flop is determined by an S terminal. It may be understood that when the level flip-flop 1 outputs a low level, the output of the flip-flop is not affected.
When the second level trigger module outputs a high level, a set terminal S of the flip-flop is at a high level, and the output state of the output terminal Q of the flip-flop is determined by the R terminal. It may be understood that when the level flip-flop 2 outputs a high level, the output of the flip-flop is not affected. When the second level trigger module outputs a low level, the set terminal S of the flip-flop is at a low level. In this case, the R terminal of the flip-flop is at a high level, and the output terminal Q of the flip-flop outputs a high level. It may be understood that when the level flip-flop 2 outputs a low level, and the R terminal of the flip-flop is at a high level, the flip-flop outputs a high level.
The operation principles of the level trigger module and the flip-flop are combined, the following provides a detailed description of the operation process of the power signal demodulation circuit during the conversion of the power supply VCC between the power supply level VPWR and the ground level VGND.
When the voltage of VCC is converted from VGND to VPWR, the process is as follows:
Specifically, when VCC<V1, the first level trigger module outputs a high level, which becomes a low level after a single conversion. In this case, the R terminal of the flip-flop is at a low level, making the Q terminal output a low level, and at this time, the output of the power signal demodulation circuit is at a low level.
Further, when the level of the VCC is higher than V1 and lower than V2, that is, V1<VCC<V2, the first level trigger module outputs a low level, which becomes high level after a single conversion, and at this time, the R terminal of the flip-flop is at a high level, and the output state of the flip-flop is determined by the S terminal. As VCC<V2, the second level trigger module outputs a high level, then the S terminal is at a high level, and the Q terminal of the flip-flop continues to keep at a low level state, that is, the output of the power signal demodulation signal is continuously kept at a low level.
Further, when VCC>V2, the second level trigger module outputs a low level, and the S terminal is at a low level. Apparently, the R terminal at this time is at a high level, and the output terminal Q of the flip-flop is set to be at a high level, and the output state of the power signal demodulation circuit is changed as high level.
In contrast, when the voltage of VCC is converted from VPWR to VGND, the process is as follows:
Specifically, when the level of the VCC is lower than V2 and higher than V1, that is, V1<VCC<V2, the second level trigger module outputs a high level, and the S terminal is at a high level. Apparently, the R terminal at this time is at a high level, and the output terminal Q of the flip-flop is kept at the original high level state, and at this time, the output state of the power signal demodulation circuit is maintained at a high level.
Further, when VCC<V1, the first level trigger module outputs a high level, which becomes a low level after a single inversion, and at this time, the R terminal of the flip-flop is at a low level, causing the Q terminal to output a low level. As a result, the output of the power signal demodulation circuit is converted to a low level.
In conclusion, the operation process of the power signal demodulation circuit is summarized as follows:
a high level corresponding to the duration t is recorded as 0 code; when
a high level corresponding to the duration t is recorded as 1 code, where n and m are natural numbers greater than 1, and m>n;
The chip is configured to receive decoded data to acquire the command code in the decoded data. Meanwhile, the chip intercepts the data code in the decoded data according to the own address. The command code and the data code form the control command of the chip, and the chip is configured to execute corresponding operation according to the control command.
The method further includes: the control command is converted into display data, and the display data is converted into gray duty data capable of being identified by an LED, where the gray duty data is configured to drive the LED.
The detailed process is as follows, as shown in
Further, when t>Trst, the code pattern is defined as the reset code.
Further, a high level between two P codes is defined as 1 code, 0 code, and reference code. To distinguish the above code patterns, it is regulated that a high level which appears after the first P code and has a duration shorter than a duration of the reset code is defined as the reference code, and the duration is defined as Tref.
Further, to distinguish the 0 code from the 1 code, the duration of a high level of 0 code is defined as T0, and the duration of a high level of 1 code is defined as T1, and it is satisfied that T1=n*T0, Tref=m*T0, where n and m are natural numbers greater than 1, and m is greater than n.
Apparently, when
it is defined as 0 code, and when
it is defined as 1 code.
Further, by defining the data code pattern, the data protocol decoding data can be configured to identify “0” or “1” of the demodulated signal, thus identifying the sequence consisting of “0” and “1” in the whole demodulated signal.
Specifically, as shown in
Further, if a corresponding command needs to be executed, the corresponding command and data are sent into the logic control circuit, and the logic control circuit is configured to generate corresponding display data through logic operation.
Further, the corresponding display data is sent to a display data control circuit, and the display data is converted into gray duty data capable of being identified by the LED.
Further, the gray duty data is sent to an LED driver circuit to drive a corresponding power tube, thus controlling the color, brightness, and mode of the LED.
In the above control process, the power supply VCC will be pulled down to the ground, and thus the circuit powered by the VCC will stop operating. However, to guarantee that the digital circuit continues to operate in a case that the power supply is turned off, a digital power hold circuit is required to maintain the required power supply.
Therefore, the method further includes:
Specifically, the digital power hold circuit is configured to generate a power supply required for the operation of the digital circuit. When the power supply VCC is at a high level, the digital power hold circuit is charged, and when the power supply VCC is at a low level, the digital power hold circuit supplies power to the digital circuit, and the power supply voltage decreases with the time. To ensure that the digital circuit can operate reliably, a duration of a low level state when the power supply VCC is pulled down to the ground line is ensured to be shorter than the time required for decreasing the voltage of the digital power hold circuit to a certain threshold level.
Specifically, as shown in
It needs to be emphasized that the time for pulling the power supply VCC down to the ground cannot exceed the time required for discharging the energy storage capacitor to a certain level.
Alternatively, to facilitate the integration in the chip, the diode can be replaced through the following ways. An emitter and a base of an NPN transistor or a PNP transistor are shorted together and then connected to the power supply VCC, a collector is connected to the energy storage capacitor, and the other terminal of the energy storage capacitor is grounded.
Alternatively, to facilitate the integration in the chip, the diode can be replaced through another way. A gate and a source of an NMOS (N-channel metal oxide semiconductor) transistor or a PMOS (P-channel metal oxide semiconductor) transistor are shorted together and then connected to the power supply VCC, a drain is connected to the energy storage capacitor, and the other terminal of the energy storage capacitor is grounded.
Alternatively, to facilitate the integration in the chip, the energy storage capacitor can be replaced through another way. A drain and a source of the NMOS transistor are shorted and then connected to the ground, and a gate is connected to the cathode of the diode to form a MOS capacitor.
The present disclosure further provides an LED driver circuit, the driving control of the LED can be implemented according to an LED brightness duty ratio signal.
Specifically, multiple LED driving ports are integrated in the LED driver circuit, which can be connected to different colors of LEDs. The circuit is configured to accurately control the color change and brightness of the LED by receiving a signal from the display data control circuit.
Specifically, the display data control circuit is firstly configured to analyze the brightness and enabling commands of the ports of the chip in the decoded command, and then to convert these commands into high and low levels required for driving the LED, as well as driving current signals. In this system, a high level signal is set to activate the LED (that is, the LED is on), while the low-level signal is configured to turn off the LED. The on-of state of the LED on each port can be flexibly controlled by regulating a state of each driving port.
Further, the brightness regulation of the LED is implemented by adjusting the proportion of a high level signal of the driving port in one cycle: when a high level signal occupies a relatively high proportion, the LED displays high brightness; otherwise, the brightness is lower. In addition, the brightness of the LED can be finely regulated by directly controlling the current on the driving port, and such a regulation process is determined by the setting of current parameters of an internal command of the chip.
The above is only the better embodiment of the present disclosure, and is not intended to limit the present disclosure in any form. Any simple modifications, equivalent changes or adaptations made to the above embodiments based on the technical essence of the present disclosure shall fall within the scope of the technical solutions of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202411476418.X | Oct 2024 | CN | national |