A clock multiplexing LED control system, method and LED module
By adopting clock multiplexing technology in the LED control system, using external clock signals for driving signal analysis and lighting control, the problem of large power consumption of existing LED control chips is solved, and the effect of reducing the power consumption of LED display screen system is achieved.
Patent Information
- Application Number
- CN202510162622.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-14
AI Technical Summary
The existing LED control chips use independent clock circuits to operate, resulting in large power consumption, which in turn makes the display system using multiple LEDs large power consumption.
A clock multiplexing LED control system is proposed. Through the connection between the control module and the LED module, the external clock signal is used to analyze and light control the driving signal, and when necessary, switch to the internal clock signal to ensure system stability.
The entire LED control system shares one clock, reducing the internal power consumption of a single LED module, thereby reducing the power consumption of multiple LED module display systems.
Smart Images

Figure CN119629799B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of LED technology, and in particular to a clock multiplexing LED control system, method and LED module. Background Art
[0002] Among the various existing LED products, each LED lamp includes a control chip, which is equipped with a processing circuit, a storage circuit, a driving circuit, etc., which are used to drive the lamp beads to light up. Among them, the power consumption of the control chip is generally 200-400uA. In order to read the driving data, the control chip generally has a built-in clock circuit, and the clock circuit accounts for half or more of the power consumption in the chip; as a result, when LEDs are used in scenes such as transparent displays and MiniLed displays, due to the large number of LEDs, the corresponding multiple control chips will significantly increase the power consumption of the entire system.
[0003] Therefore, the technical problem to be solved by the present application is that the existing LED control chip uses an independent clock circuit to work, resulting in high power consumption, which in turn leads to high power consumption of the display screen system using multiple LEDs. Summary of the invention
[0004] The present application provides a clock multiplexing LED control system, method and LED module, which can reduce the internal power consumption of a single LED module, thereby reducing the power consumption of a display screen system using multiple LED modules.
[0005] In a first aspect, an embodiment of the present application provides a clock multiplexing LED control system, comprising a control module and at least one LED module; a data input pin of the LED module and a data output pin of the control module are connected to a bus;
[0006] The clock input pin of the LED module is connected to the clock output pin of the previous LED module; the clock input pin of the first LED module is connected to the clock output pin of the control module;
[0007] The control module is used to generate a driving signal based on an external clock signal and driving data, and input the driving signal to the bus; input the external clock signal to the clock input pin of the first LED module;
[0008] The LED module is used to receive an external clock signal through a clock input pin and receive a driving signal through a data input pin; the driving signal is analyzed based on the external clock signal to obtain driving data;
[0009] Lights up according to driving data; sends external clock signal to clock output pin.
[0010] Furthermore, the LED module is also used to sample the driving signal according to the external clock signal after receiving the driving signal to obtain the high-level pulse width; and determine whether the high-level pulse width is less than a first preset threshold;
[0011] If so, the driving signal is parsed based on the internal clock signal and the internal clock signal is sent to the clock output pin.
[0012] Furthermore, the LED module is also used to continue sampling the high-level pulse width of the driving signal according to the received external clock signal after determining that the high-level pulse width is less than the first preset threshold, to determine whether the high-level pulse width is greater than the second preset threshold; if so, parse the received driving signal based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
[0013] Furthermore, the control module is also used to send a burn-in enable instruction to the bus; set the clock output pin connected to the first LED module to a high level; generate an address burn-in signal based on the address data, and send the address burn-in signal to the bus;
[0014] The LED module is also used to set the clock output pin to a low level after receiving a burning enable instruction; after receiving an address burning signal, obtain address data according to the address burning signal and the internal clock signal; determine whether the clock input pin is a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate a burning completion mark, and set the clock output pin to a high level.
[0015] Furthermore, the LED module is also used to determine whether the storage address is 0 when it is detected that there is no burning completion mark; if so, a burning completion mark is generated and the clock output pin is set to a high level; if not, the address data and the storage address are checked, and the clock output pin is set to a high level; if the address check is wrong, it is lit with a preset alarm color.
[0016] Furthermore, the control module is also used to send a burn-in end instruction to the bus and input the external clock signal to the clock input pin of the first LED module when receiving a burn-in end instruction or detecting that the address data reaches a preset burn-in threshold;
[0017] The LED module is also used to analyze the signal received by the data input pin based on the received external clock signal after receiving the burning end instruction; and send the external clock signal to the clock output pin.
[0018] Furthermore, the LED module is also used to shape the external clock signal before sending the external clock signal to the clock output pin.
[0019] Further, the data receiving pin of the control module is connected to the clock output pin of the last LED module;
[0020] The control module is also used to obtain the output clock signal of the last LED module; compare the external clock signal with the output clock signal to obtain a clock correction instruction; and send the clock correction instruction to the bus;
[0021] The LED module is also used to receive a clock correction instruction and to shape the external clock signal according to the clock correction instruction before sending the external clock signal to the clock output pin.
[0022] Furthermore, the LED module is also used to determine whether the clock input pin is at a high level when no external clock signal is received; if not, parse the drive signal based on the internal clock signal; and send the internal clock signal to the clock output pin.
[0023] In a second aspect, an embodiment of the present application provides a clock multiplexing LED control method, comprising:
[0024] The control module generates a driving signal based on an external clock signal and driving data;
[0025] The control module sends the driving signal and the external clock signal to the LED module;
[0026] The LED module receives a driving signal and an external clock signal;
[0027] The LED module analyzes the driving signal based on the external clock signal to obtain driving data;
[0028] The LED module lights up according to the drive data;
[0029] The LED module sends the external clock signal to the next LED module.
[0030] Furthermore, the method also includes:
[0031] The LED module samples the driving signal according to the external clock signal to obtain a high level pulse width;
[0032] Determine whether the high-level pulse width is less than a first preset threshold; if not, parse the drive signal based on the external clock signal; if so, parse the drive signal based on the internal clock signal and send the internal clock signal to the clock output pin.
[0033] Furthermore, the method also includes:
[0034] After determining that the high-level pulse width is less than the first preset threshold, the LED module continues to sample the high-level pulse width of the driving signal according to the received external clock signal; determines whether the high-level pulse width is greater than the second preset threshold; if so, parses the received driving signal based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
[0035] Furthermore, the method also includes:
[0036] The control module sends a burning enable command to the LED module;
[0037] The LED module responds to the burning enable instruction and sets the clock output pin to a low level;
[0038] The control module sets the clock output pin connected to the first LED module to a high level;
[0039] The control module generates an address burning signal based on the address data, and sends the address burning signal to the LED module;
[0040] The LED module obtains address data according to the address burning signal and the internal clock signal; determines whether the clock input pin is at a high level; if so, detects whether there is a burning completion mark; if not, stores the address data and generates a burning completion mark, and sets the clock output pin to a high level.
[0041] Furthermore, the method also includes:
[0042] When the LED module detects that there is no burning completion mark, it determines whether the storage address is 0;
[0043] If yes, a burn completion mark is generated and the clock output pin is set to a high level;
[0044] If not, the address data and storage address are checked and the clock output pin is set to a high level;
[0045] If the address verification is wrong, it will light up in the preset alarm color.
[0046] Furthermore, the method also includes:
[0047] The control module obtains the output clock signal of the last LED module; compares the external clock signal with the output clock signal to obtain a clock correction instruction; and sends the clock correction instruction to the LED module;
[0048] The LED module receives the clock correction instruction, and before sending the external clock signal to the clock output pin, shapes the external clock signal according to the clock correction instruction and then sends it to the clock output pin.
[0049] Furthermore, the above-mentioned comparing the external clock signal and the output clock signal to obtain the clock correction instruction includes:
[0050] Extracting a first feature set of an external clock signal and a second feature set of an output clock signal;
[0051] Compare the first feature set and the second feature set to obtain an error parameter;
[0052] Determine target parameters and correction values according to error parameters;
[0053] Generate clock correction instructions based on target parameters, correction values and LED quantity.
[0054] In a third aspect, an embodiment of the present application provides an LED module, including a processing unit, a driving unit and an LED lamp bead;
[0055] The processing unit is used to receive the driving signal of the bus and the external clock signal of the clock input pin; analyze the driving signal based on the external clock signal to obtain driving data; generate a PWM signal according to the driving data, and send the PWM signal to the driving unit; send the external clock signal to the clock output pin;
[0056] The driving unit is used to control the LED lamp beads to light up according to the PWM signal.
[0057] Furthermore, the LED module also includes a clock loss detection unit and an internal clock generation unit; the clock loss detection unit is used to receive an external clock signal and a drive signal, sample the drive signal according to the external clock signal, and obtain a high-level pulse width; determine whether the high-level pulse width is less than a first preset threshold; if so, send external clock loss information to the processing unit;
[0058] The processing unit is also used to obtain the internal clock signal of the internal clock generation unit when receiving the external clock loss information, parse the driving signal based on the internal clock signal, and send the internal clock signal to the clock output pin.
[0059] Furthermore, the processing unit is also used to set the clock output pin to a low level after receiving a burning enable instruction; after receiving an address burning signal, obtain address data according to the address burning signal and the internal clock signal; determine whether the clock input pin is a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate a burning completion mark, and set the clock output pin to a high level.
[0060] Further, the LED module also includes a clock shaping unit;
[0061] The processing unit is also used to send the received clock correction instruction and external clock signal to the clock shaping unit;
[0062] The clock shaping unit is used to shape the external clock signal according to the clock correction instruction, and send the shaped external clock signal to the clock output pin.
[0063] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0064] An embodiment of the present application provides a clock-multiplexed LED control system. First, the LED module is connected to the control module through a bus to obtain a driving signal; the control module sends an external clock signal to the LED module, and the LED module parses and processes the driving signal according to the received external clock signal, and passes the external clock signal to the next LED module, thereby achieving a shared clock for the entire LED control system without the need to use an internal clock, greatly reducing the internal power consumption of a single LED module, thereby reducing the power consumption of a display screen system that uses multiple LED modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A structural diagram of a clock-multiplexed LED control system provided as an exemplary embodiment of the present application.
[0066] Figure 2 A structural diagram of a clock-multiplexed LED control system provided as yet another exemplary embodiment of the present application.
[0067] Figure 3 A flowchart of a clock multiplexing LED control method provided by an exemplary embodiment of the present application.
[0068] Figure 4 A flowchart of LED burning steps based on clock multiplexing is provided for an exemplary embodiment of the present application.
[0069] Figure 5 A structural diagram of an LED module provided as an exemplary embodiment of the present application.
[0070] Figure 6 A structural diagram of an LED module provided in yet another exemplary embodiment of the present application.
[0071] Figure 7 A structural diagram of an LED module provided for another exemplary embodiment of the present application. DETAILED DESCRIPTION
[0072] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0073] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.
[0074] See also Figure 1An embodiment of the present application provides a clock-multiplexed LED control system, including a control module and at least one LED module; a data input pin of the LED module and a data output pin of the control module are connected to a bus.
[0075] The clock input pin of the LED module is connected to the clock output pin of the previous LED module; the clock input pin of the first LED module is connected to the clock output pin of the control module.
[0076] The control module is used to generate a driving signal based on an external clock signal and driving data, and input the driving signal to the bus; input the external clock signal to the clock input pin of the first LED module; the LED module is used to receive the external clock signal through the clock input pin and receive the driving signal through the data input pin; analyze the driving signal based on the external clock signal to obtain the driving data; light up according to the driving data; and send the external clock signal to the clock output pin.
[0077] When the control system includes a plurality of LED modules, the data input pins of the respective LED modules are connected in parallel to the bus, and the data output pins of the control module are connected to one end of the bus.
[0078] Each LED module receives an external clock signal and a driving signal, analyzes the driving signal according to the external clock signal, and transmits the external clock signal to the next LED module to realize the multiplexing of the clock signal.
[0079] The above embodiment provides a clock-multiplexed LED control system. First, the LED module is connected to the control module through a bus to obtain a driving signal; the control module sends an external clock signal to the LED module, and the LED module parses and processes the driving signal according to the received external clock signal, and transmits the external clock signal to the next LED module, thereby achieving the sharing of one clock by the entire LED control system without the need to use an internal clock, greatly reducing the internal power consumption of a single LED module, thereby reducing the power consumption of a display screen system using multiple LED modules.
[0080] In some embodiments, the LED module is also used to sample the driving signal according to the external clock signal after receiving the driving signal to obtain a high-level pulse width; determine whether the high-level pulse width is less than a first preset threshold; if so, parse the driving signal based on the internal clock signal and send the internal clock signal to the clock output pin.
[0081] Currently, for conventional LED modules, drive signals are all transmitted using NRZ return-to-zero code, with a communication rate of about 1Mbps. The high level of sending the 0 code is about 300ns, so the first preset threshold can be 2 / 5 of 300ns, that is, 120ns.
[0082] When sampling the driving signal, if the driving signal is at a high level, the detection and counting of the high level pulse width is started. When the driving signal becomes a low level, that is, when the falling edge is detected, the judgment is made based on the counted high level pulse width.
[0083] Specifically, since all LED modules share an external clock signal, if the external clock signal is lost due to problems with the crystal oscillator of the control module, it will affect the driving of the LED modules of the entire control system. Therefore, the present application still retains the function of generating an internal clock signal in each LED module. When the loss of the external clock signal is detected, the LED module will restore the internal clock circuit and use the internal clock signal as the working clock of the chip. At the same time, the internal clock signal is sent to the clock input pin of the next LED module through the clock output pin.
[0084] It is worth noting that since the external clock signal is directly input to the first LED module, that is, the first LED module in the control system, the first LED module is likely to detect the clock loss first. However, no matter which LED module detects the clock loss first and passes its own internal clock signal as the external clock signal, the subsequent LED modules will sample and analyze the signals transmitted on the bus based on the received internal clock signal.
[0085] Similarly, if the subsequent LED module detects that the received internal clock signal is also lost, it will also start the internal clock circuit and pass on its own internal clock signal.
[0086] It is understandable that in application scenarios such as display screens, there are a large number of LED modules, and the probability of each LED module detecting clock loss is almost zero. Therefore, there must be a scenario of clock multiplexing. Compared with each LED module only using the internal clock signal generated by the internal clock circuit, it can still achieve the effect of reducing power consumption.
[0087] The above embodiment adds a clock loss detection mechanism in the LED module, which can avoid the loss of clock signals during the clock multiplexing process and improve the working stability of the LED control system.
[0088] In some embodiments, the LED module is also used to continue sampling the high-level pulse width of the driving signal according to the received external clock signal after determining that the high-level pulse width is less than the first preset threshold, to determine whether the high-level pulse width is greater than the second preset threshold; if so, the received driving signal is analyzed based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
[0089] Here, still taking the communication rate of 1Mbps and the high level of sending 0 code in 300ns as an example, the second preset threshold can be 3 / 5 of 300ns, that is, when the high level pulse width is detected to be greater than 180ns, it is determined that the clock has been recovered.
[0090] Specifically, although the LED module will use the internal clock signal for clock multiplexing after detecting that the external clock is lost, the external clock signal will not always be in a lost state. If the external clock is lost due to external interference such as the crystal oscillator being affected by temperature, the external clock signal will be restored after the interference disappears. Therefore, this application allows the LED module to continue to use the lost external clock signal to sample the signal on the bus after detecting that the external clock is lost, so as to promptly resume the use of the external clock signal when the clock signal is restored, and shut down its own internal clock circuit to reduce power consumption.
[0091] It is worth noting that because the LED module needs to sample and obtain a high-level pulse width before it can determine whether the clock signal received through the clock input pin is lost or restored, and start the internal clock circuit when it is determined to be lost, there may be a situation: the external clock signal is lost, but at this time the LED module has passed the external clock signal to the next LED module, so that the next LED module also detects that the external clock signal is lost. At this time, at least two LED modules will start their own internal clock circuits. Adding a clock recovery detection mechanism will help avoid this situation. Even if the second LED module starts the internal clock circuit, when the first LED module switches to its own internal clock signal output, the second LED module will turn off its own internal clock circuit again because it detects that the clock signal has been restored, thereby reducing its own power consumption.
[0092] In the above embodiment, based on the detection of clock signal loss by the LED module, the detection of clock recovery is added, thereby further improving the utilization rate of clock multiplexing and reducing the power consumption of the system.
[0093] In some embodiments, the LED module is also used to determine whether the clock input pin is at a high level when no external clock signal is received; if not, parse the drive signal based on the internal clock signal; and send the internal clock signal to the clock output pin.
[0094] Specifically, in addition to the loss of the clock signal, the LED module may also be damaged. Therefore, if the clock input pin of the LED module cannot receive the clock signal at all, it means that the previous LED module may be damaged, and the internal clock circuit is started to generate an internal clock signal and pass the internal clock signal on.
[0095] For example, in the control system of the present application, if the 10th LED module is damaged, the 1st to 9th LED modules continue to use the clock signal provided by the control module or the first LED module (if the control module loses the clock) as the working clock, and the 11th and subsequent LED modules will use the internal clock signal of the 11th LED as the working clock.
[0096] The above embodiment switches the internal clock to work in time when the clock signal cannot be received, so as to ensure the stability of the system display when the LED module fails in the system.
[0097] In some embodiments, the control module is further used to send a burn-in enable instruction to the bus; set the clock output pin connected to the first LED module to a high level; generate an address burn-in signal based on the address data, and send the address burn-in signal to the bus.
[0098] The LED module is also used to set the clock output pin to a low level after receiving a burning enable instruction; after receiving an address burning signal, obtain address data according to the address burning signal and an internal clock signal.
[0099] The LED module is also used to determine whether the clock input pin is at a high level; if so, it detects whether there is a burning completion mark; if not, it stores the address data and generates a burning completion mark, and sets the clock output pin to a high level.
[0100] Specifically, it can be understood that when the control system enters the burning stage, the control module first sends a burning enable instruction to each LED module. After the LED module receives the burning enable instruction, it enters the internal clock working mode, that is, the signal or instruction on the bus is analyzed using the internal clock signal generated by itself. Because the clock signal is no longer transmitted, except for the first LED module, the clock input pin and clock output pin of each LED module are low level, and because the clock output pin of the control module is high level, the clock input pin of the first LED module is also high level.
[0101] Then, the control module generates an address burning signal according to the address data and sends it. After receiving the address burning signal, the LED module parses it according to the internal clock signal to obtain the address data therein, and then determines whether its own clock input pin is at a high level at this time. If it is at a low level, the address data is ignored. If it is at a high level, it means that the previous LED module has been burned. It is determined whether the burning completion mark is stored in itself. If so, it means that the burning is also completed, so the address data is ignored. If the previous LED module has been burned and the LED module itself does not have a burning completion mark, it means that it has not been burned yet, so the address data is burned into the address storage unit, and then the clock output pin is set to a high level, so that the clock input pin of the next LED module is at a high level, and the burning is performed when the address data in the address burning signal is received.
[0102] Furthermore, if the LED module detects that there is no burning completion mark, it can determine whether the storage address is 0; if so, it generates a burning completion mark and sets the clock output pin to a high level; if not, it verifies the address data and the storage address, and sets the clock output pin to a high level; if the address verification is wrong, it lights up with a preset alarm color.
[0103] Specifically, the storage address is the content of the address storage unit of the LED module. The reason for further detecting whether the address storage unit is empty is to avoid the situation where the address of the welded LED module has been written in advance. If the address written in advance is different from the address data to be burned at this time, the LED module will light up in red to prompt the staff to replace it.
[0104] It is worth noting that the control module does not send the address burning signal only once, but after each address burning signal is sent, the address data is increased by 1, and then the address burning signal is generated and sent again, and so on, until the burning end instruction is received or the address data is detected to reach the preset burning threshold, the burning end instruction will be sent to the bus, and the external clock signal will be input to the clock input pin of the first LED module. After receiving the burning end instruction, the LED module enters the external clock working mode, that is, based on the external clock signal received by the clock input pin, the signal received by the data input pin is analyzed; and then the external clock signal is sent to the clock output pin for transmission.
[0105] In fact, clock multiplexing can also be achieved in parallel, just like the bus that transmits the driving signal. The effects achieved by parallel and series are the same, and there will not be much difference in cost. However, if the clock is also a parallel structure, then in the LED control system, the address of each parallel LED module cannot be burned, because before the address is burned, the data received by each LED module soldered on the bus is the same, and the LED module cannot read its own data from it; unless the LED module is burned with the address first and then soldered, but the solution of burning first and then soldering is not only extremely inefficient, but also less accurate (wrong soldering order, wrong LED module taken, etc. may occur during the welding process), so from the perspective of burning, parallel clock multiplexing is not the best choice.
[0106] So can we make the data serial and the clock parallel? This solution is actually more disadvantageous than all parallel, because according to the content of the above embodiment, if the clock is serial, when individual LED modules are damaged, the subsequent LED modules can promptly discover and start their own internal clock circuits to remedy the situation, while if the data is serial, when individual LED modules are damaged, it will completely cause the subsequent LED modules to not receive the drive signal and go out, and a large area of black screen will appear in the entire display system. This is why the application chooses data parallelism, because under the premise of data parallelism, even if individual LED modules are damaged, it will not affect other LED modules from receiving the drive signal to light up.
[0107] To sum up, data cannot be serial, and data and clock cannot be parallel at the same time, so the data parallel and clock serial of this application is the optimal circuit solution, which can not only prevent the display screen from being affected by damage to individual LED modules, but also enable fast address burning after production is completed, without having to design too many complicated burning programs for the LED modules.
[0108] The above embodiment is based on the burning process of clock multiplexing, which makes full use of the advantages of data parallelism and clock serialization. It is unnecessary to write addresses to the LED modules before welding, thereby improving the production efficiency and yield of LED products.
[0109] In some embodiments, the LED module is also used to shape the external clock signal before sending it to the clock output pin. Specifically, in the serial transmission of the clock signal, since the clock transmission is susceptible to external conditions, such as PCB wiring, wiring materials and other factors, different resistance and capacitance parameters are introduced, resulting in the widening or narrowing of the high-level pulse width of the clock transmission. After multiple levels of transmission, the clock may become a fixed high-level or low-level signal; therefore, the present application can shorten and or widen the high-level pulse width of the clock on a specified LED module, such as widening the high level or reducing the high-level pulse width for each chip, or randomly increasing or reducing the high-level pulse width at intervals of a few chips.
[0110] In some embodiments, a data receiving pin of the control module is connected to a clock output pin of the last LED module.
[0111] The control module is also used to obtain the output clock signal of the last LED module; compare the external clock signal with the output clock signal to obtain a clock correction instruction; and send the clock correction instruction to the bus.
[0112] The LED module is also used to receive a clock correction instruction and to shape the external clock signal according to the clock correction instruction before sending the external clock signal to the clock output pin.
[0113] See also Figure 2 In actual application, it is found that the shaping of the clock signal often depends on the shaping algorithm set by the LED module according to its own circuit conditions. However, in the case of a display screen where a large number of LED modules are integrated, the wire for transmitting the clock signal will also be very long, causing the clock signal to be attenuated due to the wire resistance. This attenuation is related to the wire length, wire material, and wire cross-sectional diameter. At present, it is temporarily impossible to quantify the attenuation of the signal by wire resistance through a linear formula. In addition to the attenuation caused by wire resistance, interference from other electronic devices may also cause signal distortion during transmission. Therefore, this application connects the clock output pin of the last LED module (i.e., the last LED module in the system) to the clock input pin of the control module, and allows the control module to compare the difference between the output clock signal output by the last LED module after shaping and the external clock signal sent by itself, and correct the shaping process of the clock signal by each LED module.
[0114] The above embodiment can determine whether the shaping of the clock signal by the LED modules in the system is qualified by receiving the feedback of the output clock signal of the last LED module, thereby timely adjusting the shaping algorithm of the LED module to ensure the stability of clock multiplexing.
[0115] See also Figure 3Another embodiment of the present application provides a clock multiplexing LED control method, comprising:
[0116] In step S11 , the control module generates a driving signal based on an external clock signal and driving data.
[0117] Step S12: the control module sends the driving signal and the external clock signal to the LED module.
[0118] Step S13: the LED module receives a driving signal and an external clock signal.
[0119] Step S14: the LED module analyzes the driving signal based on the external clock signal to obtain driving data.
[0120] Step S15: the LED module is lit according to the driving data.
[0121] Step S16: the LED module sends the external clock signal to the next LED module.
[0122] In some embodiments, the method further comprises:
[0123] Step S21, the LED module samples the driving signal according to the external clock signal to obtain a high level pulse width.
[0124] Step S22, determine whether the high-level pulse width is less than a first preset threshold; if not, parse the drive signal based on the external clock signal; if so, parse the drive signal based on the internal clock signal, and send the internal clock signal to the clock output pin.
[0125] In some embodiments, the method further comprises:
[0126] Step S23 , after determining that the high level pulse width is less than the first preset threshold, the LED module continues to sample the high level pulse width of the driving signal according to the received external clock signal.
[0127] Step S24, determining whether the high-level pulse width is greater than a second preset threshold; if so, analyzing the received drive signal based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
[0128] See also Figure 4 In some embodiments, the method further comprises:
[0129] Step S31, the control module sends a burning enable instruction to the LED module.
[0130] Step S32: the LED module responds to the programming enable instruction and sets the clock output pin to a low level.
[0131] Step S33: The control module sets the clock output pin connected to the first LED module to a high level.
[0132] Step S34: the control module generates an address burning signal based on the address data, and sends the address burning signal to the LED module.
[0133] Step S35, the LED module obtains address data according to the address burning signal and the internal clock signal.
[0134] Step S36, determine whether the clock input pin is at a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate a burning completion mark, and set the clock output pin to a high level.
[0135] In some embodiments, the method further comprises:
[0136] Step S361 : When the LED module detects that there is no burning completion mark, it determines whether the storage address is 0.
[0137] Step S362: If yes, a burning completion mark is generated and the clock output pin is set to a high level.
[0138] Step S363: if not, then check the address data and the storage address and set the clock output pin to a high level.
[0139] Step S364: If the address verification is wrong, light up with a preset alarm color.
[0140] In some embodiments, the method further comprises:
[0141] Step S41, the control module obtains the output clock signal of the last LED module; compares the external clock signal and the output clock signal to obtain a clock correction instruction; and sends the clock correction instruction to the LED module.
[0142] Step S42, the LED module receives the clock correction instruction, and before sending the external clock signal to the clock output pin, shapes the external clock signal according to the clock correction instruction and then sends it to the clock output pin.
[0143] In some embodiments, the above-mentioned comparing the external clock signal and the output clock signal to obtain the clock correction instruction includes:
[0144] Step S411, extracting a first feature set of the external clock signal and a second feature set of the output clock signal.
[0145] The feature set includes various parameters such as the rising edge, falling edge, pulse width, etc. of the corresponding clock signal.
[0146] Step S412: compare the first feature set and the second feature set to obtain an error parameter.
[0147] The values of the same parameters in the first feature set and the second feature set are compared to see if they are consistent. If they are inconsistent, the corresponding parameters are used as error parameters. For example, if the pulse widths of the two feature sets are different, the error parameter is the pulse width.
[0148] Step S413, determining the target parameter and the correction value according to the error parameter.
[0149] The target parameter is the object for which the error parameter can be adjusted, and the correction value is the degree to which the target parameter needs to be adjusted.
[0150] For example, if the error parameter is a rising edge, that is, the feature comparison finds that the rising edge of the output clock signal is delayed compared to the rising edge of the external clock signal, then the target parameter is the number of _NOP_ instructions in the delay function delay_xnop(x) in the clock shaping algorithm of each LED module, and the correction value is the value by which the number of _NOP_ instructions needs to be increased or decreased.
[0151] For another example, if the error parameter is a signal jitter value, that is, the feature comparison finds that the output clock signal has jitter, then the target parameter is a filtering algorithm, and the correction value is a frequency threshold selected in the filtering algorithm.
[0152] Step S414, generating a clock correction instruction according to the target parameter, the correction value and the number of LEDs.
[0153] Specifically, since the shaping of the clock signal is completed jointly by the LED modules of the multiplexed clock, the number of LED modules must be considered when the correction value is allocated to the LED modules. For example, when adjusting the delay function, the correction value needs to be divided by the number of LED modules of the multiplexed clock before being allocated, but the filtering algorithm does not require this.
[0154] After receiving the clock correction instruction, the LED module adjusts the corresponding target parameters according to the correction value therein. After the adjustment is completed, the clock signal is shaped according to the corrected shaping algorithm and then output to the clock output pin.
[0155] For specific limitations on a clock-multiplexed LED control method provided in this embodiment, please refer to the above embodiment of a clock-multiplexed LED control system, which will not be described in detail here.
[0156] See also Figure 5 , an LED module includes a processing unit, a driving unit and LED lamp beads.
[0157] The processing unit is used to receive the driving signal of the bus and the external clock signal of the clock input pin; analyze the driving signal based on the external clock signal to obtain driving data; generate a PWM signal according to the driving data, and send the PWM signal to the driving unit; and send the external clock signal to the clock output pin.
[0158] The driving unit is used to control the LED lamp beads to light up according to the PWM signal. Specifically, the LED module also includes an address storage unit for storing address data. When the processing unit of the LED module parses and obtains the driving data, the corresponding target driving data is selected according to the storage address of the address storage unit to generate the PWM signal and light up the lamp beads.
[0159] See also Figure 6 In some embodiments, the LED module further includes a clock loss detection unit and an internal clock generation unit.
[0160] The clock loss detection unit and the internal clock generation unit are respectively connected to the processing unit. The clock loss detection unit is used to receive an external clock signal and a driving signal, sample the driving signal according to the external clock signal, and obtain a high-level pulse width; determine whether the high-level pulse width is less than a first preset threshold; if so, send external clock loss information to the processing unit.
[0161] The internal clock generation unit is used to generate an internal clock signal.
[0162] The processing unit is also used to obtain the internal clock signal of the internal clock generation unit when receiving the external clock loss information, parse the driving signal based on the internal clock signal, and send the internal clock signal to the clock output pin.
[0163] Furthermore, the clock loss detection unit is further configured to, after determining that the high-level pulse width is less than the first preset threshold, continue to sample the high-level pulse width of the driving signal according to the received external clock signal to determine whether the high-level pulse width is greater than a second preset threshold; if so, send external clock recovery information to the processing unit. The second preset threshold is greater than the first preset threshold.
[0164] The processing unit is further configured to analyze the received driving signal based on the external clock signal after receiving the external clock recovery information.
[0165] In some embodiments, the processing unit is also used to set the clock output pin to a low level after receiving a burning enable instruction; after receiving an address burning signal, obtain address data according to the address burning signal and the internal clock signal; determine whether the clock input pin is at a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate a burning completion mark, and set the clock output pin to a high level.
[0166] See also Figure 7 In some embodiments, the LED module further comprises a clock shaping unit.
[0167] The processing unit is further configured to send the received clock correction instruction and external clock signal to the clock shaping unit.
[0168] The processing unit is specifically used to extract a first feature set of an external clock signal and a second feature set of an output clock signal; compare the first feature set and the second feature set to obtain an error parameter; determine a target parameter and a correction value based on the error parameter; and generate a clock correction instruction based on the target parameter, the correction value and the number of LEDs.
[0169] The clock shaping unit is used to shape the external clock signal according to the clock correction instruction, and send the shaped external clock signal to the clock output pin. Specifically, the clock shaping unit is connected to the processing unit and the clock output pin respectively.
[0170] The clock shaping unit is specifically used to adjust the corresponding target parameter according to the correction value after receiving the clock correction instruction. After the adjustment is completed, the clock signal is shaped according to the corrected shaping algorithm and then output to the clock output pin.
[0171] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0172] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A clock multiplexing LED control system, characterized in that: comprising a control module and at least one LED module; The data input pin of the LED module and the data output pin of the control module are connected to the bus; The clock input pin of the LED module is connected to the clock output pin of the previous LED module; the clock input pin of the first LED module is connected to the clock output pin of the control module; The control module is used to generate a driving signal based on an external clock signal and driving data, and input the driving signal to the bus; input the external clock signal to the clock input pin of the first LED module; The LED module is used to receive the external clock signal through the clock input pin and receive the driving signal through the data input pin; and parse the driving signal based on the external clock signal to obtain the driving data; Lighting up according to the driving data; sending the external clock signal to the clock output pin; The LED module is also used to, after receiving the driving signal, sample the driving signal according to the external clock signal to obtain a high-level pulse width; determine whether the high-level pulse width is less than a first preset threshold; if so, parse the driving signal based on the internal clock signal and send the internal clock signal to the clock output pin; The control module is also used to send a burning enable instruction to the bus; Setting the clock output pin connected to the first LED module to a high level; generating an address burning signal based on the address data, and sending the address burning signal to the bus; The LED module is also used to set the clock output pin to a low level after receiving the burning enable instruction; after receiving the address burning signal, obtain address data according to the address burning signal and the internal clock signal; determine whether the clock input pin is at a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate the burning completion mark, and set the clock output pin to a high level.
2. The clock multiplexing LED control system according to claim 1, characterized in that: The LED module is also used to continue sampling the high-level pulse width of the drive signal according to the received external clock signal after determining that the high-level pulse width is less than the first preset threshold, and determine whether the high-level pulse width is greater than the second preset threshold; if so, parse the received drive signal based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
3. The clock multiplexing LED control system according to claim 1, characterized in that: The LED module is also used to determine whether the storage address is 0 when detecting that the burning completion mark does not exist; if so, generate the burning completion mark and set the clock output pin to a high level; if not, verify the address data and the storage address, and set the clock output pin to a high level; If the address verification is wrong, it will light up in the preset alarm color.
4. The clock multiplexing LED control system according to claim 3, characterized in that: The control module is also used to send a burn-in end instruction to the bus and input the external clock signal into the clock input pin of the first LED module when receiving a burn-in end instruction or detecting that the address data reaches a preset burn-in threshold; The LED module is also used to analyze the signal received by the data input pin based on the received external clock signal after receiving the burning end instruction; and send the external clock signal to the clock output pin.
5. The clock multiplexing LED control system according to claim 1, characterized in that: The LED module is also used to shape the external clock signal before sending the external clock signal to the clock output pin.
6. The clock multiplexing LED control system according to claim 5, characterized in that: The data receiving pin of the control module is connected to the clock output pin of the last LED module; The control module is also used to obtain the output clock signal of the last LED module; compare the external clock signal with the output clock signal to obtain a clock correction instruction; and send the clock correction instruction to the bus; The LED module is further configured to receive the clock correction instruction, and to shape the external clock signal according to the clock correction instruction before sending the external clock signal to the clock output pin.
7. The clock multiplexing LED control system according to claim 1, characterized in that: The LED module is also used to determine whether the clock input pin is at a high level when the external clock signal is not received; if not, parse the drive signal based on the internal clock signal; and send the internal clock signal to the clock output pin.
8. A clock multiplexing LED control method, characterized in that: include: The control module generates a driving signal based on an external clock signal and driving data; The control module sends the driving signal and the external clock signal to the LED module; The LED module receives the driving signal and the external clock signal; The LED module analyzes the driving signal based on the external clock signal to obtain the driving data; The LED module is lit according to the driving data; The LED module sends the external clock signal to the next LED module; The LED module samples the driving signal according to the external clock signal to obtain a high-level pulse width; determines whether the high-level pulse width is less than a first preset threshold; if not, analyzes the driving signal based on the external clock signal; if so, analyzes the driving signal based on the internal clock signal, and sends the internal clock signal to the clock output pin; The control module sends a burning enable instruction to the LED module; The LED module sets the clock output pin to a low level in response to the burning enable instruction; The control module sets the clock output pin connected to the first LED module to a high level; The control module generates an address burning signal based on the address data, and sends the address burning signal to the LED module; The LED module obtains address data according to the address burning signal and the internal clock signal; determines whether the clock input pin is at a high level; if so, detects whether there is a burning completion mark; if not, stores the address data and generates the burning completion mark, and sets the clock output pin to a high level.
9. The clock multiplexing LED control method according to claim 8, characterized in that: Also includes: After determining that the high-level pulse width is less than a first preset threshold, the LED module continues to sample the high-level pulse width of the driving signal according to the received external clock signal; Determine whether the high-level pulse width is greater than a second preset threshold; if so, parse the received drive signal based on the external clock signal; wherein the second preset threshold is greater than the first preset threshold.
10. The clock multiplexing LED control method according to claim 8, characterized in that: Also includes: When the LED module detects that the burning completion mark does not exist, determining whether the storage address is 0; If yes, the burning completion mark is generated and the clock output pin is set to a high level; If not, then verify the address data and the storage address and set the clock output pin to a high level; If the address verification is wrong, it will light up in the preset alarm color.
11. The clock multiplexing LED control method according to claim 8, characterized in that: Also includes: The control module obtains the output clock signal of the last LED module; compares the external clock signal with the output clock signal to obtain a clock correction instruction; Sending the clock correction instruction to the LED module; The LED module receives the clock correction instruction, and before sending the external clock signal to the clock output pin, shapes the external clock signal according to the clock correction instruction and then sends it to the clock output pin.
12. The clock multiplexing LED control method according to claim 11, characterized in that: The comparing the external clock signal and the output clock signal to obtain a clock correction instruction includes: Extracting a first feature set of the external clock signal and a second feature set of the output clock signal; Comparing the first feature set with the second feature set to obtain an error parameter; Determine a target parameter and a correction value according to the error parameter; The clock correction instruction is generated according to the target parameter, the correction value and the number of LEDs.
13. An LED module, characterized in that: It includes a clock loss detection unit, an internal clock generation unit, a processing unit, a driving unit and LED lamp beads; The processing unit is used to receive the driving signal of the bus and the external clock signal of the clock input pin; analyze the driving signal based on the external clock signal to obtain driving data; Generate a PWM signal according to the driving data, and send the PWM signal to the driving unit; send the external clock signal to the clock output pin; The driving unit is used to control the LED lamp beads to light up according to the PWM signal; The clock loss detection unit is used to receive the external clock signal and the driving signal, sample the driving signal according to the external clock signal, and obtain a high-level pulse width; determine whether the high-level pulse width is less than a first preset threshold; if so, send external clock loss information to the processing unit; The processing unit is further configured to obtain the internal clock signal of the internal clock generating unit upon receiving the external clock loss information, parse the driving signal based on the internal clock signal, and send the internal clock signal to the clock output pin; The processing unit is also used to set the clock output pin to a low level after receiving a burning enable instruction; after receiving an address burning signal, obtain address data according to the address burning signal and an internal clock signal; determine whether the clock input pin is at a high level; if so, detect whether there is a burning completion mark; if not, store the address data and generate the burning completion mark, and set the clock output pin to a high level.
14. The LED module according to claim 13, characterized in that: Also included is a clock shaping unit; The processing unit is also used to send the received clock correction instruction and external clock signal to the clock shaping unit; The clock shaping unit is used to shape the external clock signal according to the clock correction instruction, and send the shaped external clock signal to the clock output pin.
Citation Information
Patent Citations
Serial communication device, serial communication system, and serial communication method
CN115766332A
Parallel LED system, control method and LED module
CN119233483A