Serial communication method, serial communication system, and backlight system

The described serial communication method addresses the failure of address initialization by using sequential data packaging and verification feedback, ensuring reliable data transmission and verification across slave devices.

US20260377354A1Pending Publication Date: 2026-11-26SILERGY SEMICON TECH (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/680390
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-23
Filing Date
2026-05-18
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Conventional serial communication systems fail to maintain communication integrity when address initialization is disrupted, affecting all subsequent communications.

Method used

A serial communication method that allows data transmission without address initialization by packaging data sequentially for each slave device, using write sub-data packets with length information, and enabling data verification through feedback mechanisms.

Benefits of technology

Ensures reliable data transmission and verification across slave devices, even in the absence of address initialization, enhancing communication robustness and reducing resource usage at the master device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377354A1-D00000_ABST
    Figure US20260377354A1-D00000_ABST
Patent Text Reader

Abstract

A method can include: transmitting, by a master device, a verification instruction data packet; configuring the current slave device in the communication link in a first mode to receive the verification instruction data packet transmitted by the master device or a previous slave device, and forwarding the verification instruction data packet to a next slave device; controlling the current slave device to operate in a second mode to connecting an input port and an output port of the current slave device, in order to form a first path; and generating, by the current slave device, a check code based on at least part of data in a register list of the current slave device when the verification instruction data packet indicates that the current slave device requires data verification to verify data in the register.
Need to check novelty before this filing date? Find Prior Art

Description

RELATED APPLICATIONS

[0001] This application claims the benefit of Chinese Patent Application No. 202510671196.5, filed on May 23, 2025, which is incorporated herein by reference in its entirety.FIELD OF THE INVENTION

[0002] The present invention generally relates to the field of communications, and more particularly, address expansion circuits, communication interface chips, and backlight systems.BACKGROUND

[0003] A serial communication system can include a master device and a plurality of slave devices coupled in series. Since the multiple slave devices are identical devices, in order to distinguish slave devices at different positions on the communication link, conventional approaches may generally employ an address initialization method to assign addresses to each slave device, giving each slave device a unique address. Subsequently, communication between the master device and each slave device can be based on the addresses generated during address initialization. However, during address initialization, if communication is interfered with, address initialization may fail, and all subsequent communications can thus be impacted.BRIEF DESCRIPTION OF THE DRAWINGS

[0004] FIG. 1 is a schematic block diagram of an example communication method that does not require address initialization.

[0005] FIG. 2 is a schematic block diagram of a first example serial communication system, in accordance with embodiments of the present invention.

[0006] FIG. 3 is a schematic block diagram of an example write instruction data packet received at the input port of each slave device, in accordance with embodiments of the present invention.

[0007] FIG. 4 is a schematic block diagram of an example write sub-data packet, in accordance with embodiments of the present invention.

[0008] FIG. 5 is a schematic block diagram of a second example serial communication system, in accordance with embodiments of the present invention.

[0009] FIG. 6 is a schematic block diagram of a third example serial communication system, in accordance with embodiments of the present invention.DETAILED DESCRIPTION

[0010] Reference may now be made in detail to particular embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention may be described in conjunction with the preferred embodiments, it may be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents that may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it may be readily apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, processes, components, structures, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.

[0011] To solve the technical problem in the prior art whereby all subsequent communications are affected after an address initialization failure, communication can be performed without address initialization. Referring now to FIG. 1, shown is a schematic diagram of a communication method that does not require address initialization. In this particular example, a master device can package data required by multiple slave devices sequentially and send them in a single transmission. The first slave device acquires its corresponding data 1010 and transmits the subsequent data to the second slave device. The second slave device can acquire its corresponding data 1001 and transmit the subsequent data to the third slave device, and so on. However, in this approach, the slave device may only acquire data of a fixed length each time. For example, each slave device can be preset to acquire 24 bits or 8 bytes of data, meaning the data length acquired by each slave device is consistent. Therefore, in applications where the master device needs to transmit data of different lengths to each slave device, this communication scheme may not be applicable. Thus in particular embodiments, a serial communication method is provided where each slave device can acquire data of different lengths.

[0012] Referring now to FIG. 2, shown is a schematic circuit diagram of a first example serial communication system, in accordance with embodiments of the present invention. In this particular example, the serial communication system can include master device Master and at least one communication link. The communication link can include n slave devices IC1-ICn coupled in series in sequence, where n is greater than or equal to 1. Each slave device can include input port SDI and output port SDO. Input port SDI of slave device IC1 can be coupled to output port MDO of master device Master. Input port SDI of slave device IC2 to nth slave device ICn can be coupled to output port SDO of the previous slave device. Each slave device can include a control unit configured to forward a data packet received by the slave device, or forward it after processing, where the processing can include modifying related data in the received data packet. In particular embodiments, master device Master and the n slave devices in the communication link can be connected in a daisy chain.

[0013] The first serial communication method of particular embodiments can include: the master device transmitting a write instruction data packet, where the write instruction data packet can include a plurality of write sub-data packets arranged in sequence, and each slave device that needs to write data corresponds to a different write sub-data packet. A current slave device in the communication link may receive the write instruction data packet transmitted by the master device or a previous slave device, can acquire data of a predetermined length from the beginning of the received write instruction data packet to obtain a write sub-data packet corresponding to the current slave device, and may transmit all data subsequent to the data of the predetermined length from the beginning of the received write instruction data packet to a next slave device.

[0014] For example, the predetermined length is determined by data length information represented by at least one bit in the corresponding write sub-data packet. Based on the data length information representing the data length of the corresponding write sub-data packet in the corresponding write sub-data packet, the data of the predetermined length from the beginning of the write instruction data packet is acquired, and the predetermined length is configured as the data length represented by the data length information in the corresponding write sub-data packet.

[0015] In one embodiment, the first m slave devices may require data writing, where m is less than n. In this case, the number of write sub-data packets is m, meaning the number of write sub-data packets is less than the number of slave devices, and each of the first m slave devices corresponds to a different write sub-data packet. In another embodiment, all n slave devices may require data writing, the number of write sub-data packets can be greater than or equal to the number of slave devices, and each slave device can correspond to a different write sub-data packet. In one embodiment, the current slave device may obtain the write sub-data packet corresponding to the current slave device, and store all or part of the write sub-data packet corresponding to the current slave device.

[0016] Referring now to FIG. 3, shown is a schematic block diagram of an example write instruction data packet received at the input port of each slave device, in accordance with embodiments of the present invention. The example of FIG. 3 shows a schematic diagram of the write instruction data packets received at the input ports of the first four slave devices when the number of slave devices is greater than or equal to 4 (e.g., n>=4) and the first four slave devices require data writing. In this particular example, the master device transmits a write instruction data packet. The write instruction data packet transmitted by the master device can include four write sub-data packets A1-A4 arranged in sequence, and write sub-data packets A1-A4 have different data lengths, each write sub-data packet corresponding to one slave device.

[0017] Slave device IC1 may receive the write instruction data packet transmitted by the master device. Here, the write instruction data packet can include write sub-data packets A1-A4 arranged in sequence. Slave device IC1 acquires data of a predetermined length from the beginning of the received write instruction data packet (e.g., acquires write sub-data packet A1) based on the data length information representing the data length of write sub-data packet A1 in write sub-data packet A1. Here, the predetermined length can be configured as the data length represented by the data length information in write sub-data packet A1. Slave device IC1 may then transmit all data subsequent to the data of the predetermined length from the beginning of the received write instruction data packet (e.g., write sub-data packets A2-A4) to slave device IC2.

[0018] Slave device IC2 may receive the write instruction data packet transmitted by slave device IC1. Here, the write instruction data packet can include write sub-data packets A2-A4 arranged in sequence. Slave device IC2 can acquire data of a predetermined length from the beginning of the received write instruction data packet (e.g., acquires write sub-data packet A2) based on the data length information representing the data length of write sub-data packet A2 in write sub-data packet A2. Here, the predetermined length can be configured as the data length represented by the data length information in write sub-data packet A2. Slave device IC2 then transmits all data subsequent to the data of the predetermined length from the beginning of the received write instruction data packet (e.g., write sub-data packets A3-A4) to slave device IC3.

[0019] Slave device IC3 may receive the write instruction data packet transmitted by slave device IC2. Here, the write instruction data packet can include write sub-data packets A3-A4. Slave device IC3 can acquire data of a predetermined length from the beginning of the received write instruction data packet (e.g., acquires write sub-data packet A3) based on the data length information representing the data length of write sub-data packet A3 in write sub-data packet A3. Here, the predetermined length can be configured as the data length represented by the data length information in write sub-data packet A3. Slave device IC3 may then transmit all data subsequent to the data of the predetermined length from the beginning of the received write instruction data packet (e.g., write sub-data packet A4) to slave device IC4.

[0020] Slave device IC4 may receive the write instruction data packet transmitted by slave device IC3. Here, the write instruction data packet can include write sub-data packet A4. Slave device IC4 can acquire data of a predetermined length from the beginning of the received write instruction data packet (e.g., acquires write sub-data packet A4) based on the data length information representing the data length of write sub-data packet A4 in write sub-data packet A4. Here, the predetermined length can be configured as the data length represented by the data length information in write sub-data packet A4.

[0021] Referring now to FIG. 4, shown is a schematic diagram of an example write sub-data packet, in accordance with embodiments of the present invention. In this particular example, two schemes for setting the data length information in the write sub-data packet provided by the present invention are described. In the first game, the write sub-data packet can include communication data portion Data, and one or more flag bits are provided before communication data portion Data to identify the data length information of the write sub-data packet. The data of communication data portion Data can be configured as data to be written into the corresponding slave device. Optionally, the slave device may perform corresponding actions according to the data of communication data portion Data.

[0022] In FIG. 4, the write sub-data packet can include command portion Command. Command portion Command is provided before communication data portion Data, and one or more flag bits may be provided in command portion Command to identify the data length information. The data of command portion Command can distinguish different commands, such as a write command, a read command, or a verification command.

[0023] In another example, as shown in FIG. 4, the write sub-data packet can include register address portion Register. Register address portion Register may be provided before communication data portion Data, and one or more flag bits can be provided in register address portion Register to identify the data length information. The data of register address portion Register can indicate the address of the register where the data of communication data portion Data is to be written.

[0024] In this particular example, the write sub-data packet can include command portion Command and register address portion Register. Both command portion Command and register address portion Register may be provided before communication data portion Data. One or more flag bits can respectively be provided in register address portion Register and command portion Command to identify the data length information.

[0025] In the second scheme, the write sub-data packet can include communication data portion Data and register address portion Register. Register address portion Register may be provided before communication data portion Data, and the data length information can be determined based on data of register address portion Register. For example, a mapping relationship between data of register address portion Register and the data length information of the write sub-data packet may be preset within the slave device, in order to determine the data length information based on the data of register address portion Register.

[0026] In the example coding schematic diagram shown in FIG. 4, each write sub-data packet can include a command portion, a register address portion, and a communication data portion. In one particular example, each write sub-data packet can include a command portion and a communication data portion. In another example, each write sub-data packet can include a register address portion and a communication data portion. In yet another example, each write sub-data packet can include a communication data portion and other portions, where the other portions are provided before the communication data portion, as long as the technical effect of providing one or more flag bits before the communication data portion to identify the data length information of the write sub-data packet is achieved.

[0027] In particular embodiments, output port SDO of the last slave device may not be coupled to master device Master. Embodiments where output port SDO of the last slave device is coupled to master device Master can also communicate using the first serial communication method as described herein. In conventional approaches, as well as in the example of FIG. 2, the output port of the last slave device is not coupled to the master device. Therefore, the master device may not obtain information from the slave devices, and as such the master device may not read back information from the slave devices, and thus the master device may not verify the information in the slave devices.

[0028] Particular embodiments may provide a serial communication method for the master device to obtain information from the slave devices. For example, by multiplexing the forward communication channel of the serial communication system, the verification result can be fed back to the master device. This can accomplish the read-back of information from the slave devices by the master device. Further, the data verification can be completed within the slave device, which may eliminate the need to transmit the relevant data from the slave devices back to the master device for the master device to determine if the data in the slave devices matches the data it wrote, thus avoiding the need for the master device to parse and verify the data, saving master device resources.

[0029] Referring now to FIG. 5, shown is a schematic circuit diagram of a second example serial communication system, in accordance with embodiments of the present invention. In this particular example, the serial communication system can include master device Master and at least one communication link. The communication link can include n slave devices IC1-ICn coupled in series in sequence, where n is greater than or equal to 1. Each slave device can include input port SDI and output port SDO. Input port SDI of slave device IC1 can be coupled to input / output multiplexed port MDO / MDI of master device Master. Input port SDI of slave device IC2 to nth slave device ICn can be coupled to output port SDO of its previous slave device. Each slave device can include control unit 11 configured to forward a data packet received by the slave device, or forward it after processing, where the processing can include modifying related data in the data packet. In particular embodiments, master device Master and the n slave devices in the communication link can be connected in a daisy chain.

[0030] In particular embodiments, when the serial communication system operates in a communication mode (including a write mode), master device Master and the multiple slave devices can perform serial communication, master device Master may send a data packet (e.g., a write instruction data packet) to the slave devices, the slave devices may operate in a first mode, and input port SDI of the slave device can be coupled to its output port SDO through control unit 11. When the serial communication system operates in a verification mode, master device Master can transmit a verification instruction data packet. Here, the current slave device can first operate in the first mode, input port SDI of the slave device may transmit the received verification instruction data packet to its output port SDO via control unit 11 to pass the verification instruction data packet to the next slave device. Subsequently, the current slave device can operate in a second mode, and input port SDI and output port SDO of the current slave device may be short-circuited. That is, the input port SDI and the output port SDO can be directly connected. Further, when the verification instruction data packet indicates that the current slave device itself requires verification, the current slave device may perform data verification to generate a verification result, and the current slave device can feed back a feedback signal representing whether its own verification result is a predetermined verification result to master device Master.

[0031] For example, when the serial communication system operates in the verification mode, a second serial communication method can feed back a feedback signal indicating whether there is a slave device in the communication link with a predetermined verification result to master device Master. The second serial communication method can include the master device transmitting a verification instruction data packet. A current slave device in the communication link may operate in the first mode to receive the verification instruction data packet transmitted by the master device or a previous slave device, and can forward the verification instruction data packet to a next slave device. The current slave device can operate in the second mode, and the input port SDI and output port SDO of the current slave device can be connected directly to form a first path.

[0032] When the verification instruction data packet indicates that the current slave device itself requires data verification, the current slave device may generate a check code based on at least part of data in the register list of the current slave device to verify the data in the register, and generates a verification result. When the verification result is a predetermined verification result, the current slave device can set a potential of its own first path to a first level representing the predetermined verification result, such that master device Master may receive a feedback signal representing whether there is a slave device in the communication link with the predetermined verification result.

[0033] In one embodiment, the current slave device can generate the check code based on at least part of the data in the register list and at least one preset algorithm, and can compare the check code against a reference check code to generate the verification result. When the verification result is the predetermined verification result, the current slave device may set the potential of its own first path to the first level representing the predetermined verification result.

[0034] In a first example, the encoding method of the verification instruction data packet and the transmission method of the verification instruction data packet can be different from those in the first serial communication method. For example, when the current slave device is in the first mode, the current slave device may receive the verification instruction data packet transmitted by the master device Master or the previous slave device and forwards it to the next slave device. During this process, the current slave device may not change (e.g., reduce) the data length of the verification instruction data packet, such that the data length of the verification instruction data packet received by each slave device receives is the same.

[0035] Optionally, the verification instruction data packet can include a command portion, a device address portion, a register address portion, and a communication data portion. The data of the device address portion is used to indicate the address of the target slave device requiring verification this time. When the number of target slave devices requiring verification is one at a time, the data of the communication data portion is the data corresponding to the one target slave device. When the number of target slave devices requiring verification is multiple at a time, the data of the communication data portion is the data corresponding to the multiple target slave devices. Optionally, when the number of target slave devices requiring verification is multiple at a time, the verification instruction data packet may not include the device address portion.

[0036] In a second example, the encoding method of the verification instruction data packet and the transmission method of the verification instruction data packet are similar to those in the first serial communication method. For example, the verification instruction data packet can include a plurality of verification sub-data packets arranged in sequence, each slave device requiring verification corresponding to a different verification sub-data packet. The current slave device may receive the verification instruction data packet transmitted by the master device or the previous slave device to obtain its corresponding verification sub-data packet, and transmits all data subsequent to the corresponding verification sub-data packet in the verification instruction data packet to the next slave device.

[0037] Optionally, the encoding of each verification sub-data packet is similar to that in FIG. 4, including a command portion, a register address portion, and a communication data portion. In this example, when the current slave device is in the first mode, the current slave device may receive the verification instruction data packet transmitted by the master device Master or the previous slave device and forward it to the next slave device. During this process, the current slave device intercepts the data of a first length from the beginning of the verification instruction data packet and forward the data subsequent to the data of the first length from the beginning of the verification instruction data packet to the next slave device, such that the data length of the verification instruction data packet received by the next slave device is less than the data length of the verification instruction data packet received by the previous slave device. To maintain consistency with the encoding method of the write instruction data packet and the transmission method of the verification instruction data packet in the first serial communication method, the description below takes the encoding method of the second example discussed above above as an example.

[0038] In one embodiment, the current slave device can generate the check code based on data of at least one preset location in the register list. For example, the verification sub-data packet further can include a register address portion. In the current slave device, the at least one corresponding location in the register list may be determined based on data of the register address portion, and the check code is generated based on data of the at least one corresponding location in the register list. Optionally, the check code can be generated based on all data in the register list. Optionally, the check code can be generated based on data at a preset part of the register list.

[0039] Further, there can be multiple ways for the slave device to obtain the reference check code. In one embodiment, the verification sub-data packet can include the reference check code, such that the current slave device obtains the reference check code from its corresponding verification sub-data packet. Optionally, the reference check code may be placed in the communication data portion of the verification sub-data packet. In another embodiment, before the master device transmits the verification instruction data packet, the master device can generate reference check codes corresponding to each slave device, and writes the reference check code corresponding to the current slave device into a register corresponding to the current slave device for storage, such that the current slave device obtains the reference check code from its own corresponding register.

[0040] In one embodiment, when the current slave device determines that the check code does not match the reference check code, the current slave device can determine that the verification result is the predetermined verification result, and sets the potential of its own first path to the first level. In another example, when the current slave device determines that the check code matches the reference check code, the current slave device can determine that the verification result is the predetermined verification result, and may set the potential of its own first path to the first level. If the check code does not match the reference check code, this may indicate that the actual data in the slave device is inconsistent with the data written by the master device or the data the master device believes is stored in the slave device. If there is a slave device in the communication link where the check code does not match the reference check code, the master device may subsequently need to perform corresponding processing, such as rewriting data, shutting down and restarting, etc., in order to ensure that the actual data stored in the corresponding registers of each slave device is consistent with the data the master device believes is stored in the corresponding registers of the slave devices.

[0041] Further, within a preset time threshold, if the potential of the first path in one slave device is set to the first level, the potential of a link path formed by the plurality of first paths coupled in series in the communication link is set to the first level, such that the master device Master may receive the first level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. Within the preset time threshold, if the first paths in all slave devices are not set to the first level, the potential of the link path formed by the plurality of first paths coupled in series in all slave devices may remain at a second level, such that the master device Master may receive the second level as a second feedback signal, indicating that there is no slave device in the communication link with the predetermined verification result.

[0042] For the slave device whose potential of the first path is the first one configured to the first level, before verifying its own data, an initial value of the potential of the link path formed by the plurality of first paths coupled in series in the communication link can be set to the second level, such that the potential of the first path in that slave device is set to the second level. When the slave device whose potential of the first path is the first one configured to the first level determines that its verification result is the predetermined verification result, the potential of the first path in that slave device can change, e.g., transition from the second level to the first level. For each the slave devices whose potential of the first path is the second or later one configured to the first level, when the slave device determines that its verification result is the predetermined verification result, the potential of the first path in the slave devices may not change, e.g., remains at the first level.

[0043] For example, if the slave device whose potential of the first path is the first one configured to the first level is the i-th slave device, the i-th slave device operates in the first mode to receive the verification instruction data packet transmitted by the (i−1)-th slave device and forwards it to the (i+1)-th slave device. Subsequently, the i-th slave device can be controlled to operate in the second mode to connect its own input port SDI and output port SDO, thus forming a first path. Here, since the link path formed by the first paths of the first to i-th slave devices coupled in series can be set to the second level, and the potential of the first path in the i-th slave device is set to the second level.

[0044] If the i-th slave device determines, based on the verification instruction data packet, that it requires data verification, the i-th slave device may generate a check code based on at least part of the data in its own register list to verify the data in the register, and can generate a verification result according to the check code. If the i-th slave device determines that the verification result is the predetermined verification result, the i-th slave device can set the potential of its own first path to the first level, e.g., transitions from the second level to the first level. Consequently, the potential of the link path formed by the first paths of the 1st to i-th slave devices coupled in series may be set to the first level. The master device Master may receive the first level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. Here, the master device Master may have already received the first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result.

[0045] In one embodiment, the process of transmitting the verification instruction data packet, performing data verification, and determining whether the own verification result is the predetermined verification result may continue. That is, the (i+1)-th slave device may receive the verification instruction data packet, continue to transmit it to the (i+2)-th slave device, and the (i+1)-th slave device may also perform data verification and determines whether its own verification result is the predetermined verification result. However, the determinations of the subsequent slave devices (i+1 to n) may not affect the feedback signal. In another example, the process of transmitting the verification instruction data packet and / or performing data verification and determining whether the own verification result is the predetermined verification result stops after the i-th slave device sets the potential of the link path to the first level.

[0046] Each slave device can also include mode selection circuit 12. One terminal of mode selection circuit 12 can be coupled to one of input port SDI and output port SDO of the slave device. The other terminal of mode selection circuit 12 may selectively be coupled to the other one of input port SDI and output port SDO of the slave device or a first terminal of control unit 11. A second terminal of control unit 11 can be coupled to the other one of the input port and the output port of the slave device. Mode selection circuit 12 can be controlled by control unit 11 to control the slave device to operate in the first mode or the second mode. When the serial communication system operates in the verification mode, the master device can transmit the verification instruction data packet.

[0047] Control unit 11 can control mode selection circuit 12 such that the other terminal of mode selection circuit 12 can be coupled to the first terminal of control unit 11, Here, the slave device may operate in the first mode, and the verification instruction data packet received at input port SDI of the slave device can be transmitted to output port SDO of the slave device via control unit 11 to pass the verification instruction data packet to the next slave device. Subsequently, control unit 11 can control mode selection circuit 12 such that the other terminal of mode selection circuit 12 can be coupled to the other one of input port SDI and output port SDO of the slave device. Here, the slave device can be controlled to operate in the second mode, and input port SDI and output port SDO of the slave device can be directly connected, such that the slave device feeds back a feedback signal representing whether its own verification result is the predetermined verification result to master device Master.

[0048] For example, the slave device may initially operate in the first mode. Here, the verification instruction data packet received at input port SDI of the slave device is transmitted to output port SDO of the slave device via control unit 11. After the slave device receives and forwards the verification instruction data packet, control unit 11 can control the slave device to operate in the second mode. Here, control unit 11 can control mode selection circuit 12 to directly connected input port SDI and output port SDO of the slave device to form the first path. If the slave device determines that it requires data verification, the slave device may perform data verification and generates a verification result. When the verification result is the predetermined verification result, the potential of the first path can be set to the first level. When the verification result is not the predetermined verification result, the potential of the first path may remain at the second level.

[0049] When the slave device has not received the verification instruction data packet, or the slave device has received the verification instruction data packet but not forwarded it, control unit 11 can control mode selection circuit 12 to couple input port SDI of the slave device to output port SDO via control unit 11, and the slave device remains operating in the first mode. Further, after the master device transmits the verification instruction data packet, within a first time period, the master device may obtain a feedback signal indicating whether there is a slave device in the communication link with the predetermined verification result using the second serial communication method described above. When the first time period exceeds a preset time threshold, e.g., after the time for the master device to obtain the feedback signal from the slave devices exceeds the preset time threshold, the slave devices can exit the second mode and return to the first mode, and the serial communication system may exit the verification mode.

[0050] When the serial communication system operates in the communication mode, control unit 11 can control the slave device to always operate in the first mode. Here, control unit 11 can control mode selection circuit 12 to couple input port SDI of the slave device to output port SDO of the slave device via control unit 11. In particular embodiments, mode selection circuit 12 can include selection switch S1. One terminal of selection switch S1 can be coupled to output port SDO. The other terminal of selection switch S1 can selectively be coupled to input port SDI or the first terminal of control unit 11. The second terminal of control unit 11 can be coupled to input port SDI.

[0051] As shown in FIG. 5, after the slave device receives and forwards the verification instruction data packet, control unit 11 can control selection switch S1 to switch to node a, which can be coupled to input port SDI, such that input port SDI and output port SDO of the slave device are connected directly, and the slave device may operate in the second mode. When the slave device has not received the verification instruction data packet or has received the verification instruction data packet but not forwarded it, control unit 11 can control selection switch S1 to maintain connection with node b, which can be coupled to the first terminal of control unit 11, such that input port SDI of the slave device can be coupled to output port SDO via control unit 11, and the slave device may operate in the first mode. In other examples, one terminal of selection switch S1 can be coupled to input port SDI, and the other terminal of selection switch S1 can selectively be coupled to output port SDO or the first terminal of control unit 11, and the second terminal of control unit 11 can be coupled to output port SDO.

[0052] In this particular example, the serial communication system can also include pull-up circuit 2 coupled between any node between master device Master and the first slave device and power supply VDD. Pull-up circuit 2 can pull up an initial value of the potential of the link path to a high level as the second level within a preset time threshold, and the first level can be configured as a low level. In particular embodiments, the serial communication system can include only one pull-up circuit 2, coupled between any node between master device Master and the first slave device and power supply VDD. In another embodiment, pull-up circuit 2 may be built into master device Master. For example, pull-up circuit 2 can be coupled between a node coupled to input / output multiplexed port MDI / MDO of master device Master and power supply VDD. In other examples, the serial communication system can include multiple pull-up circuits 2, coupled between any node in the first path and power supply VDD. In particular embodiments, pull-up circuit 2 can be configured as resistor R1. In other examples, pull-up circuit 2 can be configured as a power switch or a current source.

[0053] Further, each slave device can include pull-down unit 13 coupled between any node in its own first path and a ground potential, controlled by control unit 11. If the verification result of the slave device is the predetermined verification result, control unit 11 can control pull-down unit 13 to pull down the potential of the first path to the low level as the first level, causing the potential of the link path to be pulled down to the low level. Also, master device Master may receive the low level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result.

[0054] In particular embodiments, the first level can be configured as a low level, and the second level as a high level. In particular embodiments, pull-down unit 13 can include power switch Q1 coupled between input port SDI and the ground potential, controlled by control unit 11. If the slave device determines that its own verification result is the predetermined verification result, control unit 11 can control power switch Q1 to turn on, pulling the potential of the first path to zero (e.g., low level); otherwise, if the slave device determines that its own verification result is not the predetermined verification result, power switch Q1 may be turned off, and the potential of the first path may remain at the high level. In other examples, power switch Q1 can be coupled between output port SDO and the ground potential.

[0055] In another example, pull-down unit 13 can include a first current source coupled between any node in its own first path and the ground potential. If the slave device determines that its own verification result is the predetermined verification result, control unit 11 can control the first current source to operate, pulling the potential of the first path to zero. Otherwise, if the slave device may determine that its own verification result is not the predetermined verification result, the first current source is disabled, and the potential of the first path may remain at the high level. For example, in particular embodiments, a first power terminal of power switch Q1 can be coupled to input port SDI, a second power terminal of power switch Q1 can be coupled to the ground potential, and a control terminal of power switch Q1 can be coupled to control unit 11. A common node of power switch Q1 and input port SDI can be coupled to node a.

[0056] In particular embodiments, when master device Master needs to obtain the verification result from the slave devices, input / output multiplexed port MDO / MDI of master device Master can be in an output mode, and master device Master may transmit the verification instruction data packet. After master device Master transmits the verification instruction data packet, input / output multiplexed port MDO / MDI of master device Master can be in an input mode. The first slave device may receive the verification instruction data packet transmitted by master device Master, may obtain the first verification sub-data packet, and forward all data subsequent to the first verification sub-data packet in the verification instruction data packet to the second slave device. Control unit 11 in the first slave device can control selection switch S1 to switch to node a, connecting directly input port SDI and output port SDO of the first slave device to form the first path. Here, the potential of the first path can be at a high level, and the potential of the link path from input / output multiplexed port MDO / MDI of the master device to output port SDO of slave device IC1 may be at a high level. If control unit 11 determines that it requires data verification, slave device IC1 may perform data verification to generate a verification result, and can determine whether its own verification result is the predetermined verification result to selectively turn on or off power switch Q1.

[0057] For example, if control unit 11 of the first slave device determines that the verification result is the predetermined verification result, power switch Q1 can be turned on, the potential of the first path is pulled down to the low level, the potential of the link path from input / output multiplexed port MDO / MDI of the master device to output port SDO of slave device IC1 becomes the low level, and the potential of input / output multiplexed port MDO / MDI of master device Master can be the low level. That is, master device Master may receive the low level as a feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. The second slave device to the nth slave device may sequentially perform the above operations. Within the preset time threshold, if the first path of one slave device is pulled down to the low level, master device Master may receive the low level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. Within the preset time threshold, if the first paths in all slave devices are not pulled down to the low level, the potential of the link path formed by the plurality of first paths coupled in series in all slave devices remains at the high level, and master device Master may receive the high level as a second feedback signal indicating that there is no slave device in the communication link with the predetermined verification result.

[0058] In particular embodiments, master device Master can include input / output multiplexed port MDO / MDI configured to transmit the verification instruction data packet to the slave devices and receive the feedback signal from the slave devices. In another embodiment, master device Master can include an output port and an input port. The output port can transmit the verification instruction data packet. The input port can receive the feedback signal. The input port and the output port of the master device may both be coupled to the input port of the first slave device. After master device Master transmits the verification instruction data packet, the output port of the master device can be set to a high-impedance state.

[0059] In particular embodiments, output port SDO of the last slave device may not be coupled to master device Master. Embodiments where output port SDO of the last slave device is coupled to master device Master can also communicate using the second serial communication method described above.

[0060] In particular embodiments, the serial communication system can include master device Master and one communication link coupled in series. In another embodiment, the serial communication system can include master device Master and N communication links coupled in series, where N is greater than 1. The number of slave devices in each communication link can be the same or different. Each communication link can correspond to one input / output multiplexed port of the master device. That is, the N communication links correspond to N input / output multiplexed ports of the master device, and the first slave device of each communication link can be coupled to the corresponding input / output multiplexed port of the master device. In another embodiment, the serial communication system can include master device Master and N communication links coupled in series, where N is greater than 1. The number of slave devices in each communication link can be the same or different. The N communication links correspond to the same input / output multiplexed port of the master device. The N communication links in the two serial communication systems described above may both feed back the verification result to the master device according to the second serial communication method in particular embodiments. As long as there is one slave device in one communication link whose verification result is the predetermined verification result, the master device may receive the first level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. When the verification results of all slave devices in the N communication links are not the predetermined verification result, the master device may receive the second level as a second feedback signal indicating that there is no slave device in the communication link with the predetermined verification result.

[0061] In particular embodiments, each of the slave devices in the serial communication system include only one input port and one output port for single-wire communication. In other examples, each of the slave devices in the serial communication system include two input ports and two output ports, where one input port may receive a clock signal and one output port is used to output the clock signal for I2C communication.

[0062] Referring now to FIG. 6, shown is a schematic diagram of a third example serial communication system, in accordance with embodiments of the present invention. In this particular example, as compared to that of FIG. 5, the first level is configured as a high level, the second level is configured as a low level, the positions and structures of the pull-up circuit / unit and pull-down circuit / unit are different, and the position of mode selection circuit 12 is different. For example, the serial communication system can include pull-down circuit 2 configured to pull down an initial value of the potential of the link path to a low level as the second level within a preset time threshold. In particular embodiments, the serial communication system can include only one pull-down circuit 2, coupled between any node between master device Master and input port SDI of the first slave device and the ground potential.

[0063] In another example, pull-down circuit 2 can be built into master device Master. For example, pull-down circuit 2 is coupled between a node coupled to input / output multiplexed port MDO / MDI of master device Master and the ground potential. In other examples, the serial communication system can include multiple pull-down circuits 2, e.g., each slave device can include pull-down circuit 2, coupled between any node in the first path and the ground potential. In particular embodiments, pull-down circuit 2 can be configured as resistor R1. In another example, pull-down circuit 2 can be configured as a power switch or a current source.

[0064] In particular embodiments, each slave device can include pull-up unit 13 coupled between any node in its own first path and power supply VDD, controlled by control unit 11. If the slave device determines that it requires data verification, the slave device may perform data verification to generate a verification result. When the verification result is the predetermined verification result, control unit 11 controls pull-up unit 13 to pull up the potential of the first path to a high level as the first level, causing the potential of the link path to be pulled up to the high level. The master device may receive the high level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result. In particular embodiments, pull-up unit 13 can include power switch Q1 coupled between any node in its own first path and power supply VDD. If the verification result of the slave device is the predetermined verification result, it can control power switch Q1 to turn on, pulling up the potential of the first path to the high level. Otherwise, if the verification result of the slave device is not the predetermined verification result, power switch Q1 can be turned off, and the potential of the first path remains at the low level.

[0065] In another embodiment, the pull-up unit can include a first current source coupled between any node in its own first path and power supply VDD. If the slave device determines that it requires data verification, the slave device may perform data verification to generate a verification result. When the verification result is the predetermined verification result, it can control the first current source to operate, pulling up the potential of the first path to the high level. Otherwise, if the verification result of the slave device is not the predetermined verification result, the first current source can be disabled, and the potential of the first path may remain at the low level. If, the first paths in all slave devices are not pulled up to the high level within the preset time threshold, master device Master may receive the low level as a second feedback signal indicating that there is no slave device in the communication link with the predetermined verification result.

[0066] Mode selection circuit 12 can include selection switch S1. In particular embodiments, one terminal of selection switch S1 can be coupled to input port SDI, and the other terminal of selection switch S1 is selectively coupled to output port SDO or the first terminal of control unit 11. The second terminal of control unit 11 can be coupled to output port SDO.

[0067] In the embodiments of the FIGS. 5 and 6, one of the high and low levels can be used as the first level, and the other as the second level. In other examples, the first and second levels can also be set to specific digital values (e.g., 5V and 3V), respectively. The first serial communication method can be implemented alone, or the second serial communication method can be implemented alone, or the first serial communication method and the second serial communication method can be implemented sequentially.

[0068] Particular embodiments also provide a backlight system that can include the serial communication system of any of the above embodiments, where each slave device is used to control a corresponding LED area in the backlight system.

[0069] The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with modifications as are suited to particular use(s) contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.

Claims

1. A method of serial communication applied to a serial communication system, wherein the serial communication system comprises a master device and at least one communication link, the communication link comprises a plurality of slave devices coupled in series in sequence, the method comprising:a) transmitting, by the master device, a verification instruction data packet;b) configuring the current slave device in the communication link in a first mode to receive the verification instruction data packet transmitted by the master device or a previous slave device, and forwarding the verification instruction data packet to a next slave device;c) controlling the current slave device to operate in a second mode to connecting an input port and an output port of the current slave device, in order to form a first path;d) generating, by the current slave device, a check code based on at least part of data in a register list of the current slave device when the verification instruction data packet indicates that the current slave device requires data verification to verify data in the register;e) generating, by the current slave device, a verification result according to the check code; andf) setting, by the current slave device, a potential of the first path of the current slave device to a first level representing a predetermined verification result when the verification result is the predetermined verification result, such that the master device receives a feedback signal representing whether there is a slave device in the communication link having the predetermined verification result.

