[go: up one dir, main page]

CN101916543B - Data communication method of LED display system - Google Patents

Data communication method of LED display system Download PDF

Info

Publication number
CN101916543B
CN101916543B CN2010102209051A CN201010220905A CN101916543B CN 101916543 B CN101916543 B CN 101916543B CN 2010102209051 A CN2010102209051 A CN 2010102209051A CN 201010220905 A CN201010220905 A CN 201010220905A CN 101916543 B CN101916543 B CN 101916543B
Authority
CN
China
Prior art keywords
timing
led driver
level
sequence
led
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010102209051A
Other languages
Chinese (zh)
Other versions
CN101916543A (en
Inventor
赵启永
陈帮勇
张世侨
孙熙文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Silan Microelectronics Co Ltd
Original Assignee
Hangzhou Silan Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Silan Microelectronics Co Ltd filed Critical Hangzhou Silan Microelectronics Co Ltd
Priority to CN2010102209051A priority Critical patent/CN101916543B/en
Publication of CN101916543A publication Critical patent/CN101916543A/en
Application granted granted Critical
Publication of CN101916543B publication Critical patent/CN101916543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2310/00Command of the display device
    • G09G2310/08Details of timing specific for flat panels, other than clock recovery
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]

Landscapes

  • Control Of El Displays (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a data communication method of an LED display system, which adopts a single-line bus for realizing data communication. The method comprises data full-receiving communication and/or data serial-receiving communication, wherein the timing sequence of the data full-receiving communication sent out by an LED controller sequentially comprises a resetting timing sequence, a resetting end timing sequence, a full-receiving instruction timing sequence, a starting address timing sequence, an M-effective data timing sequence, an end mark timing sequence and a resetting timing sequence; and the timing sequence of the data serial-receiving communication sent out by the LED controller sequentially comprises a resetting timing sequence, a resetting end timing sequence, a serial-receiving instruction timing sequence, a starting address timing sequence, an L-effective data timing sequence and a resetting timing sequence. The data communication method in the invention has the advantages of high communication efficiency, flexible control and good synchronization effect.

Description

一种LED显示系统的数据通信方法A data communication method for an LED display system

技术领域 technical field

本发明涉及LED显示技术,特别涉及一种采用单线总线实现的LED显示系统的数据通信方法。The invention relates to LED display technology, in particular to a data communication method of an LED display system realized by a single-wire bus.

背景技术 Background technique

现阶段,LED显示技术的应用已经越来越普及,目前广泛存在的LED显示系统,如图1所示,包括一个LED控制器和若干行依次串接的LED单元板;At this stage, the application of LED display technology has become more and more popular. At present, the widely existing LED display system, as shown in Figure 1, includes an LED controller and several rows of LED unit boards connected in series;

LED单元板包括一个增强信号驱动能力的BUFFER电路、一个产生动态显示扫描时序的译码电路、若干个开关管和若干个LED驱动电路;The LED unit board includes a BUFFER circuit that enhances the signal driving capability, a decoding circuit that generates dynamic display scanning timing, several switch tubes and several LED drive circuits;

LED控制器发出的通信信号如图2所示,包括扫描信号(SCANI)、使能信号(ENI)、锁存信号(LATI)、时钟信号(CLKI)、数据信号(DIN),LED控制器发出的扫描信号、使能信号、锁存信号、时钟信号依次经过各串接的LED单元板的BUFFER电路进行驱动增强后输出;The communication signals sent by the LED controller are shown in Figure 2, including scan signal (SCANI), enable signal (ENI), latch signal (LATI), clock signal (CLKI), and data signal (DIN). The scanning signal, enabling signal, latching signal, and clock signal are driven and enhanced by the BUFFER circuit of each series-connected LED unit board in sequence, and then output;

各LED单元板中经BUFFER电路增强后的扫描信号(SCANO)提供给本LED单元板的译码电路,译码电路译码产生动态显示扫描时序控制开关管;The scanning signal (SCANO) enhanced by the BUFFER circuit in each LED unit board is provided to the decoding circuit of the LED unit board, and the decoding circuit decodes to generate a dynamic display scan timing control switch tube;

各LED单元板中经BUFFER电路增强后的使能信号(ENO)、锁存信号(LATO)、时钟信号(CLKO)分别提供给本LED单元板中所有LED驱动电路;The enable signal (ENO), latch signal (LATO), and clock signal (CLKO) enhanced by the BUFFER circuit in each LED unit board are respectively provided to all LED drive circuits in the LED unit board;

LED控制器发出的数据信号(DIN)提供给第一个LED单元板的BUFFER电路,经驱动增强后输出给第一个LED单元板的第一个LED驱动电路数据信号输入端(Din),数据信号经过第一个LED单元板的各LED驱动电路,并在时钟信号控制下由内部移位寄存器输出给下一个LED驱动电路的数据信号输入端(Din);与此类似,此后的各LED单元板的BUFFER电路从与之串接的上一LED单元板得到数据信号,数据信号经BUFFER电路驱动增强后输出给本LED单元板的第一个LED驱动电路的数据信号输入端(Din),数据信号经过本LED单元板的各LED驱动电路,并在时钟信号控制下由内部移位寄存器输出给本LED单元板的下一个LED驱动电路的数据信号输入端(Din),本LED单元板的最后一个LED驱动电路的数据信号输出给下一个LED单元板的BUFFER电路;最后一个LED单元板上最后一个LED驱动电路的数据输出悬空。The data signal (DIN) sent by the LED controller is provided to the BUFFER circuit of the first LED unit board, and then output to the data signal input terminal (Din) of the first LED driving circuit of the first LED unit board after being driven and strengthened. The signal passes through each LED driving circuit of the first LED unit board, and is output to the data signal input terminal (Din) of the next LED driving circuit by the internal shift register under the control of the clock signal; similarly, each subsequent LED unit The BUFFER circuit of the board obtains the data signal from the previous LED unit board connected in series, and the data signal is driven and enhanced by the BUFFER circuit and then output to the data signal input terminal (Din) of the first LED drive circuit of the LED unit board. The signal passes through each LED driving circuit of this LED unit board, and is output to the data signal input terminal (Din) of the next LED driving circuit of this LED unit board by the internal shift register under the control of the clock signal, the last of this LED unit board The data signal of one LED driving circuit is output to the BUFFER circuit of the next LED unit board; the data output of the last LED driving circuit on the last LED unit board is suspended.

上述LED显示系统中,LED控制器需要多路控制信号才能实现对LED单元板的控制,布线复杂。In the above-mentioned LED display system, the LED controller needs multiple control signals to realize the control of the LED unit board, and the wiring is complicated.

为了克服图1所示的LED显示系统的缺点,申请号为200910099888.8的发明专利提出了一种LED驱动电路及其构成的串接通信系统和通信方法,该串接通信系统如图3所示仅需LED控制电路的一个输出口即可控制大量LED驱动电路,成本较低、布线简单、抗干扰能力强。In order to overcome the shortcomings of the LED display system shown in Figure 1, the invention patent application number 200910099888.8 proposes an LED drive circuit and its serial communication system and communication method. The serial communication system is shown in Figure 3. A large number of LED drive circuits can be controlled by one output port of the LED control circuit, and the cost is low, the wiring is simple, and the anti-interference ability is strong.

发明内容 Contents of the invention

本发明旨在进一步对图3所示的LED显示系统的数据通信方法进行说明。The purpose of the present invention is to further illustrate the data communication method of the LED display system shown in FIG. 3 .

一种LED显示系统的通信方法,其中LED显示系统包括:一块LED控制器和L级LED驱动器;A communication method for an LED display system, wherein the LED display system includes: an LED controller and an L-level LED driver;

所述LED控制器包括一个输出通信端口;The LED controller includes an output communication port;

所述LED驱动器,包括一输入通信端口、一输出通信端口;The LED driver includes an input communication port and an output communication port;

LED控制器输出通信端口连接第一级LED驱动器输入通信端口,第一级LED驱动器输出通信端口串接第二级LED驱动器输入通信端口,以此类推,前一级LED驱动器输出通信端口串接本级LED驱动器输入通信端口,本级LED驱动器输出通信端口串接下一级LED驱动器输入通信端口,L级LED驱动器依次串接,最后一级LED驱动器输出通信端口悬空;The output communication port of the LED controller is connected to the input communication port of the first-level LED driver, and the output communication port of the first-level LED driver is connected to the input communication port of the second-level LED driver in series, and so on. The input communication port of the first-level LED driver, the output communication port of the current-level LED driver is connected in series to the input communication port of the next-level LED driver, the L-level LED drivers are connected in series in sequence, and the output communication port of the last-level LED driver is suspended;

所述LED驱动器,包括一通信模式寄存器:通信模式寄存器存在两种状态:直通模式和非直通模式,当处于直通模式时,LED驱动器将输入通信端口接收到的时序同时发送到LED驱动器输出通信端口;当处于非直通模式时,LED驱动器根据接收到的指令产生其输出通信端口的输出。The LED driver includes a communication mode register: the communication mode register has two states: straight-through mode and non-through-through mode. When in the straight-through mode, the LED driver simultaneously sends the timing received by the input communication port to the output communication port of the LED driver ; When in non-pass-through mode, the LED driver generates the output of its output communication port according to the received command.

所述LED驱动器,还包括一存储器,用于存储LED控制器发给LED驱动器的控制信息和显示信息。The LED driver further includes a memory for storing control information and display information sent by the LED controller to the LED driver.

上述LED显示系统的数据通信方法在于包括数据全收通信和/或数据串收通信:The data communication method of the above-mentioned LED display system includes all data receiving communication and/or data serial receiving communication:

LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令将接收的数据同步置入所有LED驱动器的指定存储器空间,实现数据全收通信,LED控制器发出的数据全收通信时序由以下时序依次组成:复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据时序、结束标志时序、复位时序;The LED controller sends data to the L-level LED driver, and the L-level LED driver synchronously puts the received data into the designated memory space of all LED drivers according to the instruction to realize all-data communication. The timing of all-data communication sent by the LED controller is as follows The timing is composed in turn: reset timing, reset end timing, all receive instruction timing, start address timing, M valid data timing, end flag timing, reset timing;

所述M个有效数据时序由M个连续有效数据时序组成。The M valid data timings are composed of M consecutive valid data timings.

LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令依次接收LED控制器发出的数据,并将接收的数据置入各LED驱动器的指定存储器空间,实现数据串收通信,LED控制器发出的数据串收通信时序由以下时序依次组成:复位时序、复位结束时序、串收指令时序、开始地址时序、L个有效数据帧时序、复位时序。The LED controller sends data to the L-level LED driver, and the L-level LED driver receives the data sent by the LED controller in turn according to the instructions, and puts the received data into the designated memory space of each LED driver to realize data serial communication. The LED controller The sent data serial receiving communication timing is composed of the following timing sequentially: reset timing, reset end timing, serial receiving instruction timing, start address timing, L effective data frame timing, and reset timing.

所述L个有效数据帧时序,由L个连续的有效数据帧时序组成,有效数据帧时序由连续N个有效数据时序和1个结束标志时序组成;The L valid data frame timings are composed of L continuous valid data frame timings, and the valid data frame timings are composed of N consecutive valid data timing sequences and 1 end mark timing;

第1级LED驱动器从LED控制器接收属于本LED驱动器的第1个有效数据帧时序,将接收的数据置入指定存储器空间,并在接收第1个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第2至第L个有效数据帧时序和复位时序;The first-level LED driver receives the first valid data frame sequence belonging to the LED driver from the LED controller, puts the received data into the designated memory space, and outputs the communication port to it when receiving the first valid data frame sequence Send the invalid timing synchronously, and then continue to send the second to the L valid data frame timing and reset timing to its output communication port;

第2级LED驱动器接收到第1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第2个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第2个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第3至第L个有效数据帧时序和复位时序;The second-level LED driver receives the timing sent by the output communication port of the first-level LED driver, analyzes the timing of the second valid data frame belonging to the LED driver and puts the received data into the designated memory space, and receives the second When the timing of the valid data frame is valid, the invalid timing is sent synchronously to its output communication port, and then the 3rd to the Lth valid data frame timing and reset timing are continued to be sent to the output communication port;

依此类推,第n级LED驱动器接收到第n-1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第n个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第n个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第n+1至第L个有效数据帧时序和复位时序。By analogy, the nth level LED driver receives the timing sent by the output communication port of the n-1th level LED driver, parses the timing of the nth effective data frame belonging to the LED driver and puts the received data into the designated memory space, And when receiving the nth valid data frame timing, synchronously send the invalid timing sequence to its output communication port, and then continue to send the n+1th to Lth valid data frame timing and reset timing sequence to its output communication port.

复位时序(RESET),其功能为接收到复位时序的LED驱动器完成复位功能,且将LED驱动器的通信模式寄存器设置为直通模式;Reset sequence (RESET), its function is to complete the reset function of the LED driver receiving the reset sequence, and set the communication mode register of the LED driver to the direct mode;

复位结束时序(RESET_END)只能用在复位时序后;其功能表示复位结束;The reset end sequence (RESET_END) can only be used after the reset sequence; its function indicates the end of reset;

全收指令时序(IR_RX_ALL),用于表示该次通信为数据全收通信;All received command sequence (IR_RX_ALL), used to indicate that the communication is data received all communication;

串收指令时序(IR_RX_S),用于表示该次通信为数据串收通信;Serial receiving command sequence (IR_RX_S), used to indicate that this communication is data serial receiving communication;

开始地址时序(ADDS),用于表示指令中需要传递的数据在接收到该时序的LED驱动器存储器对应地址空间的起始地址;The start address timing (ADDS) is used to indicate the starting address of the address space corresponding to the LED driver memory that receives the timing of the data that needs to be transferred in the instruction;

有效数据时序(Data),用于表示指令中需要传递的数据;Effective data timing (Data), used to represent the data that needs to be transmitted in the instruction;

结束标志时序(END),LED驱动器收到结束标志字节表示当前有效数据时序结束;End mark sequence (END), the LED driver receives the end mark byte to indicate the end of the current valid data sequence;

无效时序(Noneffect),该字节可以插在复位结束时序、全收指令时序、串收指令时序、开始地址时、有效数据时序或结束标志时序之后,LED驱动器收到无效时序,不做任何处理。Invalid timing (Noneeffect), this byte can be inserted after the reset end timing, all receive command timing, serial receive command timing, start address, valid data timing or end mark timing, the LED driver receives invalid timing and does not do any processing .

单线总线实现的LED显示系统上电后,进行初始化通信,其步骤为:After the LED display system implemented by the single-wire bus is powered on, the initial communication is performed, and the steps are as follows:

(1)LED控制器发出至少L个复位时序,第1级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第1级LED驱动器将接收到的时序同时发送到输出通信端口;(1) The LED controller sends out at least L reset timing sequences. After receiving the reset timing sequences, the first-level LED driver sets the communication mode register to the direct mode, and the first-level LED driver simultaneously sends the received timing sequences to the output communication port;

(2)第2级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第2级LED驱动器将接收到的时序同时发送到输出通信端口;依此类推,各级LED驱动器收到前一级LED驱动器的复位时序后,将通信模式寄存器置为直通模式,且将接收到的时序同时发送到输出通信端口,直到所有LED驱动器都将通信模式寄存器置为直通模式。(2) After the second-level LED driver receives the reset sequence, it sets the communication mode register to the direct mode, and the second-level LED driver sends the received sequence to the output communication port at the same time; and so on, all levels of LED drivers receive After the reset sequence of the previous LED driver, set the communication mode register to the direct mode, and send the received sequence to the output communication port at the same time, until all LED drivers set the communication mode register to the direct mode.

所述数据全收通信的通信步骤为:The communication steps of the data all receiving communication are:

(1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式;(1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode;

(2)LED控制器依序发出复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序;(2) The LED controller sequentially sends out reset timing, reset end timing, all-receive instruction timing, start address timing, M effective data frame timing, end flag timing, and reset timing;

(3)在进行步骤(2)的同时第1级LED驱动器同步接收复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序。(3) While performing step (2), the first-level LED driver synchronously receives reset timing, reset end timing, all-receive command timing, start address timing, M valid data frame timing, end flag timing, and reset timing.

(4)由于各LED驱动器的通信模式寄存器设置为直通模式,在进行步骤(2)的同时,第n级LED驱动器同步从n-1级LED驱动器的输出通信端口依序接收n-1级驱动器传递过来的复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序,n为大于1小于L-1的整数。(4) Since the communication mode register of each LED driver is set to the direct mode, while performing step (2), the nth level LED driver synchronously receives the n-1 level driver in sequence from the output communication port of the n-1 level LED driver The transmitted reset timing, reset end timing, all receive instruction timing, start address timing, M valid data frame timing, end flag timing, and reset timing, n is an integer greater than 1 and less than L-1.

在各级LED驱动器接收到开始地址时序时,各级LED驱动器接收并解析开始地址时序,准备接收M个有效数据时序;When the LED drivers at all levels receive the start address sequence, the LED drivers at all levels receive and analyze the start address sequence, and prepare to receive M valid data sequences;

各级LED驱动器接收到M个有效数据时序时,解析M个有效数据时序,将存储器地址累加,并将M个有效数据依次放入以开始地址为首地址的存储器空间。When the LED drivers at all levels receive M valid data sequences, they analyze the M valid data sequences, accumulate the memory addresses, and put the M valid data sequentially into the memory space whose address starts with the start address.

所述数据串收通信的通信步骤为:The communication steps of the data serial reception communication are:

(1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式;(1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode;

(2)LED控制器依序发出复位时序、复位结束时序、串收指令时序、开始地址时序;(2) The LED controller sends out the reset sequence, the reset end sequence, the serial receiving command sequence, and the start address sequence in sequence;

(3)在进行步骤(2)的同时,由于各LED驱动器的通信模式寄存器设置为直通模式,各级LED驱动器同步接收复位时序、复位结束时序、串收指令时序、开始地址时序,各级LED驱动器在收到开始地址时序后将各自的通信模式寄存器设置为非直通模式;(3) While performing step (2), since the communication mode registers of each LED driver are set to direct mode, LED drivers at all levels receive reset timing, reset end timing, serial instruction timing, and start address timing synchronously. The driver sets the respective communication mode registers to non-straight-through mode after receiving the start address sequence;

(4)LED控制器依序发送第1至第L个有效数据帧时序、复位时序;(4) The LED controller sequentially sends the first to the L effective data frame timing and reset timing;

(5)在进行步骤(4)的同时,第1级LED驱动器依次接收LED控制器发出L个有效数据帧时序,并解析第1个有效数据帧时序,将第1个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第1个有效数据帧时序中N个有效数据时序和结束标志时序的同时,第1级LED驱动器依次发出N+1个无效时序到输出通信端口给第2级LED驱动器,由于第2级至第L级LED驱动器的通信寄存器处于非直通模式,第2级至第L级LED驱动器同步依次接收N+1个无效时序;在第1级LED驱动器接收到第1个有效数据帧时序中的结束标志时序时,将第1级LED驱动器的通信模式寄存器设置为直通模式,同时第1级LED驱动器将LED控制器发出的第2至第L个有效数据帧时序、复位时序依序发送到第1级LED驱动器的输出通信端口;(5) While performing step (4), the first-level LED driver sequentially receives the timing sequence of L valid data frames sent by the LED controller, and analyzes the timing sequence of the first valid data frame, and converts the timing sequence of the first valid data frame into N The valid data are sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data timing and the end mark timing in the first valid data frame sequentially, the first-level LED driver sequentially sends out N+1 invalid timings are sent to the output communication port for the second-level LED driver. Since the communication registers of the second-level to L-level LED drivers are in non-through mode, the second-level to L-level LED drivers receive N+1 sequentially synchronously An invalid sequence; when the first stage LED driver receives the end flag sequence in the first valid data frame sequence, set the communication mode register of the first stage LED driver to the direct mode, and the first stage LED driver will control the LED The second to L effective data frame timings and reset timings sent by the device are sent to the output communication port of the first-level LED driver in sequence;

(6)第2级LED驱动器依次接收第1级LED驱动器发出的第2至第L个有效数据帧时序,并解析第2个有效数据帧时序,将第2个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第2个有效数据帧时序中N个有效数据和结束标志时序的的同时,第2级LED驱动器依次发出N+1个无效时序到输出通信端口给第3级LED驱动器,由于第3级至第L级LED驱动器的通信寄存器处于非直通模式,第3级至第L级LED驱动器同步接收N+1个无效时序;在第2级LED驱动器接收到第2个有效数据帧时序中的结束标志时序时,将第2级LED驱动器的通信模式寄存器设置为直通模式,同时第2级LED驱动器将LED控制器发出的第3至第第L个有效数据帧时序、复位时序依序发送到第2级LED驱动器的输出通信端口;(6) The second-level LED driver sequentially receives the timing of the second to L valid data frames sent by the first-level LED driver, and analyzes the timing of the second valid data frame, and converts the timing of N effective data frames in the second valid data frame The data is sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data in the second valid data frame timing sequence and the end mark timing sequence, the second-level LED driver sequentially sends out N+ 1 invalid sequence to the output communication port to the third-level LED driver, because the communication registers of the third-level to L-level LED drivers are in non-through mode, the third-level to L-level LED drivers receive N+1 invalid timing synchronously ; When the second-level LED driver receives the end flag timing in the second valid data frame timing, set the communication mode register of the second-level LED driver to the direct mode, and at the same time, the second-level LED driver sends the LED controller. The third to Lth effective data frame timings and reset timings are sequentially sent to the output communication port of the second-level LED driver;

(7)依此类推,第n级LED驱动器依次接收第n-1级LED驱动器发出的第n至第L个有效数据帧时序,并解析第n个有效数据帧时序,将第n个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第n个有效数据帧时序中N个有效数据和结束标志时序的同时,第n个LED驱动器依次发出N+1个无效时序到输出通信端口给第n+1级LED驱动器,由于第n+1级至第L级LED驱动器的通信寄存器处于非直通模式,第n+1级至第L级LED驱动器同步接收N+1个无效时序;在第n级LED驱动器接收到第n有效数据帧时序中的结束标志时序时,将第n级LED驱动器的通信模式寄存器设置为直通模式,同时第n级LED驱动器将LED控制器发出的第n+1至第L个有效数据帧时序、复位时序依序发送到第n级LED驱动器的输出通信端口;n=n+1,n为大于2且小于L-1的整数,重复步骤(7)。(7) By analogy, the nth level LED driver sequentially receives the nth to Lth valid data frame timings sent by the n-1th level LED driver, and analyzes the nth valid data frame timing, and converts the nth valid data frame N valid data in the frame timing are sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data in the nth valid data frame timing and the timing of the end mark in turn, the nth LED The driver sequentially sends N+1 invalid timings to the output communication port to the n+1th level LED driver. Since the communication registers of the n+1th level to the Lth level LED driver are in non-through mode, the n+1th level to the Lth level LED driver The level LED driver receives N+1 invalid timings synchronously; when the nth level LED driver receives the end mark timing in the nth valid data frame timing, the communication mode register of the nth level LED driver is set to the direct mode, and the first level The n-level LED driver sends the n+1th to the Lth effective data frame timing and reset timing sent by the LED controller to the output communication port of the n-level LED driver in sequence; n=n+1, n is greater than 2 and For integers less than L-1, repeat step (7).

本发明的有益效果是:本发明所述的采用单线总线实现的LED显示系统的数据通信方法具有通信效率高、控制灵活、同步效果好的优点。The beneficial effects of the present invention are: the data communication method of the LED display system realized by the single-wire bus of the present invention has the advantages of high communication efficiency, flexible control and good synchronization effect.

附图说明 Description of drawings

图1为现有LED显示系统Figure 1 shows the existing LED display system

图2为现有LED显示系统通信协议Figure 2 is the communication protocol of the existing LED display system

图3为本发明中采用单线总线实现的的LED显示系统Fig. 3 is the LED display system realized by single-wire bus in the present invention

图4为本发明提出的数据全收通信时序图Fig. 4 is the sequence diagram of all data receiving communication proposed by the present invention

图5为本发明提出的数据串收通信时序图Fig. 5 is the sequence diagram of data serial receiving communication proposed by the present invention

图6为本发明实施例的LED显示系统通信协议中逻辑0/1的时序图Fig. 6 is a timing diagram of logic 0/1 in the LED display system communication protocol of the embodiment of the present invention

图7为本发明实施例的LED显示系统通信协议中8种时序的时序图Fig. 7 is a timing diagram of 8 timings in the communication protocol of the LED display system according to the embodiment of the present invention

图8为本发明提出的数据全收通信中各LED驱动器数据输入示意图Fig. 8 is a schematic diagram of the data input of each LED driver in the all-data communication proposed by the present invention

图9为本发明提出的数据串收通信中各LED驱动器数据输入示意图Fig. 9 is a schematic diagram of the data input of each LED driver in the data serial reception communication proposed by the present invention

具体实施方式 Detailed ways

一种采用单线总线实现的LED显示系统,如图3所示,包括一块LED控制器(3)和L级LED驱动器(21-2L):An LED display system implemented by a single-wire bus, as shown in Figure 3, includes an LED controller (3) and an L-level LED driver (21-2L):

所述LED控制器(3)包括一个输出通信端口(30);The LED controller (3) includes an output communication port (30);

所述LED驱动器,包括一输入通信端口(DIN)、一输出通信端口(DOUT);The LED driver includes an input communication port (DIN) and an output communication port (DOUT);

LED控制器(3)输出通信端口(30)连接第一级LED驱动器(21)输入通信端口(DIN),第一级LED驱动器(21)输出通信端口(DOUT)串接第二级LED驱动器(22)输入通信端口(DIN),以此类推,前一级LED驱动器输出通信端口(DOUT)串接本级LED驱动器输入通信端口(DIN),本级LED驱动器输出通信端口(DOUT)串接下一级LED驱动器输入通信端口(DIN),L级LED驱动器(21-2L)依次串接,最后一级LED驱动器输出通信端口(DOUT)悬空;The output communication port (30) of the LED controller (3) is connected to the input communication port (DIN) of the first-level LED driver (21), and the output communication port (DOUT) of the first-level LED driver (21) is connected in series to the second-level LED driver ( 22) Input communication port (DIN), and so on, the output communication port (DOUT) of the previous stage LED driver is connected in series with the input communication port (DIN) of the current stage LED driver, and the output communication port (DOUT) of the current stage LED driver is connected in series The first-level LED driver input communication port (DIN), the L-level LED driver (21-2L) are sequentially connected in series, and the last-level LED driver output communication port (DOUT) is suspended;

所述LED驱动器,包括一通信模式寄存器:通信模式寄存器值为0时,为直通模式,LED驱动器将输入通信端口(DIN)接收到的时序同时发送到LED驱动器输出通信端口(DOUT);通信模式寄存器值为1时,为非直通模式,LED驱动器根据接收到的指令产生其输出通信端口的输出。The LED driver includes a communication mode register: when the communication mode register value is 0, it is a direct mode, and the LED driver sends the timing received by the input communication port (DIN) to the LED driver output communication port (DOUT) at the same time; the communication mode When the register value is 1, it is non-through mode, and the LED driver generates the output of its output communication port according to the received command.

所述LED驱动器,还包括一存储器,用于存储LED控制器(3)发给LED驱动器的控制信息和显示信息。The LED driver also includes a memory for storing control information and display information sent to the LED driver by the LED controller (3).

上述LED显示系统的数据通信方法在于包括数据全收通信和/或数据串收通信:The data communication method of the above-mentioned LED display system includes all data receiving communication and/or data serial receiving communication:

LED控制器(3)发送数据给L级LED驱动器(21-2L),L级LED驱动器根据指令将接收的数据同步置入所有LED驱动器的指定存储器空间,实现数据全收通信,LED控制器(3)发出的数据全收通信时序,如图4所示,由以下时序依次组成:复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据时序、结束标志时序、复位时序;The LED controller (3) sends data to the L-level LED driver (21-2L), and the L-level LED driver synchronously puts the received data into the designated memory space of all LED drivers according to the instruction, so as to realize the communication of all data received, and the LED controller ( 3) The communication timing sequence of sending out all received data, as shown in Figure 4, consists of the following timing sequences in sequence: reset timing sequence, reset end timing sequence, all receiving instruction timing sequence, start address timing sequence, M valid data timing sequence, end flag timing sequence, reset timing sequence ;

所述M个有效数据时序由M个连续有效数据时序组成。The M valid data timings are composed of M consecutive valid data timings.

LED控制器(3)发送数据给L级LED驱动器(21-2L),L级LED驱动器根据指令依次接收LED控制器(3)发出的数据,并将接收的数据置入各LED驱动器的指定存储器空间,实现数据串收通信,如图5所示,由以下时序依次组成:复位时序、复位结束时序、串收指令时序、开始地址时序、L个有效数据帧时序、复位时序。The LED controller (3) sends data to the L-level LED driver (21-2L), and the L-level LED driver receives the data sent by the LED controller (3) in sequence according to the instruction, and puts the received data into the designated memory of each LED driver Space, to realize data serial reception communication, as shown in Figure 5, consists of the following sequence in sequence: reset sequence, reset end sequence, serial receive instruction sequence, start address sequence, L valid data frame sequence, reset sequence.

所述L个有效数据帧时序,由L个连续的有效数据帧时序组成,有效数据帧时序由连续N个有效数据时序和1个结束标志时序组成;The L valid data frame timings are composed of L continuous valid data frame timings, and the valid data frame timings are composed of N consecutive valid data timing sequences and 1 end mark timing;

第1级LED驱动器从LED控制器接收属于本LED驱动器的第1个有效数据帧时序,将接收的数据置入指定存储器空间,并在接收第1个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第2至第L个有效数据帧时序和复位时序;The first-level LED driver receives the first valid data frame sequence belonging to the LED driver from the LED controller, puts the received data into the designated memory space, and outputs the communication port to it when receiving the first valid data frame sequence Send the invalid timing synchronously, and then continue to send the second to the L valid data frame timing and reset timing to its output communication port;

第2级LED驱动器接收到第1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第2个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第2个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第3至第L个有效数据帧时序和复位时序;The second-level LED driver receives the timing sent by the output communication port of the first-level LED driver, analyzes the timing of the second valid data frame belonging to the LED driver and puts the received data into the designated memory space, and receives the second When the timing of the valid data frame is valid, the invalid timing is sent synchronously to its output communication port, and then the 3rd to the Lth valid data frame timing and reset timing are continued to be sent to the output communication port;

依此类推,第n级LED驱动器接收到第n-1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第n个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第n个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第n+1至第L个有效数据帧时序和复位时序。By analogy, the nth level LED driver receives the timing sent by the output communication port of the n-1th level LED driver, parses the timing of the nth effective data frame belonging to the LED driver and puts the received data into the designated memory space, And when receiving the nth valid data frame timing, synchronously send the invalid timing sequence to its output communication port, and then continue to send the n+1th to Lth valid data frame timing and reset timing sequence to its output communication port.

在本实施例中,所述复位时序长度为8位或者8位以上,复位结束时序、全收指令时序、串收指令时序、开始地址时序、有效数据时序、结束标志时序、无效时序时序定长8位,每位只能为逻辑0或者逻辑1,高/低电平占空比为1∶3表示逻辑0,高/低电平占空比为3∶1表示逻辑1,如图6所示。In this embodiment, the reset sequence length is 8 bits or more, and the reset end sequence, all receive instruction sequence, serial receive instruction sequence, start address sequence, valid data sequence, end flag sequence, and invalid sequence sequence have fixed lengths. 8 bits, each bit can only be logic 0 or logic 1, the high/low level duty ratio is 1:3 means logic 0, the high/low level duty ratio is 3:1 means logic 1, as shown in Figure 6 Show.

如图7所示,各时序定义如下:As shown in Figure 7, each timing is defined as follows:

复位时序(RESET),编码为00…00(8个0,或者大于8个0);其功能为接收到复位时序的LED驱动器完成复位功能,且将LED驱动器的通信模式寄存器设置为直通模式;Reset sequence (RESET), coded as 00...00 (8 0s, or greater than 8 0s); its function is to complete the reset function of the LED driver receiving the reset sequence, and set the communication mode register of the LED driver to the direct mode;

复位结束时序(RESET_END),编码为0000_0001,只能用在复位时序后;其功能表示复位结束;The reset end sequence (RESET_END), coded as 0000_0001, can only be used after the reset sequence; its function indicates the end of reset;

全收指令时序(IR_RX_ALL),编码为0001_1111,用于表示该次通信为数据全收通信;All receive command sequence (IR_RX_ALL), encoded as 0001_1111, used to indicate that this communication is data all receive communication;

串收指令时序(IR_RX_S),编码为0010_1111,用于表示该次通信为数据串收通信;Serial receiving command sequence (IR_RX_S), coded as 0010_1111, used to indicate that this communication is data serial receiving communication;

开始地址时序(ADDS),编码为1XXX_XXXX(X表示既可以为0也可以为1,以下同),用于表示指令中需要传递的数据在接收到该时序的LED驱动器存储器对应地址空间的起始地址,后7位表示地址信息;Start address timing (ADDS), coded as 1XXX_XXXX (X means it can be either 0 or 1, the same below), used to indicate the start of the address space corresponding to the LED driver memory that receives the timing of the data that needs to be transferred in the instruction Address, the last 7 bits represent the address information;

有效数据时序(Data),编码为1XXX_XXXX,用于表示指令中需要传递的数据,后7位表示数据信息;Effective data timing (Data), coded as 1XXX_XXXX, used to indicate the data to be transmitted in the instruction, and the last 7 bits indicate the data information;

结束标志时序(END),编码为0000_0010,LED驱动器收到结束标志字节表示当前有效数据时序结束;End mark sequence (END), encoded as 0000_0010, the LED driver receives the end mark byte to indicate the end of the current valid data sequence;

无效时序(Noneffect),编码为0111_1111,该字节可以插在复位结束时序、全收指令时序、串收指令时序、开始地址时、有效数据时序或结束标志时序之后,LED驱动器收到无效指令字节,不做任何处理。Invalid timing (Noneffect), coded as 0111_1111, this byte can be inserted after reset end timing, all receive command timing, serial receive command timing, start address, valid data timing or end mark timing, LED driver receives invalid command word section, do not do any processing.

单线总线实现的LED显示系统上电后,进行初始化通信,其步骤为:After the LED display system implemented by the single-wire bus is powered on, the initial communication is performed, and the steps are as follows:

(1)LED控制器(3)发出至少L个复位时序,第1级LED驱动器(21)接收到复位时序后,将通信模式寄存器置为直通模式,第1级LED驱动器(21)将接收到的时序同时发送到输出通信端口;(1) The LED controller (3) sends out at least L reset sequences, and after the first-stage LED driver (21) receives the reset sequences, it sets the communication mode register to a straight-through mode, and the first-stage LED driver (21) will receive The timing is sent to the output communication port at the same time;

(2)第2级LED驱动器(22)接收到复位时序后,将通信模式寄存器置为直通模式,第2级LED驱动器(22)将接收到的时序同时发送到输出通信端口;依此类推,各级LED驱动器收到前一级LED驱动器的复位时序后,将通信模式寄存器置为直通模式,且将接收到的时序同时发送到输出通信端口,直到所有LED驱动器都将通信模式寄存器置为直通模式。(2) After the second-level LED driver (22) receives the reset sequence, the communication mode register is set to the direct mode, and the second-level LED driver (22) sends the received sequence to the output communication port at the same time; and so on, After receiving the reset sequence of the previous LED driver, the LED drivers at all levels set the communication mode register to the through mode, and send the received sequence to the output communication port at the same time, until all LED drivers set the communication mode register to the through mode model.

所述数据全收通信的通信步骤为,如图8所示:The communication steps of the data all-receiving communication are as shown in FIG. 8:

(1)单线总线实现的LED显示系统进行系统初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式;(1) After the LED display system implemented by the single-wire bus performs system initialization communication, the communication mode register of each LED driver is set to the direct mode;

(2)LED控制器(3)依序发出复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序;(2) The LED controller (3) sequentially sends out reset timing, reset end timing, all-receive instruction timing, start address timing, M effective data frame timing, end flag timing, and reset timing;

(3)在进行步骤(1)的同时第1级LED驱动器同步接收复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序。(3) While performing step (1), the first-level LED driver synchronously receives reset timing, reset end timing, all-receive instruction timing, start address timing, M valid data frame timing, end flag timing, and reset timing.

(4)由于各LED驱动器的通信模式寄存器设置为直通模式,在进行步骤(1)的同时,第n级LED驱动器同步从n-1级LED驱动器的输出通信端口依序接收n-1级驱动器传递过来的复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序,n为大于1小于L-1的整数。(4) Since the communication mode register of each LED driver is set to the direct mode, while performing step (1), the nth level LED driver synchronously receives the n-1 level driver in sequence from the output communication port of the n-1 level LED driver The transmitted reset timing, reset end timing, all receive instruction timing, start address timing, M valid data frame timing, end flag timing, and reset timing, n is an integer greater than 1 and less than L-1.

在各级LED驱动器接收到开始地址时序时,各级LED驱动器(21-2L)接收并解析开始地址时序,准备接收M个有效数据时序;When the LED drivers at all levels receive the start address timing, the LED drivers (21-2L) at all levels receive and analyze the start address timing, and prepare to receive M valid data timings;

各LED驱动器(21-2L)接收到M个有效数据时序时,解析M个有效数据时序,将存储器地址累加,并将M个有效数据依次放入开始地址为首地址的存储器空间。When each LED driver (21-2L) receives M valid data sequences, it analyzes the M valid data sequences, accumulates the memory addresses, and sequentially puts the M valid data into the memory space whose starting address is the first address.

所述数据串收通信的通信步骤为,如图9所示:The communication steps of the data serial reception communication are, as shown in Figure 9:

(1)单线总线实现的LED显示系统进行系统初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式;(1) After the LED display system implemented by the single-wire bus performs system initialization communication, the communication mode register of each LED driver is set to the direct mode;

(2)LED控制器(3)依序发出复位时序、复位结束时序、串收指令时序、开始地址时序;(2) The LED controller (3) sequentially sends out the reset sequence, the reset end sequence, the serial receiving instruction sequence, and the start address sequence;

(3)在进行步骤(2)的同时,由于各LED驱动器的通信模式寄存器设置为直通模式,各级LED驱动器同步接收复位时序、复位结束时序、串收指令时序、开始地址时序,各级LED驱动器在收到开始地址时序后将各自的通信模式寄存器设置为非直通模式;(3) While performing step (2), since the communication mode registers of each LED driver are set to direct mode, LED drivers at all levels receive reset timing, reset end timing, serial instruction timing, and start address timing synchronously. The driver sets the respective communication mode registers to non-straight-through mode after receiving the start address sequence;

(4)LED控制器依序发送第1至第L个有效数据帧时序、复位时序;(4) The LED controller sequentially sends the first to the L effective data frame timing and reset timing;

(5)在进行步骤(4)的同时,第1级LED驱动器依次接收LED控制器(3)发出L个有效数据帧时序,并解析第1个有效数据帧时序,将第1个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第1个有效数据帧时序中N个有效数据时序和结束标志时序的同时,第1级LED驱动器(21)依次发出N+1个无效时序到输出通信端口给第2级LED驱动器,由于第2级至第L级LED驱动器的通信寄存器处于非直通模式,第2级至第L级LED驱动器同步依次接收N+1个无效时序;在第1级LED驱动器接收到第1个有效数据帧时序中的结束标志时序时,将第1级LED驱动器的通信模式寄存器设置为直通模式,同时第1级LED驱动器将LED控制器发出的第2至第L个有效数据帧时序、复位时序依序发送到第1级LED驱动器的输出通信端口;(5) While performing step (4), the first-level LED driver sequentially receives the timing sequence of L valid data frames sent by the LED controller (3), and analyzes the timing sequence of the first valid data frame, and converts the first valid data frame N valid data in the timing sequence are put into the memory space with the start address as the first address, and the memory address is accumulated; while receiving the N valid data timing sequence and the end mark timing sequence in the first valid data frame sequence sequentially, the first level LED The driver (21) sequentially sends N+1 invalid timings to the output communication port to the second-level LED driver. Since the communication registers of the second-level to L-level LED drivers are in non-straight-through mode, the second-level to L-level LED drivers Synchronously receive N+1 invalid timings sequentially; when the first-level LED driver receives the end flag timing in the first valid data frame timing, set the communication mode register of the first-level LED driver to the direct mode, and at the same time the first The first-level LED driver sends the second to Lth effective data frame timing and reset timing sent by the LED controller to the output communication port of the first-level LED driver in sequence;

(6)第2级LED驱动器依次接收第1级LED驱动器发出的第2至第L个有效数据帧时序,并解析第2个有效数据帧时序,将第2个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第2个有效数据帧时序中N个有效数据和结束标志时序的的同时,第2级LED驱动器(22)依次发出N+1个无效时序到输出通信端口给第3级LED驱动器,由于第3级至第L级LED驱动器的通信寄存器处于非直通模式,第3级至第L级LED驱动器同步接收N+1个无效时序;在第2级LED驱动器接收到第2个有效数据帧时序中的结束标志时序时,将第2级LED驱动器的通信模式寄存器设置为直通模式,同时第2级LED驱动器将LED控制器发出的第3至第第L个有效数据帧时序、复位时序依序发送到第2级LED驱动器的输出通信端口;(6) The second-level LED driver sequentially receives the timing of the second to L valid data frames sent by the first-level LED driver, and analyzes the timing of the second valid data frame, and converts the timing of N effective data frames in the second valid data frame The data is put into the memory space with the start address as the first address in turn, and the memory address is accumulated; while receiving the N valid data and the end mark timing in the second valid data frame sequentially, the second-level LED driver (22) sequentially Send N+1 invalid timings to the output communication port to the third-level LED driver. Since the communication registers of the third-level to L-level LED drivers are in non-through mode, the third-level to L-level LED drivers receive N+1 synchronously. an invalid timing; when the second-level LED driver receives the end flag timing in the second valid data frame timing, set the communication mode register of the second-level LED driver to the direct mode, and the second-level LED driver will control the LED The 3rd to Lth effective data frame timing and reset timing sent by the device are sent to the output communication port of the second-level LED driver in sequence;

(7)依此类推,第n级LED驱动器依次接收第n-1级LED驱动器发出的第n至第L个有效数据帧时序,并解析第n个有效数据帧时序,将第n个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第n个有效数据帧时序中N个有效数据和结束标志时序的同时,第n个LED驱动器(2n)依次发出N+1个无效时序到输出通信端口给第n+1级LED驱动器,由于第n+1级至第L级LED驱动器的通信寄存器处于非直通模式,第n+1级至第L级LED驱动器同步接收N+1个无效时序;在第n级LED驱动器接收到第n有效数据帧时序中的结束标志时序时,将第n级LED驱动器的通信模式寄存器设置为直通模式,同时第n级LED驱动器将LED控制器发出的第n+1至第L个有效数据帧时序、复位时序依序发送到第n级LED驱动器的输出通信端口;n=n+1,n为大于2且小于L-1的整数,重复步骤(7)。(7) By analogy, the nth level LED driver sequentially receives the nth to Lth valid data frame timings sent by the n-1th level LED driver, and analyzes the nth valid data frame timing, and converts the nth valid data frame N valid data in the frame timing are sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data in the nth valid data frame timing and the timing of the end mark in turn, the nth LED The driver (2n) sequentially sends N+1 invalid timings to the output communication port to the n+1th level LED driver. Since the communication registers of the n+1th level to the L-th level LED driver are in non-through mode, the n+1st level When the L-th LED driver receives N+1 invalid timings synchronously; when the n-th LED driver receives the end flag timing in the n-th valid data frame timing, set the communication mode register of the n-th LED driver to the direct mode , at the same time, the nth-level LED driver sends the n+1th to the Lth effective data frame timing and reset timing sent by the LED controller to the output communication port of the nth-level LED driver in sequence; n=n+1, n is For an integer greater than 2 and less than L-1, repeat step (7).

应该理解到的是,上述实施例只是对本发明的说明,而不是对本发明的限制,任何不超出本发明实质精神范围内的发明创造,均落入本发明保护范围之内。It should be understood that the above-mentioned embodiments are only descriptions of the present invention, rather than limitations of the present invention, and any inventions that do not exceed the spirit of the present invention fall within the protection scope of the present invention.

Claims (11)

1.LED显示系统的通信方法,其中LED显示系统包括:一块LED控制器和L级LED驱动器; 1. The communication method of the LED display system, wherein the LED display system includes: an LED controller and an L-level LED driver; 所述LED控制器包括一个输出通信端口; The LED controller includes an output communication port; 所述LED驱动器,包括一输入通信端口、一输出通信端口; The LED driver includes an input communication port and an output communication port; LED控制器输出通信端口连接第一级LED驱动器输入通信端口,第一级LED驱动器输出通信端口串接第二级LED驱动器输入通信端口,以此类推,前一级LED驱动器输出通信端口串接本级LED驱动器输入通信端口,本级LED驱动器输出通信端口串接下一级LED驱动器输入通信端口,L级LED驱动器依次串接,最后一级LED驱动器输出通信端口悬空; The output communication port of the LED controller is connected to the input communication port of the first-level LED driver, and the output communication port of the first-level LED driver is connected to the input communication port of the second-level LED driver in series, and so on. The input communication port of the first-level LED driver, the output communication port of the current-level LED driver is connected in series to the input communication port of the next-level LED driver, the L-level LED drivers are connected in series in sequence, and the output communication port of the last-level LED driver is suspended; 所述LED驱动器,包括一通信模式寄存器:通信模式寄存器存在两种状态:直通模式和非直通模式,当处于直通模式时,LED驱动器将输入通信端口接收到的时序同时发送到LED驱动器输出通信端口;当处于非直通模式时,LED驱动器根据接收到的指令产生其输出通信端口的输出; The LED driver includes a communication mode register: the communication mode register has two states: straight-through mode and non-through-through mode. When in the straight-through mode, the LED driver simultaneously sends the timing received by the input communication port to the output communication port of the LED driver ;When in the non-through mode, the LED driver generates the output of its output communication port according to the received command; 所述LED驱动器,还包括一存储器,用于存储LED控制器发给LED驱动器的控制信息和显示信息; The LED driver also includes a memory for storing control information and display information sent by the LED controller to the LED driver; 其特征在于上述LED显示系统的数据通信方法在于包括数据全收通信和/或数据串收通信: It is characterized in that the data communication method of the above-mentioned LED display system includes all data receiving communication and/or data serial receiving communication: LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令将接收的数据同步置入所有LED驱动器的指定存储器空间,实现数据全收通信,LED控制器发出的数据全收通信时序由以下时序依次组成:复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据时序、结束标志时序、复位时序; The LED controller sends data to the L-level LED driver, and the L-level LED driver synchronously puts the received data into the designated memory space of all LED drivers according to the instruction to realize all-data communication. The timing of all-data communication sent by the LED controller is as follows The timing is composed in turn: reset timing, reset end timing, all receive instruction timing, start address timing, M valid data timing, end flag timing, reset timing; LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令依次接收LED控制器发出的数据,并将接收的数据置入各LED驱动器的指定存储器空间,实现数据串收通信,LED控制器发出的数据串收通信时序由以下时序依次组成:复位时序、复位结束时序、串收指令时序、开始地址时序、L个有效数据帧时序、复位时序; The LED controller sends data to the L-level LED driver, and the L-level LED driver receives the data sent by the LED controller in turn according to the instructions, and puts the received data into the designated memory space of each LED driver to realize data serial communication. The LED controller The sent data serial reception communication timing is composed of the following timing sequences in sequence: reset timing, reset end timing, serial receiving instruction timing, start address timing, L effective data frame timing, and reset timing; 所述L个有效数据帧时序,由L个连续的有效数据帧时序组成,有效数据帧时序由连续N个有效数据时序和1个结束标志时序组成; The L valid data frame timings are composed of L continuous valid data frame timings, and the valid data frame timings are composed of N consecutive valid data timing sequences and 1 end mark timing; 第1级LED驱动器从LED控制器接收属于本LED驱动器的第1个有效数据帧时序,将接收的数据置入指定存储器空间,并在接收第1个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第2至第L个有效数据帧时序和复位时序; The first-level LED driver receives the first valid data frame sequence belonging to the LED driver from the LED controller, puts the received data into the designated memory space, and outputs the communication port to it when receiving the first valid data frame sequence Send the invalid timing synchronously, and then continue to send the second to the L valid data frame timing and reset timing to its output communication port; 第2级LED驱动器接收到第1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第2个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第2个 有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第3至第L个有效数据帧时序和复位时序; The second-level LED driver receives the timing sent by the output communication port of the first-level LED driver, analyzes the timing of the second valid data frame belonging to the LED driver and puts the received data into the designated memory space, and receives the second When the timing of the valid data frame is valid, the invalid timing is sent synchronously to its output communication port, and then the 3rd to the Lth valid data frame timing and reset timing are continued to be sent to the output communication port; 依此类推,第n级LED驱动器接收到第n-1级LED驱动器的输出通信端口发送的时序,解析属于本LED驱动器的第n个有效数据帧时序并将接收的数据置入指定存储器空间,并在接收第n个有效数据帧时序时,向其输出通信端口同步发送无效时序,此后向其输出通信端口继续发送第n+1至第L个有效数据帧时序和复位时序。 By analogy, the nth level LED driver receives the timing sent by the output communication port of the n-1th level LED driver, parses the timing of the nth effective data frame belonging to the LED driver and puts the received data into the designated memory space, And when receiving the nth valid data frame timing, synchronously send the invalid timing sequence to its output communication port, and then continue to send the n+1th to Lth valid data frame timing and reset timing sequence to its output communication port. 2.如权利要求1所述LED显示系统的通信方法,其特征在于所述M个有效数据时序由M个连续有效数据时序组成。 2. The communication method of the LED display system according to claim 1, wherein the M valid data sequences are composed of M continuous valid data sequences. 3.如权利要求1所述LED显示系统的通信方法,其特征在于: 3. The communication method of LED display system as claimed in claim 1, characterized in that: 复位时序,其功能为接收到复位时序的LED驱动器完成复位功能,且将LED驱动器的通信模式寄存器设置为直通模式; Reset timing, its function is to complete the reset function of the LED driver receiving the reset timing, and set the communication mode register of the LED driver to the direct mode; 复位结束时序只能用在复位时序后;其功能表示复位结束; The reset end sequence can only be used after the reset sequence; its function indicates the end of reset; 全收指令时序,用于表示该次通信为数据全收通信; The sequence of the all-receive command is used to indicate that the communication is a data-receive communication; 串收指令时序,用于表示该次通信为数据串收通信; The sequence of serial receiving instructions is used to indicate that the communication is data serial receiving communication; 开始地址时序,用于表示指令中需要传递的数据在接收到该时序的LED驱动器存储器对应地址空间的起始地址; The start address sequence is used to indicate the start address of the address space corresponding to the LED driver memory that receives the sequence of data that needs to be transferred in the instruction; 有效数据时序,用于表示指令中需要传递的数据; Effective data timing, used to represent the data that needs to be transferred in the instruction; 结束标志时序,LED驱动器收到结束标志字节表示当前有效数据时序结束; End mark sequence, the LED driver receives the end mark byte to indicate the end of the current effective data sequence; 无效时序,该字节可以插在复位结束时序、全收指令时序、串收指令时序、开始地址时、有效数据时序或结束标志时序之后,LED驱动器收到无效时序,不做任何处理。 Invalid timing, this byte can be inserted after reset end timing, all receive command timing, serial receive command timing, start address, valid data timing or end mark timing, LED driver receives invalid timing and does not do any processing. 4.如权利要求1所述LED显示系统的通信方法,其特征在于所述数据全收通信的通信步骤为: 4. The communication method of LED display system as claimed in claim 1, characterized in that the communication step of said data receiving communication is: (1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式; (1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode; (2)LED控制器依序发出复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序; (2) The LED controller sequentially sends out reset timing, reset end timing, all-receive instruction timing, start address timing, M effective data frame timing, end flag timing, and reset timing; (3)在进行步骤(2)的同时第1级LED驱动器同步接收复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序; (3) While performing step (2), the first-level LED driver synchronously receives reset timing, reset end timing, all-receive instruction timing, start address timing, M valid data frame timing, end flag timing, and reset timing; (4)由于各LED驱动器的通信模式寄存器设置为直通模式,在进行步骤(2)的同时,第n级LED驱动器同步从n-1级LED驱动器的输出通信端口依序接收n-1级驱动器传递 过来的复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序,n为大于1小于L-1的整数; (4) Since the communication mode register of each LED driver is set to the direct mode, while performing step (2), the nth level LED driver synchronously receives the n-1 level driver in sequence from the output communication port of the n-1 level LED driver The transmitted reset timing, reset end timing, all received instruction timing, start address timing, M valid data frame timing, end flag timing, reset timing, n is an integer greater than 1 and less than L-1; 在各级LED驱动器接收到开始地址时序时,各级LED驱动器接收并解析开始地址时序,准备接收M个有效数据时序; When the LED drivers at all levels receive the start address sequence, the LED drivers at all levels receive and analyze the start address sequence, and prepare to receive M valid data sequences; 各级LED驱动器接收到M个有效数据时序时,解析M个有效数据时序,将存储器地址累加,并将M个有效数据依次放入以开始地址为首地址的存储器空间。 When the LED drivers at all levels receive M valid data sequences, they analyze the M valid data sequences, accumulate the memory addresses, and put the M valid data sequentially into the memory space whose address starts with the start address. 5.如权利要求1所述LED显示系统的通信方法,其特征在于所述数据串收通信的通信步骤为: 5. The communication method of the LED display system according to claim 1, wherein the communication steps of the data serial communication are as follows: (1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式; (1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode; (2)LED控制器依序发出复位时序、复位结束时序、串收指令时序、开始地址时序; (2) The LED controller sends out the reset sequence, the reset end sequence, the serial receiving command sequence, and the start address sequence in sequence; (3)在进行步骤(2)的同时,由于各LED驱动器的通信模式寄存器设置为直通模式,各级LED驱动器同步接收复位时序、复位结束时序、串收指令时序、开始地址时序,各级LED驱动器在收到开始地址时序后将各自的通信模式寄存器设置为非直通模式; (3) While performing step (2), since the communication mode registers of each LED driver are set to direct mode, LED drivers at all levels receive reset timing, reset end timing, serial instruction timing, and start address timing synchronously. The driver sets the respective communication mode registers to non-straight-through mode after receiving the start address sequence; (4)LED控制器依序发送第1至第L个有效数据帧时序、复位时序; (4) The LED controller sequentially sends the first to the L effective data frame timing and reset timing; (5)在进行步骤(4)的同时,第1级LED驱动器依次接收LED控制器发出L个有效数据帧时序,并解析第1个有效数据帧时序,将第1个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第1个有效数据帧时序中N个有效数据时序和结束标志时序的同时,第1级LED驱动器依次发出N+1个无效时序到输出通信端口给第2级LED驱动器,由于第2级至第L级LED驱动器的通信寄存器处于非直通模式,第2级至第L级LED驱动器同步依次接收N+1个无效时序;在第1级LED驱动器接收到第1个有效数据帧时序中的结束标志时序时,将第1级LED驱动器的通信模式寄存器设置为直通模式,同时第1级LED驱动器将LED控制器发出的第2至第L个有效数据帧时序、复位时序依序发送到第1级LED驱动器的输出通信端口; (5) While performing step (4), the first-level LED driver sequentially receives the timing sequence of L valid data frames sent by the LED controller, and analyzes the timing sequence of the first valid data frame, and converts the timing sequence of the first valid data frame into N The valid data are sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data timing and the end mark timing in the first valid data frame sequentially, the first-level LED driver sequentially sends out N+1 invalid timings are sent to the output communication port for the second-level LED driver. Since the communication registers of the second-level to L-level LED drivers are in non-through mode, the second-level to L-level LED drivers receive N+1 sequentially synchronously An invalid sequence; when the first stage LED driver receives the end flag sequence in the first valid data frame sequence, set the communication mode register of the first stage LED driver to the direct mode, and the first stage LED driver will control the LED The second to L effective data frame timings and reset timings sent by the device are sent to the output communication port of the first-level LED driver in sequence; (6)第2级LED驱动器依次接收第1级LED驱动器发出的第2至第L个有效数据帧时序,并解析第2个有效数据帧时序,将第2个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第2个有效数据帧时序中N个有效数据和结束标志时序的的同时,第2级LED驱动器依次发出N+1个无效时序到输出通信端口给第3级LED驱动器,由于第3级至第L级LED驱动器的通信寄 存器处于非直通模式,第3级至第L级LED驱动器同步接收N+1个无效时序;在第2级LED驱动器接收到第2个有效数据帧时序中的结束标志时序时,将第2级LED驱动器的通信模式寄存器设置为直通模式,同时第2级LED驱动器将LED控制器发出的第3至第L个有效数据帧时序、复位时序依序发送到第2级LED驱动器的输出通信端口; (6) The second-level LED driver sequentially receives the timing of the second to L valid data frames sent by the first-level LED driver, and analyzes the timing of the second valid data frame, and converts the timing of N effective data frames in the second valid data frame The data is sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data in the second valid data frame timing sequence and the end mark timing sequence, the second-level LED driver sequentially sends out N+ 1 invalid sequence to the output communication port for the third-level LED driver, since the communication registers of the third-level to L-level LED drivers are in non-through mode, the third-level to L-level LED drivers receive N+1 synchronously Invalid timing; when the second-level LED driver receives the end flag timing in the second valid data frame timing, set the communication mode register of the second-level LED driver to direct mode, and at the same time, the second-level LED driver sets the LED controller The 3rd to L valid data frame timings and reset timings are sent to the output communication port of the second-level LED driver in sequence; (7)依此类推,第n级LED驱动器依次接收第n-1级LED驱动器发出的第n至第L个有效数据帧时序,并解析第n个有效数据帧时序,将第n个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第n个有效数据帧时序中N个有效数据和结束标志时序的同时,第n个LED驱动器依次发出N+1个无效时序到输出通信端口给第n+1级LED驱动器,由于第n+1级至第L级LED驱动器的通信寄存器处于非直通模式,第n+1级至第L级LED驱动器同步接收N+1个无效时序;在第n级LED驱动器接收到第n有效数据帧时序中的结束标志时序时,将第n级LED驱动器的通信模式寄存器设置为直通模式,同时第n级LED驱动器将LED控制器发出的第n+1至第L个有效数据帧时序、复位时序依序发送到第n级LED驱动器的输出通信端口;n=n+1,n为大于2且小于L-1的整数,重复步骤(7)。 (7) By analogy, the nth level LED driver sequentially receives the nth to Lth valid data frame timings sent by the n-1th level LED driver, and analyzes the nth valid data frame timing, and converts the nth valid data frame N valid data in the frame timing are sequentially put into the memory space with the start address as the first address, and the memory address is accumulated; while receiving the N valid data in the nth valid data frame timing and the timing of the end mark in turn, the nth LED The driver sequentially sends N+1 invalid timings to the output communication port to the n+1th level LED driver. Since the communication registers of the n+1th level to the Lth level LED driver are in non-through mode, the n+1th level to the Lth level LED driver The level LED driver receives N+1 invalid timings synchronously; when the nth level LED driver receives the end mark timing in the nth valid data frame timing, the communication mode register of the nth level LED driver is set to the direct mode, and the first level The n-level LED driver sends the n+1th to the Lth effective data frame timing and reset timing sent by the LED controller to the output communication port of the n-level LED driver in sequence; n=n+1, n is greater than 2 and Integers less than L-1, repeat step (7). 6.如权利要求4或5所述LED显示系统的通信方法,其特征在于初始化通信步骤为: 6. The communication method of LED display system as claimed in claim 4 or 5, characterized in that the initialization communication step is: (1)LED控制器发出至少L个复位时序,第1级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第1级LED驱动器将接收到的时序同时发送到输出通信端口; (1) The LED controller sends out at least L reset timing sequences. After receiving the reset timing sequences, the first-level LED driver sets the communication mode register to the direct mode, and the first-level LED driver simultaneously sends the received timing sequences to the output communication port; (2)第2级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第2级LED驱动器将接收到的时序同时发送到输出通信端口;依此类推,各级LED驱动器收到前一级LED驱动器的复位时序后,将通信模式寄存器置为直通模式,且将接收到的时序同时发送到输出通信端口,直到所有LED驱动器都将通信模式寄存器置为直通模式。 (2) After the second-level LED driver receives the reset sequence, it sets the communication mode register to the direct mode, and the second-level LED driver sends the received sequence to the output communication port at the same time; and so on, all levels of LED drivers receive After the reset sequence of the previous LED driver, set the communication mode register to the direct mode, and send the received sequence to the output communication port at the same time, until all LED drivers set the communication mode register to the direct mode. 7.LED显示系统的通信方法,其中LED显示系统包括:一块LED控制器和L级LED驱动器; 7. A communication method for an LED display system, wherein the LED display system includes: an LED controller and an L-level LED driver; 所述LED控制器包括一个输出通信端口; The LED controller includes an output communication port; 所述LED驱动器,包括一输入通信端口、一输出通信端口; The LED driver includes an input communication port and an output communication port; LED控制器输出通信端口连接第一级LED驱动器输入通信端口,第一级LED驱动器输出通信端口串接第二级LED驱动器输入通信端口,以此类推,前一级LED驱动器输出通信端口串接本级LED驱动器输入通信端口,本级LED驱动器输出通信端口串接下一级LED驱动器 输入通信端口,L级LED驱动器依次串接,最后一级LED驱动器输出通信端口悬空; The output communication port of the LED controller is connected to the input communication port of the first-level LED driver, and the output communication port of the first-level LED driver is connected to the input communication port of the second-level LED driver in series, and so on. The input communication port of the first-level LED driver, the output communication port of the current-level LED driver is connected in series to the input communication port of the next-level LED driver, the L-level LED drivers are connected in series in sequence, and the output communication port of the last-level LED driver is suspended; 所述LED驱动器,包括一通信模式寄存器:通信模式寄存器存在两种状态:直通模式和非直通模式,当处于直通模式时,LED驱动器将输入通信端口接收到的时序同时发送到LED驱动器输出通信端口;当处于非直通模式时,LED驱动器根据接收到的指令产生其输出通信端口的输出; The LED driver includes a communication mode register: the communication mode register has two states: straight-through mode and non-through-through mode. When in the straight-through mode, the LED driver simultaneously sends the timing received by the input communication port to the output communication port of the LED driver ;When in the non-through mode, the LED driver generates the output of its output communication port according to the received command; 所述LED驱动器,还包括一存储器,用于存储LED控制器发给LED驱动器的控制信息和显示信息; The LED driver also includes a memory for storing control information and display information sent by the LED controller to the LED driver; 其特征在于上述LED显示系统的数据通信方法在于包括数据全收通信和/或数据串收通信: It is characterized in that the data communication method of the above-mentioned LED display system includes all data receiving communication and/or data serial receiving communication: LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令将接收的数据同步置入所有LED驱动器的指定存储器空间,实现数据全收通信,LED控制器发出的数据全收通信时序由以下时序依次组成:复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据时序、结束标志时序、复位时序; The LED controller sends data to the L-level LED driver, and the L-level LED driver synchronously puts the received data into the designated memory space of all LED drivers according to the instruction to realize all-data communication. The timing of all-data communication sent by the LED controller is as follows The timing is composed in turn: reset timing, reset end timing, all receive instruction timing, start address timing, M valid data timing, end flag timing, reset timing; LED控制器发送数据给L级LED驱动器,L级LED驱动器根据指令依次接收LED控制器发出的数据,并将接收的数据置入各LED驱动器的指定存储器空间,实现数据串收通信,LED控制器发出的数据串收通信时序由以下时序依次组成:复位时序、复位结束时序、串收指令时序、开始地址时序、L个有效数据帧时序、复位时序; The LED controller sends data to the L-level LED driver, and the L-level LED driver receives the data sent by the LED controller in turn according to the instructions, and puts the received data into the designated memory space of each LED driver to realize data serial communication. The LED controller The sent data serial reception communication timing is composed of the following timing sequences in sequence: reset timing, reset end timing, serial receiving instruction timing, start address timing, L effective data frame timing, and reset timing; 所述数据串收通信的通信步骤为: The communication steps of the data serial reception communication are: (1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式; (1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode; (2)LED控制器依序发出复位时序、复位结束时序、串收指令时序、开始地址时序; (2) The LED controller sends out the reset sequence, the reset end sequence, the serial receiving command sequence, and the start address sequence in sequence; (3)在进行步骤(2)的同时,由于各LED驱动器的通信模式寄存器设置为直通模式,各级LED驱动器同步接收复位时序、复位结束时序、串收指令时序、开始地址时序,各级LED驱动器在收到开始地址时序后将各自的通信模式寄存器设置为非直通模式; (3) While performing step (2), since the communication mode registers of each LED driver are set to direct mode, LED drivers at all levels receive reset timing, reset end timing, serial instruction timing, and start address timing synchronously. The driver sets the respective communication mode registers to non-straight-through mode after receiving the start address sequence; (4)LED控制器依序发送第1至第L个有效数据帧时序、复位时序; (4) The LED controller sequentially sends the first to the L effective data frame timing and reset timing; (5)在进行步骤(4)的同时,第1级LED驱动器依次接收LED控制器发出L个有效数据帧时序,并解析第1个有效数据帧时序,将第1个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第1个有效数据帧时序中N个有效数据时序和结束标志时序的同时,第1级LED驱动器依次发 出N+1个无效时序到输出通信端口给第2级LED驱动器,由于第2级至第L级LED驱动器的通信寄存器处于非直通模式,第2级至第L级LED驱动器同步依次接收N+1个无效时序;在第1级LED驱动器接收到第1个有效数据帧时序中的结束标志时序时,将第1级LED驱动器的通信模式寄存器设置为直通模式,同时第1级LED驱动器将LED控制器发出的第2至第L个有效数据帧时序、复位时序依序发送到第1级LED驱动器的输出通信端口; (5) While performing step (4), the first-level LED driver sequentially receives the timing sequence of L valid data frames sent by the LED controller, and analyzes the timing sequence of the first valid data frame, and converts the timing sequence of the first valid data frame into N The valid data are put into the memory space with the starting address as the first address in turn, and the memory addresses are accumulated; while receiving the N valid data timing and the end mark timing in the first valid data frame sequentially, the first-level LED driver sequentially sends Send out N+1 invalid timing sequences to the output communication port to the second-level LED driver. Since the communication registers of the second-level to L-level LED drivers are in non-through mode, the second-level to L-level LED drivers receive N+ sequentially synchronously. 1 invalid timing; when the first stage LED driver receives the end flag timing in the first valid data frame timing, set the communication mode register of the first stage LED driver to the direct mode, and the first stage LED driver will LED The second to L effective data frame timings and reset timings sent by the controller are sequentially sent to the output communication port of the first-level LED driver; (6)第2级LED驱动器依次接收第1级LED驱动器发出的第2至第L个有效数据帧时序,并解析第2个有效数据帧时序,将第2个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第2个有效数据帧时序中N个有效数据和结束标志时序的的同时,第2级LED驱动器依次发出N+1个无效时序到输出通信端口给第3级LED驱动器,由于第3级至第L级LED驱动器的通信寄存器处于非直通模式,第3级至第L级LED驱动器同步接收N+1个无效时序;在第2级LED驱动器接收到第2个有效数据帧时序中的结束标志时序时,将第2级LED驱动器的通信模式寄存器设置为直通模式,同时第2级LED驱动器将LED控制器发出的第3至第L个有效数据帧时序、复位时序依序发送到第2级LED驱动器的输出通信端口; (6) The second-level LED driver sequentially receives the timing of the second to L valid data frames sent by the first-level LED driver, and analyzes the timing of the second valid data frame, and converts the timing of N valid data frames in the second valid data frame The data is sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data and the end mark timing in the second valid data frame sequentially, the second-level LED driver sequentially sends out N+ 1 invalid sequence to the output communication port for the third-level LED driver, since the communication registers of the third-level to L-level LED drivers are in non-through mode, the third-level to L-level LED drivers receive N+1 invalid timing synchronously ; When the second-level LED driver receives the end flag timing in the second valid data frame timing, set the communication mode register of the second-level LED driver to the direct mode, and at the same time, the second-level LED driver sends the LED controller. The 3rd to L effective data frame timing and reset timing are sequentially sent to the output communication port of the second-level LED driver; (7)依此类推,第n级LED驱动器依次接收第n-1级LED驱动器发出的第n至第L个有效数据帧时序,并解析第n个有效数据帧时序,将第n个有效数据帧时序中N个有效数据依次放入以开始地址为首地址的存储器空间,将存储器地址累加;在依次接收第n个有效数据帧时序中N个有效数据和结束标志时序的同时,第n个LED驱动器依次发出N+1个无效时序到输出通信端口给第n+1级LED驱动器,由于第n+1级至第L级LED驱动器的通信寄存器处于非直通模式,第n+1级至第L级LED驱动器同步接收N+1个无效时序;在第n级LED驱动器接收到第n有效数据帧时序中的结束标志时序时,将第n级LED驱动器的通信模式寄存器设置为直通模式,同时第n级LED驱动器将LED控制器发出的第n+1至第L个有效数据帧时序、复位时序依序发送到第n级LED驱动器的输出通信端口;n=n+1,n为大于2且小于L-1的整数,重复步骤(7)。 (7) By analogy, the nth level LED driver sequentially receives the nth to Lth valid data frame timings sent by the n-1th level LED driver, and analyzes the nth valid data frame timing, and converts the nth valid data frame N valid data in the frame timing are sequentially put into the memory space with the start address as the first address, and the memory addresses are accumulated; while receiving the N valid data in the nth valid data frame timing and the timing of the end mark in turn, the nth LED The driver sequentially sends N+1 invalid timings to the output communication port to the n+1th level LED driver. Since the communication registers of the n+1th level to the Lth level LED driver are in non-through mode, the n+1th level to the Lth level LED driver The level LED driver receives N+1 invalid timings synchronously; when the nth level LED driver receives the end mark timing in the nth valid data frame timing, the communication mode register of the nth level LED driver is set to the direct mode, and the first level The n-level LED driver sends the n+1th to the Lth effective data frame timing and reset timing sent by the LED controller to the output communication port of the n-level LED driver in sequence; n=n+1, n is greater than 2 and Integers less than L-1, repeat step (7). 8.如权利要求7所述LED显示系统的通信方法,其特征在于所述M个有效数据时序由M个连续有效数据时序组成。 8. The communication method of the LED display system according to claim 7, wherein the M valid data sequences are composed of M continuous valid data sequences. 9.如权利要求7所述LED显示系统的通信方法,其特征在于: 9. The communication method of LED display system as claimed in claim 7, characterized in that: 复位时序,其功能为接收到复位时序的LED驱动器完成复位功能,且将LED驱动器的 通信模式寄存器设置为直通模式; Reset timing, its function is to complete the reset function of the LED driver receiving the reset timing, and set the communication mode register of the LED driver to the direct mode; 复位结束时序只能用在复位时序后;其功能表示复位结束; The reset end sequence can only be used after the reset sequence; its function indicates the end of reset; 全收指令时序,用于表示该次通信为数据全收通信; The sequence of the all-receive command is used to indicate that the communication is a data-receive communication; 串收指令时序,用于表示该次通信为数据串收通信; The sequence of serial receiving instructions is used to indicate that the communication is data serial receiving communication; 开始地址时序,用于表示指令中需要传递的数据在接收到该时序的LED驱动器存储器对应地址空间的起始地址; The start address sequence is used to indicate the start address of the address space corresponding to the LED driver memory that receives the sequence of data that needs to be transferred in the instruction; 有效数据时序,用于表示指令中需要传递的数据; Effective data timing, used to represent the data that needs to be transferred in the instruction; 结束标志时序,LED驱动器收到结束标志字节表示当前有效数据时序结束; End mark sequence, the LED driver receives the end mark byte to indicate the end of the current effective data sequence; 无效时序,该字节可以插在复位结束时序、全收指令时序、串收指令时序、开始地址时、有效数据时序或结束标志时序之后,LED驱动器收到无效时序,不做任何处理。 Invalid timing, this byte can be inserted after reset end timing, all receive command timing, serial receive command timing, start address, valid data timing or end mark timing, LED driver receives invalid timing and does not do any processing. 10.如权利要求7所述LED显示系统的通信方法,其特征在于所述数据全收通信的通信步骤为: 10. The communication method of LED display system as claimed in claim 7, characterized in that the communication steps of the all-data-collection communication are: (1)单线总线实现的LED显示系统进行初始化通信之后,各LED驱动器的通信模式寄存器设置为直通模式; (1) After the LED display system implemented by the single-wire bus performs initial communication, the communication mode register of each LED driver is set to the direct mode; (2)LED控制器依序发出复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序; (2) The LED controller sequentially sends out reset timing, reset end timing, all-receive instruction timing, start address timing, M effective data frame timing, end flag timing, and reset timing; (3)在进行步骤(2)的同时第1级LED驱动器同步接收复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序; (3) While performing step (2), the first-level LED driver synchronously receives reset timing, reset end timing, all-receive instruction timing, start address timing, M valid data frame timing, end flag timing, and reset timing; (4)由于各LED驱动器的通信模式寄存器设置为直通模式,在进行步骤(2)的同时,第n级LED驱动器同步从n-1级LED驱动器的输出通信端口依序接收n-1级驱动器传递过来的复位时序、复位结束时序、全收指令时序、开始地址时序、M个有效数据帧时序、结束标志时序、复位时序,n为大于1小于L-1的整数; (4) Since the communication mode register of each LED driver is set to the direct mode, while performing step (2), the nth level LED driver synchronously receives the n-1 level driver in sequence from the output communication port of the n-1 level LED driver The transmitted reset timing, reset end timing, all received instruction timing, start address timing, M valid data frame timing, end flag timing, reset timing, n is an integer greater than 1 and less than L-1; 在各级LED驱动器接收到开始地址时序时,各级LED驱动器接收并解析开始地址时序,准备接收M个有效数据时序; When the LED drivers at all levels receive the start address sequence, the LED drivers at all levels receive and analyze the start address sequence, and prepare to receive M valid data sequences; 各级LED驱动器接收到M个有效数据时序时,解析M个有效数据时序,将存储器地址累加,并将M个有效数据依次放入以开始地址为首地址的存储器空间。 When the LED drivers at all levels receive M valid data sequences, they analyze the M valid data sequences, accumulate the memory addresses, and put the M valid data sequentially into the memory space whose address starts with the start address. 11.如权利要求7或10所述LED显示系统的通信方法,其特征在于初始化通信步骤为: 11. The communication method of LED display system as claimed in claim 7 or 10, characterized in that the initialization communication step is: (1)LED控制器发出至少L个复位时序,第1级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第1级LED驱动器将接收到的时序同时发送到输出通信端口; (1) The LED controller sends out at least L reset timing sequences. After receiving the reset timing sequences, the first-level LED driver sets the communication mode register to the direct mode, and the first-level LED driver simultaneously sends the received timing sequences to the output communication port; (2)第2级LED驱动器接收到复位时序后,将通信模式寄存器置为直通模式,第2级LED 驱动器将接收到的时序同时发送到输出通信端口;依此类推,各级LED驱动器收到前一级LED驱动器的复位时序后,将通信模式寄存器置为直通模式,且将接收到的时序同时发送到输出通信端口,直到所有LED驱动器都将通信模式寄存器置为直通模式。  (2) After the second-level LED driver receives the reset sequence, it sets the communication mode register to the direct mode, and the second-level LED driver sends the received sequence to the output communication port at the same time; and so on, all levels of LED drivers receive After the reset sequence of the previous LED driver, set the communication mode register to the direct mode, and send the received sequence to the output communication port at the same time, until all LED drivers set the communication mode register to the direct mode. the
CN2010102209051A 2010-07-07 2010-07-07 Data communication method of LED display system Active CN101916543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102209051A CN101916543B (en) 2010-07-07 2010-07-07 Data communication method of LED display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102209051A CN101916543B (en) 2010-07-07 2010-07-07 Data communication method of LED display system

Publications (2)

Publication Number Publication Date
CN101916543A CN101916543A (en) 2010-12-15
CN101916543B true CN101916543B (en) 2012-06-27

Family

ID=43324040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102209051A Active CN101916543B (en) 2010-07-07 2010-07-07 Data communication method of LED display system

Country Status (1)

Country Link
CN (1) CN101916543B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2497302B (en) 2011-12-05 2017-04-12 Advanced Risc Mach Ltd Methods of and apparatus for processing computer graphics
CN104537986A (en) * 2015-01-21 2015-04-22 杭州士兰微电子股份有限公司 LED module, control method of LED module, and LED drive circuit
CN108564917B (en) * 2018-03-28 2021-02-09 深德彩科技(深圳)股份有限公司 LED display screen, display method thereof and device with storage function
US10950194B1 (en) * 2019-10-04 2021-03-16 Solomon Systech (Shenzhen) Limited Display panel with distributed driver network
CN111540318B (en) * 2020-07-10 2020-10-23 北京显芯科技有限公司 LED control system, device, method and storage medium
CN112654119B (en) * 2020-12-22 2022-02-18 北京显芯科技有限公司 LED drive test method, driver, system and electronic equipment
CN113870804B (en) * 2021-10-18 2022-05-03 北京显芯科技有限公司 Backlight control system, method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1306827A1 (en) * 2000-07-28 2003-05-02 Nichia Corporation Display and display drive circuit or display drive method
US7294970B2 (en) * 2005-02-18 2007-11-13 Samsung Electronics Co., Ltd. LED driver device
CN101090353A (en) * 2007-07-17 2007-12-19 中南大学 LED display data communication device and method based on embedded Ethernet technology
CN101652006A (en) * 2009-06-19 2010-02-17 杭州士兰微电子股份有限公司 LED driving circuit as well as serial communication system therewith and communication method
CN201514738U (en) * 2009-09-04 2010-06-23 王文杰 LED display screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1306827A1 (en) * 2000-07-28 2003-05-02 Nichia Corporation Display and display drive circuit or display drive method
US7294970B2 (en) * 2005-02-18 2007-11-13 Samsung Electronics Co., Ltd. LED driver device
CN101090353A (en) * 2007-07-17 2007-12-19 中南大学 LED display data communication device and method based on embedded Ethernet technology
CN101652006A (en) * 2009-06-19 2010-02-17 杭州士兰微电子股份有限公司 LED driving circuit as well as serial communication system therewith and communication method
CN201514738U (en) * 2009-09-04 2010-06-23 王文杰 LED display screen

Also Published As

Publication number Publication date
CN101916543A (en) 2010-12-15

Similar Documents

Publication Publication Date Title
CN101916543B (en) Data communication method of LED display system
TWI490880B (en) Data bus inversion apparatus, systems, and methods
US8217814B1 (en) Low power serial to parallel converter
CN102652299A (en) Semiconductor device and memory system
CN111526634A (en) Digital control module of flexible transparent screen LED driving chip
CN102456308A (en) A kind of driving circuit of photoelectric equipment and its driving control method
CN113282531B (en) Two-port serial data transceiver circuit and method based on pulse trigger
CN108494433B (en) Single-wire communication method and circuit implementation thereof
CN109213718B (en) I2C communication device and I2C communication equipment
CN115706661A (en) Synchronous high speed signaling interconnect
TWI624174B (en) Methods and a system for transmitting and receiving audio-video data.
US8837628B2 (en) Method of transmission through single wire
CN111867177B (en) LED driving apparatus and method, and readable storage medium
US10593288B2 (en) Apparatus of transmitting and receiving signal, source driver of receiving status information signal, and display device having the source driver
TWI554994B (en) Panel and method for signal encoding
JP4956295B2 (en) Semiconductor memory device
CN207097425U (en) A kind of LED driver and LED display device
JP2015026341A5 (en)
TWI478131B (en) Source driver and display device
CN102892225B (en) A kind of data transfer device of flexible LED driver and device
JP4846836B2 (en) Bus signal encoding and decoding method and apparatus
CN101673134B (en) Single transmission line transmission interface and single transmission line transmission method
CN101908315B (en) LED display system
CN102195630B (en) ON-OFF control circuit and switch send integrated circuit and switch performs integrated circuit
KR101103252B1 (en) Data transmission device using two signal lines

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant