LED lamp panel data demodulation control method and system
By building a UART communication channel in the LED light board module and switching the UART serial port using the master-slave backup method, the problem of excessive number of signal lines and difficult to realize the master-slave signal backup function in the prior art is solved, and signal line reduction and signal transmission stability are improved.
Patent Information
- Application Number
- CN202411713416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-27
AI Technical Summary
The existing LED lamp panel module has too many signal lines between the receiving card and the LED lamp panel module, making it difficult to realize the master-slave signal backup function, resulting in unstable signal transmission and complex cable and connector manufacturing.
By building a UART communication channel between the receiving card and the LED lamp panel module, the main UART serial port and the slave UART serial port are switched using the master-slave backup method to reduce the number of signal lines, and the display driver and fault detection functions are realized in the LED lamp panel module with the MCU as the core.
It effectively reduces the number of signal lines that receive the LED lamp module, realizes the master-slave signal backup function, improves the stability of signal transmission, simplifies the manufacturing of cables and connectors, and reduces manufacturing costs.
Smart Images

Figure CN119694242A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of LED technology, and in particular to a method and system for demodulating and controlling data of an LED lamp panel. Background Art
[0002] In the field of LED display technology, the mainstream implementation solution is that the receiving card directly controls the LED driver IC of the LED light board module through multiple TTL signals.
[0003] like Figure 1 As shown, taking the industry standard HUB75 interface as an example, 16 signal lines are generally required; at the same time, the extended functions of the LED light board module (such as detection function, brightness correction, data storage function) need to be implemented in the smart module with MCU as the core in the LED light board module. The smart module mainly communicates with the receiving card through UART, and at least 2 signal lines are required; that is, at least 18 signal lines are required between the receiving card and the LED light board module, but the production and processing of the cables and connectors of 18 signal lines are relatively more troublesome than those of fewer signal lines. In addition, if master-slave signal backup is required, the number of signal lines needs to be doubled, and a complex signal switching circuit is required. Therefore, the master-slave signal backup function of the LED light board module is difficult to achieve.
[0004] In summary, how to effectively reduce the number of signal lines from the receiving card to the LED light board module and realize the master-slave signal backup function of the LED light board module is a problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method and system for controlling data demodulation of an LED light board, which can effectively reduce the number of signal lines from a receiving card to an LED light board module.
[0006] In order to solve the above technical problems, the present invention provides a data demodulation control method for an LED light board, comprising: constructing a UART communication channel between a receiving card and an LED light board module, wherein the LED light board module comprises an MCU unit, an ADC resampling circuit, an NVM memory, a constant current LED driving unit and an LED matrix, wherein the MCU unit is respectively connected to the ADC resampling circuit, the NVM memory and the constant current LED driving unit, and the constant current LED driving unit is connected to the LED matrix; data is exchanged between the receiving card and the LED light board module through the UART communication channel, wherein: the receiving card sends control data to the LED light board module through the UART communication channel, and the control data comprises original display data, point-by-point brightness correction data and color gamut correction data; the MCU unit processes the original display data to generate target display data, and sends the target display data to the constant current LED drive unit to drive the LED matrix for display; the MCU unit reads LED fault detection data and signal fault detection data from the constant current LED drive unit; the MCU unit detects the light board status detection data through the ADC resampling circuit; the MCU unit stores the point-by-point brightness correction data and color gamut correction data in the NVM memory; the LED light board module sends the LED fault detection data, drive control signal, light board status detection data, point-by-point brightness correction data and color gamut correction data to the receiving card through the UART communication channel.
[0007] As an improvement of the above solution, the UART communication channel includes a master UART serial port and a slave UART serial port. When the receiving card and the LED light board module exchange data through the UART communication channel, the master UART serial port and the slave UART serial port are switched in a master-slave backup mode.
[0008] As an improvement of the above scheme, the step of switching the master channel and the slave channel in a master-slave backup manner includes: the receiving card sends a VS package to the LED light board module through the master UART serial port and the slave UART serial port at the same time; the LED light board module sends the packet number of the received VS package to the receiving card from the master UART serial port and the slave UART serial port at the same time; the receiving card determines the fault status of the master UART serial port and the slave UART serial port according to the packet number, so as to switch the master UART serial port and the slave UART serial port respectively.
[0009] As an improvement of the above scheme, the step in which the MCU unit processes the original display data to generate target display data includes: the MCU unit performs gamma correction, point-by-point brightness correction, brightness adjustment and pin mapping processing on the original display data in sequence to generate target display data.
[0010] As an improvement of the above scheme, the MCU unit sequentially performs gamma correction, point-by-point brightness correction, brightness adjustment and pin mapping processing on the original display data to generate the target display data, including the following steps: performing bit conversion on the RGB data of each pixel in the original display data by a table lookup method; constructing an initial RGB data matrix according to the RGB data after the bit conversion, and multiplying the initial RGB data matrix with preset point-by-point brightness correction data to generate a target RGB data matrix; multiplying the RGB data of each pixel in the target RGB data matrix with the brightness percentage to generate target brightness data; searching for the corresponding output channel of the constant current LED driving unit according to the position of each pixel in the target brightness data, and filling the grayscale information of each pixel in the target brightness data into the memory position corresponding to each grayscale bit in the corresponding output channel to generate the target display data.
[0011] As an improvement of the above scheme, the step of sending the target display data to the constant current LED driving unit to drive the LED matrix for display includes: the MCU unit triggers DMA transmission through a timer, writes the target display data from the memory to the port output control register of the GPIO to control the output of the GPIO port, wherein; the MCU unit outputs the HOE signal and the row control signal of the target display data to the constant current LED driving unit through a GPIO port; the MCU unit outputs the display data and the control command to the constant current LED driving unit through another GPIO port; the constant current LED driving unit drives the LED matrix for display according to the HOE signal, the row control signal, the display data and the control command.
[0012] As an improvement of the above solution, the GPIO port arranges data in sequence from low address to high address according to the data transmission order, and the valid data bits of the data correspond to the PINs of the GPIO.
[0013] As an improvement of the above scheme, the steps of the MCU unit reading LED fault detection data and signal fault detection data from the constant current LED driving unit include: the MCU unit outputs an LED fault detection command to the constant current LED driving unit through a GPIO port, and then outputs an HDCLK clock to shift the LED fault detection result data out of the shift register of the constant current LED driving unit; the MCU unit reads the LED fault detection result data into the memory through another GPIO port; the MCU unit reads the control signal and the row control signal of the constant current LED driving unit through another GPIO port to perform signal fault detection, and performs fusion analysis on the signal fault detection result to generate signal fault detection data.
[0014] Correspondingly, the present invention also provides an LED light board data demodulation control system, including a receiving card and an LED light board module, the LED light board module including an MCU unit, an ADC resampling circuit, an NVM memory, a constant current LED drive unit and an LED matrix, the MCU unit is respectively connected to the ADC resampling circuit, the NVM memory and the constant current LED drive unit, and the constant current LED drive unit is connected to the LED matrix; the receiving card and the LED light board module are connected via a UART interface, and the above-mentioned LED light board data demodulation control method is used for data interaction.
[0015] As an improvement of the above solution, the receiving card and the LED light board module are connected via two sets of UART interfaces.
[0016] The implementation of the present invention has the following beneficial effects:
[0017] The present invention uses a UART interface to replace a TTL signal interface, which can effectively reduce the number of signal lines from the receiving card to the LED light board module while maintaining the display function and the extended function. The MCU is used as the core in the LED light board module to realize the LED display drive and the extended functions such as LED fault detection, signal fault detection, and light board status detection.
[0018] Furthermore, the present invention improves the stability of signal transmission from the receiving card to the LED light board module through the master-slave signal backup function of the LED light board module, simplifies the manufacturing of cables and connectors from the receiving card to the LED light board module, and reduces manufacturing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the existing HUB75 interface;
[0020] Figure 2 This is a flow chart of a first embodiment of the LED light board data demodulation control method of the present invention;
[0021] Figure 3 It is a structural schematic diagram of the LED light board data demodulation control system of the present invention;
[0022] Figure 4 is a flow chart of a second embodiment of the LED light board data demodulation control method of the present invention;
[0023] Figure 5 It is a schematic diagram of the MCU unit in the present invention processing the original display data to generate the target display data;
[0024] Figure 6It is a schematic diagram of sending target display data to a constant current LED driving unit to drive an LED matrix for display in the present invention;
[0025] Figure 7 It is a schematic diagram of the MCU unit in the present invention reading LED fault detection data and signal fault detection data from the constant current LED driving unit. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0027] See also Figure 2 , Figure 2 The flowchart of the first embodiment of the LED light board data demodulation control method of the present invention is shown, which includes:
[0028] S101, building a UART communication channel between the receiving card and the LED light board module;
[0029] like Figure 3 As shown, the LED light board module 101 includes an MCU unit 1, an ADC resampling circuit 2, an NVM memory (non-volatile memory) 3, a constant current LED driving unit 4 and an LED matrix 5. The MCU unit 1 is connected to the ADC resampling circuit 2, the NVM memory 3 and the constant current LED driving unit 4 respectively, and the constant current LED driving unit 4 is connected to the LED matrix 5.
[0030] S102, data exchange is performed between the receiving card and the LED light board module through the UART communication channel;
[0031] In the prior art, the receiving card and the LED light board module communicate with each other via TTL. Different from the prior art, in the present invention, the receiving card and the LED light board module communicate with each other via UART.
[0032] Correspondingly, the UART communication channel in the present invention includes a master UART serial port and a slave UART serial port, that is, the receiving card and the LED light board module are connected through two sets of UART serial ports.
[0033] When working, the receiving card sends the original display data, point-by-point brightness correction data and color gamut correction data to the LED light board module through the UART communication channel; at the same time, the receiving card reads LED fault detection, signal fault detection, status detection data, point-by-point brightness correction data and color gamut correction data from the LED light board module.
[0034] Therefore, the present invention uses a dual UART (5 signal lines) interface to replace the TTL signal interface with multiple signal lines, which can effectively reduce the number of signal lines from the receiving card to the LED light board module (the number of signal lines from the receiving card to the LED light board module is reduced from a minimum of 18 to a maximum of 5) while maintaining the display function and the expansion function unchanged. In the LED light board module, the MCU is used as the core to realize the LED display drive and the extended functions such as LED fault detection, signal fault detection, and light board status detection.
[0035] Furthermore, when the receiving card and the LED light board module exchange data through the UART communication channel, the master UART serial port and the slave UART serial port are switched in a master-slave backup mode, that is, the TX and RX of the UART are independently master-slave backup. The specific steps include:
[0036] (1) The receiving card sends VS packets to the LED light board module through the master UART serial port and the slave UART serial port at the same time;
[0037] (2) The LED light board module sends the packet number of the received VS packet from the main UART serial port and the slave UART serial port to the receiving card respectively;
[0038] (3) The receiving card determines the fault status of the master UART serial port and the slave UART serial port according to the packet sequence number, and switches the master UART serial port and the slave UART serial port respectively.
[0039] For example, the following is a timing diagram of the main serial port:
[0040] RX0:|VS--->CMD0--->DI SDATA--->IDLE|VS--->---->DI SDATA--->IDLE|RX1:|VS--->IDLE |VS--->IDLE |
[0041] TX0:| VSACK| VSACK CMD0ACK|TX1:| VSACK| VSACK|
[0042] If, the master and slave serial ports VS packet response is as follows:
[0043] ①1): RX0 VS packet, TX0 OK, TX1 OK;
[0044] ①2): RX0 VS package, TX0 OK, TX1 NG;
[0045] ①3): RX0 VS package, TX0 NG, TX1 OK;
[0046] ①4): RX0 VS package, TX0 NG, TX1 NG;
[0047] ②1): RX1 VS package, TX0 OK, TX1 OK;
[0048] ②2): RX1 VS package, TX0 OK, TX1 NG;
[0049] ②3): RX1 VS package, TX0 NG, TX1 OK;
[0050] ②4): RX1 VS package, TX0 NG, TX1 NG;
[0051] Then, the serial port fault conditions are shown in Table 1 below:
[0052] Table 1
[0053]
[0054] At this time, the TX / RX signals can be switched respectively according to the fault conditions of the master UART serial port and the slave UART serial port.
[0055] Therefore, the present invention improves the stability of signal transmission from the receiving card to the LED light board module through the master-slave signal backup function of the LED light board module, simplifies the manufacturing of cables and connectors from the receiving card to the LED light board module, and reduces manufacturing costs.
[0056] See also Figure 4 , Figure 4 The flowchart of the second embodiment of the LED light board data demodulation control method of the present invention is shown, which includes:
[0057] S201, building a UART communication channel between the receiving card and the LED light board module;
[0058] S202, the receiving card sends control data to the LED light board module through the UART communication channel;
[0059] The control data includes original display data, point-by-point brightness correction data and color gamut correction data;
[0060] S203, the MCU unit processes the original display data to generate target display data, and sends the target display data to the constant current LED driving unit to drive the LED matrix for display;
[0061] like Figure 5 As shown, the MCU unit can perform gamma correction, point-by-point brightness correction, brightness adjustment and pin mapping on the original display data in sequence to generate the target display data. The specific steps include:
[0062] (1) Using a table lookup method, the RGB data of each pixel in the original display data is converted into bits;
[0063] By looking up the table, the 8-bit RGB data of each color of each pixel can be converted into 16-bit RGB data, thereby achieving gamma correction.
[0064] (2) constructing an initial RGB data matrix according to the RGB data after bit number conversion, and multiplying the initial RGB data matrix with preset point-by-point brightness correction data to generate a target RGB data matrix;
[0065] The RGB data obtained after gamma correction are all 16 bits. The RGB data of each pixel can form a 1x3 initial RGB data matrix, and the point-by-point brightness correction data stored in the NVM memory is the 3x3 matrix data of each pixel. Multiplying these two matrices can obtain the target RGB data matrix after the point-by-point brightness correction of the pixel.
[0066] For example, the initial RGB data matrix is: A = [rgb]
[0067] The point-by-point brightness correction data (i.e., the point-by-point brightness correction parameter matrix) is:
[0068]
[0069] Then, the target RGB data matrix is:
[0070]
[0071] Therefore, point-by-point brightness correction can be achieved through step (2).
[0072] (3) multiplying the RGB data of each pixel in the target RGB data matrix by the brightness percentage to generate target brightness data;
[0073] After point-by-point brightness correction, the RGB data of each color of each pixel is multiplied by the brightness percentage to obtain the brightness adjusted data.
[0074] (4) According to the position of each pixel point in the target brightness data, the corresponding output channel of the constant current LED driving unit is searched, and the grayscale information of each pixel point in the target brightness data is filled into the memory position corresponding to each grayscale bit in the corresponding output channel to generate the target display data.
[0075] After brightness adjustment, the 16-bit data of each color of each pixel is obtained. According to the position of the pixel, the corresponding output channel of the constant current LED driver unit is found. Then, the grayscale of the 16-bit data of each color is separated and filled into the memory position corresponding to each grayscale bit of the output channel, and finally the data that can be sent directly by GPIO is obtained.
[0076] In addition, the step of sending the target display data to the constant current LED driving unit to drive the LED matrix for display includes:
[0077] (1) The MCU unit triggers DMA transfer through a timer to write the target display data from the memory to the GPIO port output control register to control the output of the GPIO port, where;
[0078] The target display data can be sent to the constant current LED driver unit via GPIO.
[0079] (2) The MCU unit outputs the HOE signal and the row control signal of the target display data to the constant current LED driving unit through a GPIO port;
[0080] It should be noted that the constant current LED driving unit includes a constant current LED driving IC and a row decoder.
[0081] like Figure 6 As shown, the MCU unit outputs the HOE signal (i.e., HOE) to the constant current LED driver IC through the GPIOy port, and outputs the row control signal (i.e., HA, HB, HC, HD, HE) to the row decoder through the GPIOy port.
[0082] (3) The MCU unit outputs display data and control commands to the constant current LED driver unit through another GPIO port;
[0083] like Figure 6 As shown, the MCU unit outputs display data (ie, RGB) to the constant current LED driver IC through the GPIOx port, and outputs control commands (ie, HDCLK, HLAT) to the constant current LED driver IC through the GPIOx port.
[0084] (4) The constant current LED driving unit drives the LED matrix for display according to the HOE signal, row control signal, display data and control command.
[0085] It should be noted that using the timer to trigger DMA can write data from the memory to the GPIO port output control register, thereby controlling the GPIO output; at the same time, by adjusting the timer trigger frequency, the speed of DMA data transmission can be changed, thereby changing the frequency of the GPIO output signal. Since DAM realizes data transmission, there is no need for CPU intervention during the transmission. The CPU only needs to configure DMA, thus greatly saving CPU resources, and the control of the constant current LED drive unit can be realized through on-chip peripherals.
[0086] Since the HOE signal of the constant current LED driving unit needs to cooperate with the row signal output of the LED matrix, the present invention outputs the HOE signal and the row control signal using one GPIO port, and uses another GPIO port to output display data and control commands of the constant current LED driving unit.
[0087] Furthermore, when the GPIO port sends data, it needs to be arranged in sequence from low address to high address according to the data sending order, and the valid data bits of the data correspond to the PIN actually used by the GPIO.
[0088] Taking the PWM constant current LED driver unit and direct decoding as an example, the transmission data of GPIOx and GPIOy are shown in Table 2 and Table 3:
[0089] Table 2
[0090]
[0091] Table 3
[0092]
[0093]
[0094] S204, the MCU unit reads LED fault detection data and signal fault detection data from the constant current LED driving unit;
[0095] Accordingly, the steps of the MCU unit reading the LED fault detection data and the signal fault detection data from the constant current LED driving unit include:
[0096] (1) The MCU unit outputs an LED fault detection command to the constant current LED driver unit through a GPIO port, and then outputs an HDCLK clock to shift the LED fault detection result data out of the shift register of the constant current LED driver unit;
[0097] (2) The MCU unit reads the LED fault detection result data into the memory through another GPIO port;
[0098] (3) The MCU unit reads the control signal and the row control signal of the constant current LED driving unit through another GPIO port to perform signal fault detection, and performs fusion analysis on the signal fault detection results to generate signal fault detection data.
[0099] It should be noted that one channel of the timer can be used to trigger DMA to write data from the memory to the GPIO port output control register, while another channel of the same timer can trigger another DMA channel to read the contents of the GPIO port input status register into the memory; similarly, DMA implements data reading, and no CPU intervention is required during transmission. The CPU only needs to configure DMA, which greatly saves CPU resources, and LED fault detection and signal fault detection can be implemented through on-chip peripherals.
[0100] like Figure 6 and Figure 7 As shown, GPIOx outputs LED fault detection command to constant current LED driver IC, and then outputs HDCLK clock to shift LED fault detection result data out of the shift register in constant current LED driver IC; set the Timerx CHz trigger event to lag the Timerx CHx trigger event by an appropriate time, these data DMACHz are read into memory through GPIOz, and at the same time, the output display data (ie RGB) of constant current LED driver IC, the control command (ie HDCLK, HLAT) output by GPIOx, the HOE signal (ie HOE) and the row control signal (ie HA, HB, HC, HD, HE) output by GPIOy are read through GPIOz to form a loopback test and realize signal fault detection. Similarly, the original detection data read by DMA needs to be integrated and analyzed to obtain the final detection result.
[0101] S205, the MCU unit detects the light board status detection data through the ADC resampling circuit;
[0102] Specifically, the voltage and temperature of the LED light board module can be collected through an ADC resampling circuit, and then the voltage value and temperature value can be obtained by calculation.
[0103] S206, the MCU unit stores the point-by-point brightness correction data and the color gamut correction data into the NVM memory;
[0104] S207, the LED light board module sends LED fault detection data, drive control signal, light board status detection data, point-by-point brightness correction data and color gamut correction data to the receiving card through the UART communication channel.
[0105] Therefore, the MCU unit receives the original display data sent by the receiving card from the UART, and sends it to the constant current LED driver unit from the GPIO after processing, and the display content is displayed from the LED matrix; the MCU unit reads the LED fault detection data and drive control signal from the constant current LED driver unit through the GPIO; the MCU unit detects the input voltage and temperature through the ADC resampling circuit; the receiving card reads the detection or status data of the LED light board module through the UART; the MCU receives the point-by-point brightness correction data, color gamut correction data and other data, and stores them in the NVM memory, and reads and loads them from the NVM memory when needed.
[0106] In summary, the present invention can effectively reduce the number of signal lines from the receiving card to the LED light board module, realize master-slave signal backup while maintaining the display function and expansion function unchanged, improve the stability of signal transmission from the receiving card to the LED light board module, simplify the manufacture of cables and connectors from the receiving card to the LED light board module, and reduce manufacturing costs.
[0107] See also Figure 3 , Figure 3 The structure diagram of an embodiment of the LED light board data demodulation control system of the present invention is shown, which includes a receiving card 100 and an LED light board module 101. The LED light board module 101 includes an MCU unit 1, an ADC resampling circuit 2, an NVM memory 3, a constant current LED drive unit 4 and an LED matrix 5. The MCU unit 1 is connected to the ADC resampling circuit 2, the NVM memory 3 and the constant current LED drive unit 4 respectively, and the constant current LED drive unit 4 is connected to the LED matrix 5;
[0108] Different from the prior art, in the present invention, the receiving card 100 and the LED light board module 101 are connected via a UART interface, and the above-mentioned LED light board data demodulation control method is used for data exchange.
[0109] Furthermore, the receiving card 100 and the LED light board module 101 are connected via two sets of UART interfaces. Under the premise of maintaining the display function and the extended function, the number of signal lines from the receiving card to the LED light board module can be effectively reduced, and the MCU unit 1 is used as the core in the LED light board module 101 to realize the LED display drive and the extended functions such as LED fault detection, signal fault detection, and light board status detection.
[0110] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A LED light board data demodulation control method, characterized in that: include: A UART communication channel is established between the receiving card and the LED light board module, wherein the LED light board module includes an MCU unit, an ADC resampling circuit, an NVM memory, a constant current LED driving unit and an LED matrix, wherein the MCU unit is connected to the ADC resampling circuit, the NVM memory and the constant current LED driving unit respectively, and the constant current LED driving unit is connected to the LED matrix; The receiving card and the LED light board module exchange data through the UART communication channel, wherein: The receiving card sends control data to the LED light board module through the UART communication channel, and the control data includes original display data, point-by-point brightness correction data and color gamut correction data; The MCU unit processes the raw display data to generate target display data, and sends the target display data to the constant current LED driving unit to drive the LED matrix for display; The MCU unit reads LED fault detection data and signal fault detection data from the constant current LED driving unit; The MCU unit detects the light board status detection data through the ADC resampling circuit; The MCU unit stores the point-by-point brightness correction data and the color gamut correction data into an NVM memory; The LED light board module sends the LED fault detection data, drive control signal, light board status detection data, point-by-point brightness correction data and color gamut correction data to the receiving card through the UART communication channel.
2. The LED light board data demodulation control method according to claim 1, characterized in that: The UART communication channel includes a master UART serial port and a slave UART serial port. When the receiving card and the LED light board module exchange data through the UART communication channel, the master UART serial port and the slave UART serial port are switched in a master-slave backup mode.
3. The LED light board data demodulation control method according to claim 1, characterized in that: The step of switching the master channel and the slave channel in a master-slave backup mode includes: The receiving card sends a VS packet to the LED light board module through the master UART serial port and the slave UART serial port at the same time; The LED light board module sends the packet sequence number of the received VS packet from the main UART serial port and the slave UART serial port to the receiving card respectively; The receiving card determines the fault conditions of the master UART serial port and the slave UART serial port according to the packet sequence number, so as to switch the master UART serial port and the slave UART serial port respectively.
4. The LED light board data demodulation control method according to claim 1, characterized in that: The step of the MCU unit processing the original display data to generate target display data comprises: The MCU unit sequentially performs gamma correction, point-by-point brightness correction, brightness adjustment and pinmapping processing on the original display data to generate target display data.
5. The LED light board data demodulation control method according to claim 4, characterized in that: The MCU unit sequentially performs gamma correction, point-by-point brightness correction, brightness adjustment and pin mapping processing on the original display data to generate target display data, including the following steps: By using a table lookup method, performing bit conversion on the RGB data of each pixel in the original display data; Constructing an initial RGB data matrix according to the RGB data after the bit number conversion, and multiplying the initial RGB data matrix with preset point-by-point brightness correction data to generate a target RGB data matrix; Multiplying the RGB data of each pixel in the target RGB data matrix by the brightness percentage to generate target brightness data; The output channel of the corresponding constant current LED driving unit is searched according to the position of each pixel in the target brightness data, and the grayscale information of each pixel in the target brightness data is filled into the memory position corresponding to each grayscale bit in the corresponding output channel to generate the target display data.
6. The LED light board data demodulation control method according to claim 1, characterized in that: The step of sending the target display data to the constant current LED driving unit to drive the LED matrix for display comprises: The MCU unit triggers DMA transmission through a timer to write the target display data from the memory to the port output control register of the GPIO to control the output of the GPIO port, wherein; The MCU unit outputs a HOE signal and a row control signal of target display data to the constant current LED driving unit through a GPIO port; The MCU unit outputs display data and control commands to the constant current LED driving unit through another GPIO port; The constant current LED driving unit drives the LED matrix to display according to the HOE signal, the row control signal, the display data and the control command.
7. The LED light board data demodulation control method according to claim 6, characterized in that: The GPIO port arranges data in sequence from low address to high address according to the data transmission order, and the valid data bits of the data correspond to the PINs of the GPIO.
8. The LED light board data demodulation control method according to claim 1, characterized in that: The step of the MCU unit reading LED fault detection data and signal fault detection data from the constant current LED driving unit comprises: The MCU unit outputs an LED fault detection command to the constant current LED driving unit through a GPIO port, and then outputs an HDCLK clock to shift the LED fault detection result data out of the shift register of the constant current LED driving unit; The MCU unit reads the LED fault detection result data into the memory through another GPIO port; The MCU unit reads the control signal and the row control signal of the constant current LED driving unit through another GPIO port to perform signal fault detection, and performs fusion analysis on the signal fault detection result to generate signal fault detection data.
9. A LED light board data demodulation control system, characterized in that: It includes a receiving card and an LED light board module, wherein the LED light board module includes an MCU unit, an ADC resampling circuit, an NVM memory, a constant current LED driving unit and an LED matrix, wherein the MCU unit is connected to the ADC resampling circuit, the NVM memory and the constant current LED driving unit respectively, and the constant current LED driving unit is connected to the LED matrix; The receiving card is connected to the LED light board module via a UART interface, and data exchange is performed using the LED light board data demodulation control method described in any one of claims 1 to 8.
10. The LED light board data demodulation control system according to claim 9, characterized in that: The receiving card is connected to the LED light board module via two sets of UART interfaces.
Citation Information
Patent Citations
LED lamp panel, lamp panel module group, and LED display screen control system
CN105047134A
Lamp panel module group, box body, and LED display screen system
CN105047135A
LED box
CN106782295A
Port multiplexing LED constant current driving chip and driving method
CN118450564A
Nonuniform point-by-point correction system for full-color LED display screen
CN201904067U