2. The method of claim 1, wherein:a) the current slave device generates the check code based on at least part of the data in the register list and at least one preset algorithm;b) the current slave device compares the check code against a reference check code to generate the verification result; andc) the current slave device sets the potential of its own first path to the first level representing the predetermined verification result when the verification result is the predetermined verification result.

3. The method of claim 2, wherein:a) the verification instruction data packet comprises a plurality of verification sub-data packets arranged in sequence, each slave device requiring verification corresponding to a different verification sub-data packet; andb) the current slave device receives the verification instruction data packet transmitted by the master device or the previous slave device to obtain a corresponding verification sub-data packet, and transmits all data subsequent to the corresponding verification sub-data packet in the verification instruction data packet to the next slave device.

4. The method of claim 3, wherein the verification sub-data packet comprises the reference check code, such that the current slave device obtains the reference check code from the corresponding verification sub-data packet.

5. The method of claim 1, wherein the current slave device generates the check code based on data at least one preset location in the register list.

6. The method of claim 5, wherein:a) the verification sub-data packet comprises a register address portion; andb) the current slave device determines at least one corresponding location in the register list based on data of the register address portion, and generates the check code based on data at least one corresponding location in the register list.

7. The method of claim 2, wherein before the master device transmits the verification instruction data packet, the master device generates reference check codes corresponding to each slave device, and writes the reference check code corresponding to the current slave device into a register corresponding to the current slave device for storage.

8. The method of claim 1, wherein when the current slave device determines that the check code does not match a reference check code, the verification result is configured as the predetermined verification result, and a potential of the first path of the current slave device is set to the first level.

9. The method of claim 1, wherein within a preset time threshold:a) when the potential of the first path in one slave device is set to the first level, a potential of a link path formed by a plurality of first paths coupled in series in the communication link is set to the first level, such that the master device receives the first level as a first feedback signal indicating that there is a slave device in the communication link with the predetermined verification result; andb) when the first paths in all slave devices are not set to the first level, a potential of the link path formed by a plurality of first paths coupled in series in all slave devices remains at a second level, such that the master device receives a second level as a second feedback signal indicating that there is no slave device in the communication link with the predetermined verification result.

10. The method of claim 1, wherein the slave device further comprises a control unit, wherein:a) when the slave device is in the first mode, the input port and the output port of the slave device are coupled through the control unit;b) when the slave device is in the second mode, the input port and the output port of the slave device are directly connected;c) when the serial communication system operates in a communication mode, the slave device operates in the first mode; andd) when the serial communication system operates in a verification mode, the slave device first operates in the first mode to transmit the received verification instruction data packet to the next slave device, and thereafter the slave device is controlled to operate in the second mode.

11. The method of claim 1, wherein:a) the serial communication system further comprises a pull-up circuit configured to set an initial potential of a link path formed by the plurality of first paths coupled in series in the communication link to a high level as the second level within a preset time threshold, wherein the first level is configured as a low level; andb) each slave device comprises a pull-down unit coupled between any node in its own first path and ground potential, and if the slave device determines that its own verification result is the preset verification result, the slave device controls the pull-down unit to pull down the potential of its own first path to a low level as the first level, such that the potential of the link path is pulled down from the high level to the low level.

12. The method of claim 1, wherein:a) the serial communication system further comprises a pull-down circuit configured to set an initial potential of a link path formed by the plurality of first paths coupled in series in the communication link to a low level as the second level within a preset time threshold, wherein the first level is configured as a high level; andb) each slave device comprises a pull-up unit coupled between any node in its own first path and a power supply, and if the slave device determines that its own verification result is the preset verification result, the slave device controls the pull-up unit to pull up the potential of its own first path to a high level as the first level, such that the potential of the link path is pulled up from the low level to the high level.

13. The method of claim 1, wherein the slave device further comprises a mode selection circuit and a control unit, wherein the mode selection circuit is configured to be controlled by the control unit to control the slave device to operate in the first mode or the second mode, and wherein:a) one terminal of the mode selection circuit is coupled to the input port of the slave device, and the other terminal of the mode selection circuit is selectively coupled to the output port of the slave device and a first terminal of the control unit, and a second terminal of the control unit is coupled to the output port of the slave device; orb) one terminal of the mode selection circuit is coupled to the output port of the slave device, and the other terminal of the mode selection circuit is selectively coupled to the input port of the slave device and a first terminal of the control unit; a second terminal of the control unit is coupled to the input port of the slave device.

14. The method of claim 1, further comprising:a) transmitting, by the master device, a write instruction data packet, wherein the write instruction data packet comprises a plurality of write sub-data packets arranged in sequence, each slave device requiring data writing corresponding to a different write sub-data packet;b) receiving, by a current slave device in the communication link, the write instruction data packet transmitted by the master device or a previous slave device;c) acquiring, by the current slave device, data of a predetermined length from a beginning of the received write instruction data packet to obtain a write sub-data packet corresponding to the current slave device;d) transmitting, by the current slave device, all data subsequent to the data of the predetermined length from the beginning of the received write instruction data packet to a next slave device; ande) wherein the predetermined length is determined by data length information represented by at least one bit in the corresponding write sub-data packet.

15. The method of claim 14, wherein the write sub-data packet comprises a communication data portion, and one or more flag bits are provided before the communication data portion to identify the data length information of the write sub-data packet.

16. The method of claim 15, wherein the write sub-data packet comprises at least one of a command portion and a register address portion, wherein:a) the command portion is provided before the communication data portion, and one or more flag bits are provided in the command portion to identify the data length information;b) the register address portion is provided before the communication data portion, and one or more flag bits are provided in the register address portion to identify the data length information; orc) both the command portion and the register address portion are provided before the communication data portion, and one or more flag bits are respectively provided in the command portion and the register address portion to identify the data length information.

17. The method of claim 14, wherein the write sub-data packet comprises a communication data portion and a register address portion, the register address portion is provided before the communication data portion, and the data length information is determined based on data of the register address portion.

18. The method of claim 17, wherein a mapping relationship between data of the register address portion and the data length information of the write sub-data packet is preset within the slave device, in order to determine the data length information based on the data of the register address portion.

19. A serial communication system, comprising the master device and the at least one communication link, the communication link comprising the plurality of slave devices coupled in series in sequence, each slave device comprising the input port and the output port, and wherein communication in the serial communication system is performed using the method of claim 1.

20. A backlight system, comprising the serial communication system of claim 19, wherein each slave device is used to control a corresponding LED area in the backlight system.