Electronic system, address configuration and data transmission method, slave device and electronic device
Patent Information
- Application Number
- CN202380007981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-12-20
AI Technical Summary
In the field of display technology, especially in the light-emitting diode backlight panels and touch panels of liquid crystal display panels, the complex connections between driver IC devices lead to problems such as large space occupation, high power consumption, and increased costs.
By introducing a parallel connection between a master device and multiple slave devices using the same clock signal line in the electronic system, the first signal line is used for data transmission, and the initial device address is assigned to the slave device through the address configuration line, reducing the number of connection lines. Simplify wiring.
It achieves fast data transmission speed, a large number of slave devices, and simple wiring, reducing the size and cost of the drive circuit, while improving the flexibility of address configuration and data transmission efficiency.
Smart Images

Figure CN119173934A_ABST
Abstract
Description
Electronic system, address configuration and data transmission method, slave device, and electronic apparatus Technical Field
[0001] Embodiments of the present disclosure relate to an electronic system, an address configuration and data transmission method, a slave device, and an electronic apparatus. Background Art
[0002] In the field of display technology, for example, the light-emitting unit array of the light-emitting diode (LED) backlight panel of a liquid crystal display panel, the pixel array of a light-emitting diode (LED) display panel (such as a mini-LED display panel), etc., generally includes multiple rows and columns of light-emitting elements (such as LEDs) that are driven separately. Another example is a touch panel (such as a self-capacitive touch panel) that includes multiple rows and columns of touch units that are driven and detected separately. The driving of the light-emitting elements and the touch units can be achieved through a bundled driving circuit, such as an integrated circuit (IC). For example, for an LED display panel, each driver IC is used to control three LED devices that respectively realize three primary colors (such as RGB).
[0003] In the driving circuit of the above-mentioned electronic device, such as a backlight panel, an LED display panel, or a touch panel, a plurality of driver IC devices are arranged, for example, in a plurality of channels (e.g., each channel corresponds to a column), and the driver IC devices in each channel need to be connected to each other by wires to transmit data signals and control signals (e.g., clock signals, chip select signals, etc.). In order to achieve high-speed data transmission, it is often necessary to provide the above-mentioned electronic device with a large number of pins so that the driver IC devices are electrically connected to a plurality of data transmission lines and signal transmission lines. Due to the large number of driver IC devices in the driving circuit, the interconnection between the driver IC devices may make the connecting wires between the driver IC devices and the printed circuit board (PCB) routing complicated, occupying a large space, thereby increasing the size of the integrated driver circuit, increasing power consumption, and increasing the cost.
[0004] Summary of the Invention
[0005] At least one embodiment of the present disclosure provides an electronic system, which includes a master device, multiple slave devices, a clock signal line and a first signal line, wherein the master device and the multiple slave devices are connected in parallel through the same clock signal line to provide a clock signal to the multiple slave devices; the first slave device among the multiple slave devices is connected to the master device through the first signal line, and the multiple slave devices are connected in series in sequence through the first signal line.
[0006] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first signal line serves as a first data transmission line, and the first data transmission line is used to transmit data between the master device and the first slave device and between the multiple slave devices.
[0007] For example, the electronic system provided by at least one embodiment of the present disclosure also includes: a second signal line independent of the first signal line, the second signal line includes a first data transmission line, and the multiple slave devices are connected in parallel with the master device through the first data transmission line independent of the first signal line.
[0008] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first data transmission line is used to transmit data between the master device and the plurality of slave devices.
[0009] For example, in the electronic system provided by at least one embodiment of the present disclosure, the second signal line further includes: a second data transmission line, and the multiple slave devices are connected in parallel to the master device through the first data transmission line and the second data transmission line.
[0010] For example, in the electronic system provided by at least one embodiment of the present disclosure, the master device sends data to the multiple slave devices through the first data transmission line, and the master device receives data from the multiple slave devices through the second data transmission line.
[0011] For example, in the electronic system provided by at least one embodiment of the present disclosure, the multiple slave devices receive a data transmission signal including a first data packet from the master device through the first data transmission line, so as to select a target slave device from the multiple slave devices according to the first data packet to perform data transmission with the master device.
[0012] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first data packet includes an address bit for selecting the target slave device to perform data transmission with the master device.
[0013] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first data packet further includes a data bit for recording data to be written into the target slave device.
[0014] For example, in the electronic system provided by at least one embodiment of the present disclosure, the multiple slave devices receive a control word from the master device through the first data transmission line to determine a data transmission mode between the multiple slave devices and the master device according to the control word.
[0015] For example, in the electronic system provided by at least one embodiment of the present disclosure, the control word includes a read / write flag bit for selecting a direction of data transmission.
[0016] For example, in the electronic system provided by at least one embodiment of the present disclosure, the control word further includes a data length extension bit, an address length extension bit, or a target slave device quantity extension bit.
[0017] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first signal line is an address configuration line, and the multiple slave devices receive address configuration signals from the master device through the address configuration line, and the address configuration signal is used to configure initial device addresses for the multiple slave devices.
[0018] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first signal line is multiplexed as an address configuration line, and the multiple slave devices receive address configuration signals from the master device through the address configuration line, and the address configuration signal is used to configure initial device addresses for the multiple slave devices.
[0019] For example, in the electronic system provided by at least one embodiment of the present disclosure, the last slave device among the multiple slave devices is not directly connected to the master device through the first signal line.
[0020] At least one embodiment of the present disclosure also provides a slave device for connecting to a master device or connecting in series with other slave devices, the slave device comprising a clock end, a first end, a second end and an address storage module, the clock end being connected to the master device via a clock signal line to receive a clock signal from the master device; the first end being connected to the master device via an address configuration line, or being connected to the second end of the previous adjacent slave device in the series connection of the slave devices; the address storage module being configured to store a device address corresponding to the slave device.
[0021] For example, in the slave device provided in at least one embodiment of the present disclosure, the first signal line serves as a first data transmission line, and the first end of the slave device is connected to the master device through the first signal line serving as the first data transmission line, or is connected to the second end of the previous adjacent slave device in the series of slave devices through the first signal line serving as the first data transmission line.
[0022] For example, the slave device provided by at least one embodiment of the present disclosure further includes: a first data terminal configured to be connected to the master device through a first data transmission line.
[0023] For example, the slave device provided in at least one embodiment of the present disclosure further includes: a second data terminal configured to be connected to the master device through a second data transmission line, wherein the second data transmission line is different from the first data transmission line.
[0024] For example, in the slave device provided by at least one embodiment of the present disclosure, the slave device receives the device address from the master device through the first signal line.
[0025] For example, in the slave device provided in at least one embodiment of the present disclosure, after the slave device receives and configures the device address from the master device, the second end of the slave device is electrically connected to the first end of the next slave device adjacent to the slave device in series through the first signal line, so that the next slave device starts and receives the device address corresponding to the next slave device from the master device.
[0026] For example, the slave device provided by at least one embodiment of the present disclosure further includes: a control circuit configured to control the slave device to configure the device address or perform data transmission with the master device.
[0027] For example, in the slave device provided in at least one embodiment of the present disclosure, the control circuit includes a coupled switch control module and a data processing module, the switch control module is configured to control the opening or closing of the data processing module; the data processing module is configured to process data received from the master device or data to be sent to the master device.
[0028] For example, in the slave device provided in at least one embodiment of the present disclosure, the switch control module includes: a switch unit, configured to control the first end to be electrically connected to the address storage module so that the slave device is in an address configuration mode; a counting unit, configured to count the device address written to the address storage module in the address configuration mode, and in response to the size of the device address counted, electrically connect the second end of the slave device to the first end of the next slave device adjacent to the slave device in series through the first signal line.
[0029] For example, in the slave device provided in at least one embodiment of the present disclosure, the switch unit is further configured to control the first end to be electrically connected to the data processing module, so that the slave device and the master device can perform data transmission.
[0030] For example, in the slave device provided in at least one embodiment of the present disclosure, the switch control module is further configured to determine whether the slave device is a target slave device based on a matching result between the device address of the address storage module and the first data packet; in response to the slave device being the target slave device, the switch control module controls the data processing module to turn on; in response to the slave device not being the target slave device, the switch control module controls the data processing module to turn off, and transmits the first data packet to the next slave device adjacent to the slave device in series.
[0031] For example, in the slave device provided in at least one embodiment of the present disclosure, the address storage module includes a read-only memory.
[0032] For example, in the slave device provided in at least one embodiment of the present disclosure, the data processing module includes: a first register unit, configured to store data received from the master device; a first signal modulation unit, connected to the first register unit, configured to process the data received from the master device.
[0033] For example, in the slave device provided in at least one embodiment of the present disclosure, the data processing module includes: a sampling unit configured to obtain sampled data; a second register unit connected to the sampling unit and configured to store the sampled data to be sent to the master device.
[0034] For example, the slave device provided in at least one embodiment of the present disclosure further includes: a control terminal configured to be connected to a device to be controlled, wherein the device to be controlled includes an LED or a touch unit.
[0035] For example, in the slave device provided in at least one embodiment of the present disclosure, the LED includes at least one of a micro-LED and a mini-LED.
[0036] At least one embodiment of the present disclosure also provides an address configuration method for an electronic system, wherein the first signal line is an address configuration line, and the method includes: connecting the master device and the multiple slave devices in series in sequence through the address configuration line, wherein the first slave device among the multiple slave devices is connected to the master device through the address configuration line; and the multiple slave devices respectively receive and configure the multiple device addresses corresponding to the multiple slave devices from the master device.
[0037] For example, the address configuration method provided by at least one embodiment of the present disclosure further includes: the master device sequentially assigning multiple device addresses to the multiple slave devices through the address configuration line.
[0038] For example, in the address configuration method provided in at least one embodiment of the present disclosure, the master device and the multiple slave devices are connected in series in sequence through the address configuration line, including: connecting the first end of the first slave device to the master device through the address configuration line; and electrically connecting the second end of each slave device in the multiple slave devices to the first end of the next slave device adjacent to each slave device in the series through the address configuration line.
[0039] For example, in the address configuration method provided in at least one embodiment of the present disclosure, connecting the master device and the multiple slave devices in series through the address configuration line further includes: leaving the second end of the last slave device among the multiple slave devices suspended.
[0040] For example, the address configuration method provided by at least one embodiment of the present disclosure also includes: detecting whether the address storage module of the slave device is empty; in response to the address storage module of the slave device being empty, the slave device receives the device address corresponding to the slave device from the master device, and stores the device address assigned by the master device in the address storage module; in response to configuring the device address of the slave device, electrically connecting the second end of the slave device to the first end of the next slave device adjacent to the slave device in series through the address configuration line.
[0041] For example, the address configuration method provided by at least one embodiment of the present disclosure also includes: detecting the level state of the first end of the slave device connected to the address configuration line; in response to the first end of the slave device connected to the address configuration line being pulled high, the slave device receives and configures the device address corresponding to the slave device from the master device; in response to the configuration of the device address of the slave device, the second end of the slave device is electrically connected to the first end of the next slave device adjacent to the slave device in series through the address configuration line.
[0042] At least one embodiment of the present disclosure further provides a data transmission method for an electronic system, the method comprising: the plurality of slave devices receiving a first data packet from the master device; selecting a target slave device from the plurality of slave devices based on the first data packet; and implementing data transmission between the target slave device and the master device based on the first data packet.
[0043] For example, in the data transmission method provided in at least one embodiment of the present disclosure, the first signal line serves as a first data transmission line.
[0044] The multiple slave devices receiving the control word and the first data packet from the master device include:
[0045] The plurality of slave devices receive the first data packet from the master device through the first signal line multiplexed as the first data transmission line.
[0046] For example, in the data transmission method provided in at least one embodiment of the present disclosure, the electronic system further includes a first data transmission line independent of the first signal line, and the plurality of slave devices are connected in parallel to the master device via the first data transmission line independent of the first signal line.
[0047] The multiple slave devices receiving the first data packet from the master device include:
[0048] The plurality of slave devices receive the first data packet from the master device through the first data transmission line.
[0049] For example, in the data transmission method provided in at least one embodiment of the present disclosure, selecting a target slave device from the multiple slave devices based on the first data packet includes: obtaining the address bit in the first data packet; judging whether the device address of the slave device matches the address bit; if the device address of the slave device matches the address bit, selecting the slave device as the target slave device; if the device address of the slave device does not match the address bit, judging whether the device address of the next slave device adjacent to the slave device in series matches the address bit.
[0050] For example, the data transmission method provided by at least one embodiment of the present disclosure further includes: the multiple slave devices receiving a control word from the master device; and implementing data transmission between the target slave device and the master device according to the control word.
[0051] For example, in the data transmission method provided in at least one embodiment of the present disclosure, the data transmission between the target slave device and the master device is realized according to the control word, including: selecting the direction of data transmission according to the read / write flag in the control word; writing the data recorded in the data bits in the first data packet into the target slave device through the first data transmission line, or sending the second data packet obtained from the target slave device to the master device through the first data transmission line.
[0052] For example, in the data transmission method provided in at least one embodiment of the present disclosure, the data transmission between the target slave device and the master device is realized according to the control word, including: selecting the direction of data transmission according to the read / write flag in the control word; writing the data recorded by the data bits in the first data packet into the target slave device through the first data transmission line, or sending the second data packet obtained from the target slave device to the master device through the second data transmission line.
[0053] For example, in the data transmission method provided in at least one embodiment of the present disclosure, the data transmission between the target slave device and the master device is realized according to the control word, and further includes: selecting the length of the transmitted data according to the data length extension bit in the control word; or, selecting the length of the device address according to the address length extension bit in the control word; or, selecting the number of target slave devices according to the target slave device number extension bit in the control word.
[0054] For example, the data transmission method provided by at least one embodiment of the present disclosure further includes: setting a preset time interval for data transmission according to the number of the multiple slave devices.
[0055] For example, the data transmission method provided by at least one embodiment of the present disclosure also includes: controlling data transmission according to the clock signal of the clock signal line; when the clock signal is a start clock signal, starting the data transmission at a start identification bit corresponding to the start clock signal; when the clock signal is an end clock signal, ending the data transmission at an end identification bit corresponding to the end clock signal.
[0056] At least one embodiment of the present disclosure further provides an electronic device, which includes the electronic system provided by any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, rather than limiting the present disclosure.
[0058] FIG1 is a schematic block diagram of an electronic system provided by at least one embodiment of the present disclosure;
[0059] FIG2 is a schematic block diagram of another electronic system provided by at least one embodiment of the present disclosure;
[0060] FIG3 is a schematic block diagram of another electronic system provided by at least one embodiment of the present disclosure;
[0061] FIG4 is a schematic block diagram of a slave device provided by at least one embodiment of the present disclosure;
[0062] FIG5 is a schematic block diagram of a slave device provided by at least one embodiment of the present disclosure;
[0063] FIG6 is a schematic block diagram of another slave device provided by at least one embodiment of the present disclosure;
[0064] FIG7 is a schematic block diagram of another slave device provided by at least one embodiment of the present disclosure;
[0065] FIG8 is a circuit diagram of an exemplary slave device provided by at least one embodiment of the present disclosure;
[0066] FIG9 is a circuit diagram of another exemplary slave device provided by at least one embodiment of the present disclosure;
[0067] FIG10 is a flowchart of an address configuration method for an electronic system according to at least one embodiment of the present disclosure;
[0068] FIG11 is a flowchart of a data transmission method of an electronic system provided by at least one embodiment of the present disclosure;
[0069] FIG12 is a timing diagram of data transmission in an electronic system according to at least one embodiment of the present disclosure;
[0070] FIG13 is a schematic diagram of an electronic device provided by at least one embodiment of the present disclosure;
[0071] FIG14 is a schematic diagram of an electronic system of an electronic device provided by at least one embodiment of the present disclosure; and
[0072] FIG15 is a schematic diagram of another electronic system of an electronic device provided by at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0074] Unless otherwise defined, the technical or scientific terms used in this disclosure should have the usual meanings understood by persons of ordinary skill in the field to which this disclosure belongs. The words "first", "second" and similar terms used in this disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "include" or "comprise" mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0075] The present disclosure is described below using several specific embodiments. To keep the following description of the embodiments of the present disclosure clear and concise, detailed descriptions of known functions and components may be omitted. When any component of an embodiment of the present disclosure appears in more than one drawing, the component is represented by the same or similar reference numeral in each drawing.
[0076] In integrated driver circuits for electronic devices such as backlight panels and LED display panels, the Serial Peripheral Interface (SPI) is a commonly used communication connection method for driver ICs. In integrated driver circuits for electronic devices such as touch panels, the Inter-Integrated Circuit (IIC) is a commonly used communication connection method for driver ICs.
[0077] For example, in the SPI protocol, devices can be divided into master and slave devices. The master is the control device, such as a microcontroller (MCU). The master generates a clock signal based on the data to be exchanged. The clock signal controls the data exchange between the master and slave devices.
[0078] In electronic systems that use the SPI protocol, slave devices do not have device addresses. Instead, slave devices are connected one-to-one to the master device via a chip select (CS) signal line. The master device uses this chip select signal line to select the slave device to which data is to be transmitted. In addition to the chip select signal line, the master and slave devices are also connected via a clock (SCLK) signal line, a master output slave input (MOSI) signal line, and a master input slave output (MISO) signal line. Through the MISO and MOSI signal lines, SPI can simultaneously send and receive data, enabling high-speed data transmission. For example, SPI data transmission speeds can reach 10 megabits per second (Mbps). However, SPI typically requires four wires. For electronic systems with multiple slave devices, the large number of connecting wires between the devices would take up a significant amount of area, increasing the size of the integrated circuit.
[0079] For example, in the IIC protocol, although multiple devices can be controlled through two lines, generally no more than 8 driven devices (such as driver IC devices) can be mounted in each channel, and the maximum transmission speed in the IIC protocol is only 3.4Mbps.
[0080] At least one embodiment of the present disclosure provides an electronic system. The electronic system includes a master device, multiple slave devices, a clock signal line, and a first signal line. The master device and the multiple slave devices are connected in parallel via the same clock signal line to provide a clock signal to the multiple slave devices. A first slave device among the multiple slave devices is connected to the master device via the first signal line, and the multiple slave devices are sequentially connected in series via the first signal line.
[0081] The electronic system of the above-mentioned embodiment of the present disclosure connects multiple slave devices in series in sequence through the first signal line, which can reduce the signal lines connected between the master device and the slave device. It has the advantages of simple wiring, fast data transmission speed, and a large number of mountable slave devices. It can be addressed according to the device address of the slave device and can arbitrarily select and control the slave device and the master device to transmit data.
[0082] In one embodiment, the first signal line is divided into multiple segments, wherein the first slave device is connected to the master device via the first segment of the first signal line, and multiple slave devices are sequentially connected via other segments of the first signal line. For example, the first slave device can be directly connected to the master device via the first segment of the first signal line.
[0083] At least one embodiment of the present disclosure further provides a slave device, configured to be connected to a master device or connected in series with other slave devices. The slave device includes a clock terminal, a first terminal, a second terminal, and an address storage module. The clock terminal is connected to the master device via a clock signal line to receive a clock signal from the master device; the first terminal is connected to the master device via a first signal line, or is connected to the second terminal of the previous slave device in the series connection of slave devices; and the address storage module is configured to store a device address corresponding to the slave device.
[0084] The slave device of the above-mentioned embodiment of the present disclosure has the advantages of simple structure, few pins, and strong adaptability, and can be used in the electronic system provided by at least one embodiment of the present disclosure. The slave device has an address storage module that can store the device address and realize efficient data transmission with the master device based on the device address.
[0085] Fig. 1 shows an electronic system 10 provided by at least one embodiment of the present disclosure. As shown in Fig. 1 , the electronic system 10 includes a master device, multiple slave devices (slave 1 to slave n), a clock signal line, and a first signal line.
[0086] In at least one embodiment of the present disclosure, the master device may be a control device having functions such as providing clock signals, assigning addresses to slave devices, and initiating communications. For example, it may be implemented by an integrated circuit, such as a microcontroller (MCU). The embodiments of the present disclosure do not limit the structure and type of the master device.
[0087] For example, the number of slave devices can be multiple. For example, an electronic system can mount n slave devices connected in series in each channel of a master device, where n is an integer greater than 1. For example, a master device can be connected to 4, 6, 8 or 64 slave devices in each channel, and each master device can mount one or more channels. For example, multiple slave devices can be the same or different. For example, a slave device can be a driver IC for a backlight (such as an LED) on a backlight panel of a liquid crystal display panel, such as a backlight panel for LEDs arranged with small pitches (such as mini-LEDs, micro-LEDs, etc.); a slave device can also be a driver IC for a touch unit in a touch panel, such as a touch panel used for a touch screen; the slave device can also be used in other fields, such as photosensitivity detection, etc., and the embodiments of the present disclosure do not limit this. The slave device can be implemented, for example, by an integrated circuit, and the embodiments of the present disclosure do not limit the structure and type of the slave device.
[0088] As shown in Figure 1, a master device is connected in parallel to multiple slave devices via the same clock signal line to provide clock signals to the multiple slave devices. For example, the clock signal line extends from a clock port (not shown) on the master device, connects in parallel to the clock terminals (not shown) of each slave device, and then is introduced into each slave device. Slave 1, Slave 2, Slave 3, and Slave n can receive clock signals from the master device via this clock signal line.
[0089] It should be noted that, in the description of the embodiments of the present disclosure, the master device and multiple slave devices are connected "in parallel" through the same clock signal line, which can be understood as the master device and any one of the multiple slave devices being "connected head to head" through the clock signal line, and "connected tail to tail" through other signal lines in the electronic system, and other signal lines can be, for example, ground (GND) lines. For example, in the embodiment shown in Figure 1, the clock port of the master device is respectively connected to the clock ends of slave device 1, slave device 2, slave device 3...slave device n through the clock signal line, and the ground end of the master device is respectively connected to the ground ends of slave device 1, slave device 2, slave device 3...slave device n through the GND line (not shown in the figure). The following embodiments are the same as this and will not be repeated here.
[0090] For example, the first slave device among multiple slave devices is connected to the master device via a first signal line, and the multiple slave devices are serially connected in sequence via the first signal line. For example, the first signal line is drawn out from the master device and connected to the first end of slave device 1 (not shown in the figure), the second end of slave device 1 can be electrically connected to the first end of slave device 2 via the first signal line, and the second end of slave device 2 can be electrically connected to the first end of slave device 3 via the first signal line, and then serially connected (connected in series) to the first end of the last slave device (for example, slave device n). In other words, multiple slave devices can be serially connected via a first signal line, thereby reducing the wiring in the drive circuit as a whole, making the wiring of the drive circuit simpler and more convenient.
[0091] For example, in at least one embodiment of the present disclosure, the last slave device among the multiple slave devices is not directly connected to the master device via the first signal line. That is, among the multiple slave devices connected in series via the first signal line, the second terminal of the last slave device can be left floating, not directly connected to the master device, and not forming a loop via the first signal line.
[0092] In the electronic system 10 shown in FIG1 , a first signal line serves as a first data transmission line. A first slave device among multiple slave devices is connected to a master device via the first signal line serving as the first data transmission line. The multiple slave devices are sequentially connected in series via the first signal line. The first data transmission line is used to transmit data between the master device and the first slave device, as well as between the multiple slave devices.
[0093] For example, in electronic system 10, a first signal line can be used to transmit data, enabling data transmission between a master device and a first slave device, as well as data transmission between the master device and multiple other slave devices. Slave device 1, slave device 2, slave device 3, ..., slave device n can transmit data with the master device via the first data transmission line (first signal line). For example, multiple slave devices can receive data from the master device via the first data transmission line, or multiple slave devices can send data to the master device via the first data transmission line.
[0094] For example, in at least one embodiment of the present disclosure, the first signal line can be multiplexed as an address configuration line to assign a device address belonging to a slave device that does not have an initial device address. For example, the first signal line is an address configuration line, and multiple slave devices receive address configuration signals from a master device via the address configuration line. The address configuration signal is used to configure initial device addresses for the multiple slave devices. For example, the master device is configured to sequentially assign multiple device addresses to the multiple slave devices via the address configuration line, and the multiple slave devices are configured to respectively receive and configure multiple device addresses corresponding to the multiple slave devices from the master device. The embodiments of the present disclosure do not limit the encoding method of the device address.
[0095] For example, the master device can assign device address 1 to slave device 1 through the address configuration line. After slave device 1 receives device address 1 from the master device, it writes device address 1 into the address storage module of slave device 1 to complete the address configuration of slave device 1. Then, slave device 2 is electrically connected to the address configuration line. The master device assigns device address 2 to slave device 2 through the address configuration line. After slave device 2 receives device address 2 from the master device, it writes device address 2 into the address storage module of slave device 2 to complete the address configuration of slave device 2. Then, slave device 3 is electrically connected to the address configuration line, and so on, until slave device n is electrically connected to the address configuration line, the master device assigns device address n to slave device n through the address configuration line, and slave device n receives and configures device address n of slave device n from the master device.
[0096] In the electronic system provided in at least one embodiment of the present disclosure, corresponding address tags (such as device addresses) can be assigned to multiple slave devices through the above-mentioned address configuration process, so that the master device can arbitrarily select and control the slave device through the address tag during the subsequent data transmission process, thereby achieving efficient and fast data transmission.
[0097] For example, in the display driver field, since multiple driver chips (multiple slave devices) produced in the same batch usually do not have corresponding address marks set in their initial state when they leave the factory, the master device cannot initially control a specific driver chip individually after the driver chips are installed and cascaded. Furthermore, since the driver chips need to be mounted on the screen after production, if the driver chips already have corresponding address marks in their initial state when they leave the factory, then when the driver chips are mounted according to the patch positions on the circuit board, a large number of driver chips will need to be installed one-to-one corresponding to specific patch positions, which will undoubtedly greatly increase the difficulty of patching.
[0098] In this regard, in the electronic system provided by at least one embodiment of the present disclosure, the above-mentioned address configuration process can be arranged to be performed after the display panel is produced, that is, the above-mentioned address configuration process can be performed after the patch is completed. For example, before multiple slave devices are electrically connected through the address configuration line, the corresponding address marks may not be set inside the multiple slave devices. For example, the multiple slave devices may be multiple driver chips of the same specification that have just been produced, or they may be multiple driver chips after the patch is completed. After the patch is completed, the multiple slave devices are electrically connected in sequence through the address configuration line, so that the initial device addresses are configured for the multiple driver chips (multiple slave devices) through the above-mentioned address configuration process, and then the master device is allowed to individually control a certain driver chip among the multiple cascaded driver chips. This can reduce the difficulty of patching the driver chip and improve the flexibility of the address configuration.
[0099] For example, in one example, the address configuration process can be performed only once, thereby assigning unique device addresses to multiple slave devices. For example, in the above-mentioned display driver application scenario, the addresses of multiple slave devices can be configured once after the patch is completed. After the product leaves the factory, for example, during the actual use of the product, the address configuration of the slave devices does not need to be performed again, thereby simplifying the process, saving product startup time, and reducing system power consumption and usage costs.
[0100] For example, in another example, the above-mentioned address configuration process can also be performed multiple times, so as to flexibly adjust the device addresses of multiple slave devices according to changes in actual needs. For example, when one or more slave devices need to be replaced or removed, or when it is detected that the address configuration of a slave device fails or is incorrectly configured, an address reset operation can be performed on the slave device in the electronic system to clear the address stored in the address storage module of the slave device, or the electrical connection between the address configuration lines of the multiple slave devices can be disconnected, and the device address configuration operation can be performed on the slave device again, thereby improving the accuracy of the address configuration and making the electronic system suitable for more flexible application scenarios.
[0101] In summary, the electronic system provided by at least one embodiment of the present disclosure does not need to rely on a slave device that already has a unique device address. Instead, the master device can automatically assign multiple device addresses to multiple slave devices through the address configuration line, provide address identification for data transmission between the master device and multiple slave devices, facilitate rapid addressing of the master device, and enable the master device to arbitrarily select and control the slave device to transmit data to the master device, thereby improving data transmission efficiency.
[0102] For example, in at least one embodiment of the present disclosure, multiple slave devices of an electronic system may be in an address configuration mode or a data transmission mode. In the address configuration mode, the multiple slave devices sequentially receive and configure multiple device addresses corresponding to the multiple slave devices from a master device. In the data transmission mode, the multiple slave devices receive a data transmission signal from the master device via a first data transmission line. The data transmission signal, for example, includes a control word and a first data packet, so that a target slave device is selected from the multiple slave devices based on the first data packet to perform data transmission with the master device. For example, the address configuration mode may be enabled before a product leaves the factory and disabled after the product leaves the factory, so that the product remains in the data transmission mode after leaving the factory, thereby enabling efficient data transmission. However, this is not intended to limit the disclosure.
[0103] Specifically, when the multiple slave devices are in data transmission mode, the multiple slave devices receive a control word and a first data packet from the master device via a first signal line serving as a first data transmission line to implement data transmission with the master device. When the multiple slave devices are in address configuration mode, the multiple slave devices receive information about multiple device addresses from the master device via the first signal line multiplexed as an address configuration line, for example, in sequence, and configure multiple device addresses corresponding to the multiple slave devices.
[0104] In the above embodiment, the electronic system 10 can implement data transmission between the master device and the slave device via two signal lines (i.e., a clock signal line and a first data transmission line). This not only simplifies the connection structure but also significantly reduces the number of wiring. When the electronic system of the above embodiment is used in the display field, such as for a mini-LED display panel, it can save wiring space on the bottom frame of the display screen, reduce the size of the display driver circuit, reduce the difficulty of layout and wiring, and save design costs.
[0105] Although the above-mentioned electronic system 10 only needs two signal lines to realize data transmission, in some cases, for example, the number of slave devices connected in series through the first signal line is very large. If the parasitic capacitance and parasitic resistance inside each slave device are relatively large, it will cause signal transmission delay, and signal asynchrony problems may occur, which may lead to data loss or misalignment.
[0106] To address the above problem, at least one embodiment of the present disclosure can control the number of slave devices mounted on the electronic system 10, or consider that the parasitic capacitance and parasitic resistance inside the slave devices are sufficiently small during the actual layout and routing process.
[0107] To address the above issues, at least one embodiment of the present disclosure further provides an electronic system 20 having three signal lines. As shown in FIG2 , compared to the electronic system 10 of the embodiment of FIG1 , the electronic system 20 includes, in addition to the clock signal line and the first signal line, a second signal line independent of the first signal line, the second signal line including the first data transmission line.
[0108] For example, in the embodiment shown in Figure 2, the second signal line is a first data transmission line, and multiple slave devices are connected in parallel to the master device through the first data transmission line independent of the first signal line. The first data transmission line is used to transmit data between the master device and multiple slave devices.
[0109] It should be noted that the "parallel" connection of multiple slave devices to the master device through a first data transmission line independent of the first signal line can be understood as any one of the multiple slave devices being "connected head to head" to the master device through the first data transmission line, and being "connected tail to tail" to the master device through other signal lines in the electronic system, and other signal lines can be, for example, ground (GND) lines. For example, in the embodiment shown in FIG2 , the master device is connected to the first data terminals (the first data terminal 609 shown in FIG6 ) of slave device 1, slave device 2, slave device 3 ... slave device n respectively through the first data transmission line, and the ground terminal of the master device is connected to the ground terminals of slave device 1, slave device 2, slave device 3 ... slave device n respectively through the GND line (not shown in the figure). For example, in the electronic system 20, the first signal line can be used to assign addresses, and the first data transmission line can be used to transmit data. For example, the first data transmission line is drawn out from the master device and connected in parallel to the data terminal of each slave device, such as the first data terminal in the present disclosure. Slave device 1, slave device 2, slave device 3...slave device n can perform data transmission with the master device through the first data transmission line. For example, multiple slave devices can receive data from the master device through the first data transmission line, or multiple slave devices can send data to the master device through the first data transmission line.
[0110] Specifically, when multiple slave devices are in address configuration mode, multiple slave devices receive and configure multiple device addresses corresponding to the multiple slave devices in sequence from the master device through the first signal line; when multiple slave devices are in data transmission mode, multiple slave devices receive control words and first data packets from the master device through the first data transmission line to realize data transmission between the master device.
[0111] In this embodiment, the electronic system 20 can use three signal lines to achieve data transmission between the master device and the slave devices. By separating the first data transmission line from the first signal line and connecting multiple slave devices in parallel via the first data transmission line, signal transmission delays caused by parasitic resistance and parasitic capacitance can be effectively prevented, thereby improving data transmission reliability. Furthermore, the electronic system 20 has a relatively simple structure, which can reduce the number of wirings and accommodate more slave devices. When used in the display field, such as in mini-LED display panels, it can also save wiring space on the bottom frame of the display screen, reduce the size of the driver circuit, reduce the difficulty of layout and wiring, and save design costs.
[0112] For electronic systems 10 and 20, the master device needs to have programmable capabilities to implement control of any slave device and step-by-step data transmission. For example, the master device may include a programmable device such as a microcontroller unit (MCU) or a field programmable gate array (FPGA). In other cases, in addition to being configured to implement the embodiments of the present disclosure, the electronic system (such as some non-programmable devices (such as system-on-chip (SOC)) can also be configured to be suitable for the SPI protocol, that is, to be compatible with the SPI protocol. To achieve this, four signal lines are required to implement data transmission.
[0113] In this regard, at least one embodiment of the present disclosure further provides an electronic system 30 having four signal lines. As shown in FIG3 , compared to electronic system 10 , electronic system 30 includes, in addition to the clock signal line and the first signal line, two second signal lines independent of the first signal line, namely, a first data transmission line and a second data transmission line.
[0114] For example, in the electronic system 30, the first signal line can be used to assign addresses, and the first data transmission line and the second data transmission line can be used for the master device to send and receive data, respectively. For example, the first data transmission line is used for multiple slave devices to receive data from the master device, and the second data transmission line is used for multiple slave devices to send data to the master device. For example, multiple slave devices are connected in parallel to the master device via the first data transmission line and the second data transmission line, respectively. For example, the first data transmission line and the second data transmission line are both led out from the master device, the first data transmission line is connected in parallel to the first data terminal of each slave device, and the second data transmission line is connected in parallel to the second data terminal of each slave device.
[0115] It should be noted that the "parallel connection" of multiple slave devices to the master device through the first data transmission line and the second data transmission line can be understood as any one of the multiple slave devices being "connected head to head" to the master device through the first data transmission line, and being "connected tail to tail" to the master device through other signal lines in the electronic system, and any one of the multiple slave devices being "connected head to head" to the master device through the second data transmission line, and being "connected tail to tail" to the master device through other signal lines in the electronic system, and other signal lines can be, for example, ground (GND) lines. For example, in the embodiment shown in FIG3 , the master device is connected to the first data terminals (the first data terminals 709 shown in FIG7 ) of slave devices 1, slave device 2, slave device 3 ... slave device n through the first data transmission line, the master device is connected to the second data terminals (the second data terminals 710 shown in FIG7 ) of slave devices 1, slave device 2, slave device 3 ... slave device n through the second data transmission line, and the ground terminal of the master device is connected to the ground terminals of slave devices 1, slave device 2, slave device 3 ... slave device n through the GND line (not shown in the figure).
[0116] Specifically, when multiple slave devices are in address configuration mode, multiple slave devices receive information of multiple device addresses from the master device in sequence through the first signal line and configure multiple device addresses corresponding to the multiple slave devices; when multiple slave devices are in data transmission mode, multiple slave devices receive control words and first data packets from the master device through the first data transmission line, and multiple slave devices send data to the master device through the second data transmission line.
[0117] For example, the electronic system 30 is a master device compatible with the SPI protocol, and the multiple chip select (CS) signal lines in the SPI protocol can be replaced with the first signal line in the embodiment of the present disclosure. For example, the first data transmission line in the electronic system 30 can be the MOSI signal line in the SPI, and the second data transmission line can be the MISO data line in the SPI. For example, in the SPI protocol, the master device is connected to multiple slave devices via multiple chip select signal lines, while in the electronic system 30 of the embodiment of the present disclosure, the master device is connected in series with multiple slave devices via a first signal line, thereby saving the number of wirings and enabling arbitrary control of multiple slave devices by the master device with the SPI protocol.
[0118] A communication protocol applicable to the above-mentioned electronic system provided by at least one embodiment of the present disclosure is described below.
[0119] For example, in the above data transmission mode, multiple slave devices can receive a control word and a first data packet from the master device via the first data transmission line to select a target slave device from the multiple slave devices for data transmission with the master device according to the first data packet.
[0120] For example, in the electronic system provided by at least one embodiment of the present disclosure, the first data packet includes an address bit for selecting a target slave device for data transmission with a master device. For example, the address bit includes the device address of one or more slave devices. After each slave device receives the first data packet from the master device, it can determine whether its device address matches the address bit in the first data packet. If it matches one of the addresses included in the address bit, it indicates that the slave device is the target slave device and can be connected to the master device for communication via a data transmission line to perform data transmission. If it does not match any of the addresses included in the address bit, it indicates that the device is not the target slave device and cannot be connected to the master device for communication, thus data transmission cannot be performed, and the first data packet needs to be transmitted to the next slave device in the series.
[0121] For example, in the electronic system provided in at least one embodiment of the present disclosure, the first data packet further includes data bits for recording data to be written to the target slave device. For example, after the address bits of the first data packet are data bits, and the data recorded in the data bits is, for example, M bytes of data sent by the master device to the target slave device, where M is a positive integer. The embodiments of the present disclosure do not impose any restrictions on the size of the transmitted data.
[0122] For example, in the electronic system provided by at least one embodiment of the present disclosure, the master device may transmit data to one slave device in one data transmission, or may transmit data to multiple slave devices in one data transmission.
[0123] For example, in one example, during a data transmission, the master device may arbitrarily select a slave device to send data to. For example, a first data packet sent by the master device includes an address and data, where the address is a device address of a slave device and the data is data sent to the slave device.
[0124] For example, in another example, in a data transmission, the master device can arbitrarily select multiple slave devices to send data to multiple slave devices, thereby increasing the speed of data transmission. For example, the master device can arbitrarily select 8 adjacent slave devices from 64 slave devices, thereby transmitting data to these 8 adjacent slave devices in a data transmission. For example, the first data packet sent by the master device contains an address and 8 data, and the address is the device address of the first slave device among the 8 adjacent slave devices, and the 8 data are data sent to the 8 adjacent slave devices in sequence. For example, after the first slave device receives the first data in the first data packet, the second slave device does not need to perform an address matching operation, but can receive the second data in the first data packet, and so on, until the 8 slave devices have respectively received the 8 data in the first data packet, and the data transmission ends.
[0125] For example, in the electronic system provided by at least one embodiment of the present disclosure, the control word includes a read / write flag bit for selecting the direction of data transmission. For example, when the control word (or a certain bit of the control word) is 1, it indicates "write", for example, the master device may transmit data to the target slave device, that is, write the data sent by the master device to the target slave device; when the control word (or a certain bit of the control word) is 0, it indicates "read", for example, the master device may receive data from the target slave device, that is, read the data from the target slave device. For example, the control word is followed by the address bit.
[0126] For example, in the electronic system provided in at least one embodiment of the present disclosure, the control word includes a data length extension bit for selecting the length of the transmitted data. For example, when the control word (or a certain bit of the control word) is 0, it indicates that the data length is 8 bits, and when the control word (or a certain bit of the control word) is 1, it indicates that the data length is 16 bits.
[0127] For example, in the electronic system provided in at least one embodiment of the present disclosure, the control word includes an address length extension bit for selecting the length of the transmission address. When the control word (or a certain bit of the control word) is 0, it indicates that the address length is 8 bits, and when the control word (or a certain bit of the control word) is 1, it indicates that the address length is 16 bits.
[0128] For example, in the electronic system provided by at least one embodiment of the present disclosure, the control word includes an extension bit for the number of target slave devices, which is used to select the number of target slave devices. For example, when the control word (or a certain bit of the control word) is 0, it indicates that the number of target slave devices is 1, and the master device selects and controls one target slave device for data transmission, that is, the master device can control a single slave device. When the control word (or a certain bit of the control word) is 1, it indicates that the number of target slave devices can be multiple, for example, k, where k is a positive integer, and the master device can select and control multiple target slave devices for data transmission, that is, the master device can control multiple slave devices, thereby increasing the data transmission speed.
[0129] For example, in the electronic system provided in at least one embodiment of the present disclosure, the control word may be an 8-bit control word. For example, the lowest bit of the control word may be a read / write flag bit, or may be another flag bit or an extension bit. The control word may include one or more of the above-mentioned flag bits and / or extension bits. For example, the first bit of the control word may be set as a read / write flag bit, the second bit of the control word may be set as a data length extension bit, the third bit of the control word may be set as an address length extension bit, etc., as needed. The embodiments of the present disclosure are not limited to this.
[0130] At least one embodiment of the present disclosure further provides a slave device architecture. The slave device can be used to connect to a master device or be connected in series with other slave devices. For example, the slave device can be used in the above-mentioned electronic system, and the slave device can be any slave device in the above-mentioned electronic system.
[0131] FIG4 is a schematic diagram of the structure of a slave device provided by at least one embodiment of the present disclosure. As shown in FIG4 , the slave device 40 includes a clock terminal 401 , a first terminal 402 , a second terminal 403 , and an address storage module 404 .
[0132] For example, the clock terminal 401 of the slave device is connected to the master device via a clock signal line to receive a clock signal from the master device. For example, the clock terminal 401 of the slave device is connected to a clock signal line, which is connected to a clock port of the master device. The slave device can receive a clock signal from the master device via the clock signal line. The clock signal is used to provide clock synchronization for the master device and multiple slave devices.
[0133] For example, the first terminal 402 of the slave device is connected to the master device via the first signal line, or is connected to the second terminal of the previous slave device in the slave device series. For example, the second terminal 403 of the slave device 40 is connected to the first terminal 402 of the next slave device in the slave device series via the first signal line or is left unconnected. For example, in one example, the electronic system includes a master device and slave devices 1, 2, and 3 connected in series in sequence via a first signal line. When the slave device 40 serves as the first slave device (slave device 1) in the electronic system of this example, the first end 402 of the slave device 1 is connected to the master device via the first signal line, and the second end 403 of the slave device 1 is connected in series to the first end 402 of the slave device 2 via the first signal line; when the slave device 40 serves as the second slave device (slave device 2) in the electronic system of this example, the first end 402 of the slave device 2 is connected to the second end 403 of the slave device 1 via the first signal line, and the second end 403 of the slave device 2 is connected in series to the first end 402 of the slave device 3 via the first signal line; when the slave device 40 serves as the last slave device (slave device 3) in the electronic system of this example, the first end 402 of the slave device 3 is connected to the second end 403 of the slave device 2 via the first signal line, and the second end 403 of the slave device 3 is left floating.
[0134] For example, the address storage module 404 of the slave device is configured to store a device address corresponding to the slave device. This device address is, for example, a device address assigned to the slave device by the master device. For example, the slave device receives the device address from the master device via a first signal line. For example, in the above example, the master device can assign device address 1 to slave device 1 via a first signal line serving as an address configuration line. After slave device 1 receives device address 1 from the master device, it writes device address 1 into the address storage module 404 of slave device 1 to complete the address configuration of slave device 1. For example, after the slave device receives and configures the device address from the master device, the second terminal 403 of the slave device is electrically connected to the first terminal 402 of the next slave device adjacent to the slave device in the series connection via the first signal line, so that the next slave device starts and receives the device address corresponding to the next slave device from the master device. Here, the next slave device can be a slave device having the same structure as the previous slave device, that is, the next slave device also has a clock terminal, a first terminal 402, a second terminal 403, and an address storage module 404. For example, before the next slave device is started, the second end 403 of the slave device and the first end 402 of the next slave device may be disconnected. After the slave device completes configuring the device address, the second end 403 of the slave device and the first end 402 of the next slave device are electrically connected. For example, the electrical connection may be connecting the first end 402 and the second end 403 of the slave device inside the slave device, or other electrical connection methods may be used, and the embodiments of the present disclosure are not limited thereto.
[0135] For example, before address configuration, there is usually no device address in the address storage module 404. After the next slave device is started, that is, after the next slave device is electrically connected to the slave device via the first signal line and thus electrically connected to the master device, the next slave device can receive the device address corresponding to the next slave device from the master device. For example, in the above example, the device address 1 corresponding to slave device 1 received by the first slave device (slave device 1) from the master device is 0000,0001. The next slave device adjacent to slave device 1 in the series connection is slave device 2. After slave device 2 is started, the device address 2 corresponding to slave device 2 that slave device 2 can receive from the master device is 0000,0010. This continues in this manner until all slave devices have obtained and configured their respective device addresses from the master device.
[0136] In the embodiment of the present disclosure, for example, the address storage module may include a volatile memory or a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory (Flash), a resistive random access memory (RRAM), a phase change memory (PCM), etc. The volatile memory may be a random access memory (RAM). By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM) and memory bus random access memory (DR RAM), and the embodiments of the present disclosure are not limited thereto.
[0137] For example, in at least one embodiment of the present disclosure, as shown in FIG4 , the slave device 40 further includes a control circuit 406 configured to control the slave device to configure a device address or to perform data transmission with the master device. For example, the control circuit 406 can be used to control the slave device to be in an address configuration mode or a data transmission mode. In the address configuration mode, the slave device obtains a device address from the master device and writes the device address into an address storage module to complete the address configuration. In the data transmission mode, data is transmitted between the slave device and the master device, for example, the slave device receives data from the master device or sends data to the master device. For example, in at least one embodiment of the present disclosure, as shown in FIG4 , the slave device 40 further includes a control terminal 405 configured to be connected to a device to be controlled. The control terminal 405 is electrically connected to the control circuit 406. For example, after the slave device receives data from the master device, the control circuit 406 of the slave device generates a control signal based on the data, and adjusts the device to be controlled via the control terminal 405. For example, when the device to be controlled is a mini-LED used in a backlight panel or display panel, the slave device can control the on / off state or brightness of the mini-LED in the backlight element or pixel unit. For example, when the device to be controlled is a touch unit, the slave device can obtain a touch signal from the touch unit through the control terminal 405 and the control circuit 406, process and store the touch signal as touch data, and then send the touch data to the master device when waiting for data transmission with the master device. For example, the device to be controlled may include a mini-LED or a touch unit, etc., and the embodiments of the present disclosure are not limited to this.
[0138] It should be noted that in some embodiments of the present disclosure, a clock signal line is connected to a functional circuit within a slave device via a clock terminal, thereby providing a synchronized clock signal to the functional circuit within the slave device. Functional circuits include control circuits, storage modules, or other modules or units that rely on clock signals, such as the address storage module, control circuit, and switch control module and data processing module within the control circuit in some embodiments of the present disclosure.
[0139] For example, as shown in FIG4 , the control circuit 406 is connected to the clock terminal, and thus connected to the clock signal line through the clock terminal 401, and receives a clock signal from the clock signal line for providing clock synchronization for the master device and the slave device 40. For example, in the address configuration mode, the control circuit 406 obtains the device address from the master device according to the clock signal, and in the data transmission mode, the control circuit 406 transmits data with the master device according to the clock signal.
[0140] For example, in at least one embodiment of the present disclosure, the control circuit includes a coupled switch control module and a data processing module, the switch control module is configured to control the opening or closing of the data processing module; the data processing module is configured to process data received from the main device or data to be sent to the main device.
[0141] For example, in at least one embodiment of the present disclosure, as shown in Figure 5, a slave device 50 includes a clock terminal 501, a first terminal 502, a second terminal 503, and an address storage module 506. The first terminal 502 and the second terminal 503 of the slave device 50 are both connected to a first signal line, and the first signal line can serve as a data transmission line. For the port structure and detailed description of the clock terminal 501 and the control terminal 505 of the slave device 50, reference can be made to the above description of the ports such as the clock terminal 401 and the control terminal 405 of the slave device 40, and the repetitions are not repeated here. For example, in the embodiment shown in Figure 5, the first signal line can serve as a first data transmission line to transmit data, or as an address configuration line to assign device addresses. That is, the first signal line can be multiplexed as an address configuration line to assign addresses to multiple slave devices. The first end of the slave device is connected to the master device via the first signal line serving as the first data transmission line, or is connected to the second end of the adjacent previous slave device in the slave device series connection via the first signal line serving as the first data transmission line.
[0142] For example, as shown in FIG5 , the control circuit of the slave device 50 includes a switch control module 507 and a data processing module 508. The switch control module 507 is connected to the first terminal 502, the clock terminal, the data processing module 508, and the address storage module 506. For example, when the slave device 50 is in the address configuration mode, the switch control module 507 controls the first terminal 502 of the slave device 50 to be electrically connected to the address storage module 506, thereby writing the device address obtained by the slave device 50 from the master device via the first signal line into the address storage module 506. At this time, the data processing module 508 is turned off. When the slave device 50 is in the data transmission mode, the switch control module 507 controls the first terminal 502 of the slave device 50 to be electrically connected to the data processing module 508, that is, turning on the data processing module 508, so that the slave device 50 transmits data with the master device via the first data transmission line, for example, to process data received from the master device (e.g., brightness adjustment data of the mini-LED) or to process data to be sent to the master device (e.g., touch data). For example, the slave device 50 may be used in the electronic system 10 shown in FIG1 . The slave device 50 has the advantages of simple structure, few pins, small size, etc. The first signal line can be used as a first data transmission line and an address configuration line, reducing the wiring of the electronic system.
[0143] For example, in at least one embodiment of the present disclosure, as shown in FIG6 , the slave device 60 includes a clock terminal 601, a first terminal 602, a second terminal 603, and an address storage module 606. Compared to the slave device 50, the slave device 60 also includes a first data terminal 609. The first data terminal 609 is configured to be connected to the master device via a first data transmission line. For example, the first terminal 602 and the second terminal 603 of the slave device 60 are both connected to the first signal line, and the first data terminal 609 of the slave device 60 is connected to the first data transmission line, which is independent of the first signal line. The port structure and detailed description of the clock terminal 601 and the control terminal 605 of the slave device 60 can refer to the above description of the clock terminal 401 and the control terminal 405 of the slave device 40, and the repeated parts will not be repeated.
[0144] For example, as shown in FIG6 , the control circuit of the slave device 60 includes a switch control module 607 and a data processing module 608. The switch control module 607 is connected to the first terminal 602, the first data terminal 609, the clock terminal 601, the data processing module 608, and the address storage module 606. For example, when the slave device 60 is in the address configuration mode, the switch control module 607 controls the first terminal 602 of the slave device 60 to be electrically connected to the address storage module 606, thereby writing the device address obtained by the slave device 60 from the master device via the first signal line into the address storage module 606. At this time, the data processing module 606 is turned off. When the slave device 60 is in the data transmission mode, the switch control module 607 controls the first data terminal 609 of the slave device 60 to be electrically connected to the data processing module 608, that is, turning on the data processing module 608, so that the slave device 60 can transmit data with the master device via the first data transmission line, for example, to process data received from the master device (e.g., brightness adjustment data of the mini-LED) or to process data to be sent to the master device (e.g., touch data).
[0145] For example, the slave device 60 can be used in the electronic system 20 shown in FIG2 . The slave device 60 has advantages such as a simple structure, a small number of pins, and a small size. The first data transmission line can be separated from the first signal line, thereby effectively preventing signal transmission delays caused by parasitic resistance and parasitic capacitance within the slave device, thereby improving data transmission reliability.
[0146] For example, in at least one embodiment of the present disclosure, as shown in FIG7 , the slave device 70 includes a clock terminal 701, a first terminal 702, a second terminal 703, a first data terminal 709, and an address storage module 706. Compared to the slave device 60, the slave device 70 also includes a second data terminal 710, which is configured to be connected to the master device via a second data transmission line, and the second data transmission line is different from the first data transmission line. For example, the first terminal 702 and the second terminal 703 of the slave device 70 are both connected to the first signal line, the first data terminal 709 of the slave device 70 is connected to the first data transmission line, and the second data terminal 710 of the slave device 70 is connected to the second data transmission line, and the first data transmission line and the second data transmission line are independent of the first signal line. The port structure and detailed description of the clock terminal 701 and the control terminal 705 of the slave device 70 can refer to the above description of the clock terminal 401 and the control terminal 405 of the slave device 40, and the repeated parts will not be repeated.
[0147] For example, as shown in FIG7 , the control circuit of the slave device 70 includes a switch control module 707 and a data processing module 708. The switch control module 707 is connected to the first terminal 702, the first data terminal 709, the second data terminal 710, the clock terminal 701, the data processing module 708, and the address storage module 706. For example, when the slave device 70 is in the address configuration mode, the switch control module 707 controls the first terminal of the slave device 70 to be electrically connected to the address storage module 706, thereby writing the device address obtained by the slave device 70 from the master device via the first signal line into the address storage module 706. At this time, the data processing module 708 is turned off. When the slave device 70 is in the data transmission mode, the switch control module 707 controls the first data terminal 709 or the second data terminal 710 of the slave device 70 to be electrically connected to the data processing module 708, that is, the data processing module 708 is turned on, thereby enabling the slave device 70 to transmit data with the master device via the data transmission line. For example, the switch control module 707 can control the first data end 709 of the slave device to be electrically connected to the data processing module 708, so that the slave device receives and processes data (for example, mini-LED brightness adjustment data) from the master device through the first data transmission line, or the switch control module 707 can control the second data end of the slave device to be electrically connected to the data processing module 708, so that the slave device 70 can send data (for example, touch data) to the master device through the second data transmission line.
[0148] For example, the slave device 70 can be used in the electronic system 30 shown in Figure 3. The slave device 70 has advantages such as simple structure and strong adaptability, is compatible with the SPI protocol, can realize bidirectional data transmission, and improves data transmission efficiency.
[0149] It should be noted that in the above-described embodiments, the clock signal lines of slave devices 50, 60, and 70 are connected to at least one of the switch control module, data processing module, and address storage module within the slave devices via a clock terminal, thereby providing a synchronized clock signal for the functional circuits and modules within the slave devices. For example, in the embodiment shown in FIG5 , the switch control module 507, data processing module 508, and address storage module 506 in the control circuit are all connected to a clock terminal (not shown), thereby connecting to the clock signal line via clock terminal 501 and receiving a clock signal from the clock signal line for providing clock synchronization for the master device and slave device 50. For example, the switch control module 507 controls the slave device 50 to switch to an address configuration mode based on the clock signal. For example, the slave device 50 obtains a device address from the master device based on the clock signal. For example, the address storage module 506 stores the device address obtained from the master device based on the clock signal. For example, the switch control module 507 controls the slave device 50 to switch to a data transmission mode based on the clock signal. For example, the data processing module 508 transmits data to the master device based on the clock signal. In the embodiments shown in FIG. 6 and FIG. 7 and the following embodiments, the connection manner of the clock signal line and each functional circuit inside the slave device may be the same as that of the embodiment of FIG. 5 , and will not be described in detail.
[0150] For example, in at least one embodiment of the present disclosure, the switch control module includes a switch unit and a counting unit. The switch unit is configured to control the first terminal to be electrically connected to the address storage module so that the slave device is in an address configuration mode; the counting unit is configured to count the device address written to the address storage module in the address configuration mode, and in response to the counted device address, electrically connect the second terminal of the slave device to the first terminal of the next slave device adjacent to the slave device in the series connection via the first signal line.
[0151] For example, the counting unit is connected to the first end and the second end through the switching unit. The counting unit can be a counter for counting the size of the device address written to the address storage module of the slave device. When the counter counts the size of the device address, the counting unit can electrically connect the first end and the second end of the slave device, thereby electrically connecting the slave device to the next slave device adjacent to the slave device, for example, connecting the second end of the slave device and the first end of the next slave device through the first signal line.
[0152] For example, in at least one embodiment of the present disclosure, the switch unit is further configured to control the first end to be electrically connected to the data processing module so that the slave device is in a data transmission mode and performs data transmission with the master device.
[0153] For example, the switch unit can also be configured to control the first data terminal and / or the second data terminal to be electrically connected to the data processing module so as to receive data and / or send data from the device. For a detailed description of the data transmission process, please refer to the relevant description of the embodiment of the switch control module above, which will not be repeated here.
[0154] For example, in at least one embodiment of the present disclosure, the switch control module is further configured to determine whether the slave device is a target slave device based on a matching result between the device address of the address storage module and the first data packet; in response to the slave device being the target slave device, the switch control module controls the data processing module to turn on; in response to the slave device not being the target slave device, the switch control module controls the data processing module to turn off and transmits the first data packet to the next slave device adjacent to the slave device in series.
[0155] For example, when a slave device is connected in series with other slave devices, the switch control module of the slave device can also determine whether the slave device is capable of data transmission with the master device based on the matching result between the device address of the slave device and the address bits in the first data packet (used for addressing) sent by the master device. When the device address of the slave device matches the address bits of the target slave device required for data transmission, the slave device is determined to be the target slave device, and the switch control module of the slave device can control the data processing module to turn on to achieve data transmission between the slave device and the master device. When the device address of the slave device does not match the address bits of the target slave device required for data transmission, the slave device is determined to be not the target slave device, and the switch control module of the slave device can control the data processing module to turn off and transmit the first data packet to the next slave device adjacent to the slave device in the series connection, and continue to determine whether the device address of the next slave device matches the address bits, and so on, until the target slave device is found and the data transmission is completed.
[0156] For example, in at least one embodiment of the present disclosure, a data processing module of a slave device includes a first register unit configured to store data received from a master device and a signal modulation unit connected to the first register unit and configured to process the data received from the master device.
[0157] FIG8 is a circuit diagram of an exemplary slave device provided by at least one embodiment of the present disclosure. As shown in FIG8 , the slave device 80 includes a clock terminal 801, a first terminal 802, a second terminal 803, a control terminal 805, an address storage module 806, and a switch control module (e.g., including a switch unit 807 and a counting unit 808). The structures and detailed descriptions of these ports and modules can be referred to the relevant descriptions above, and the repeated parts are not repeated here. For example, the data processing module of the slave device 80 includes a first register unit 820 and a signal modulation unit 830, and the first register unit 820 is connected to the signal modulation unit 830. For example, the first register unit 820 may include a current register and a pulse width modulation (PWM) register, and the signal modulation unit 830 may include a pulse width modulation circuit 831 and a current control circuit 832. For example, the current register can temporarily store the received current control data, and the pulse width modulation register can temporarily store the received pulse width modulation data and then transmit it to the signal modulation unit. For example, the signal modulation unit may also include an analog-to-digital converter (ADC) to convert the current control signal into an analog voltage to control the device to be controlled.
[0158] For example, in one example of this embodiment, the slave device 80 is a backlight driver chip of a mini-LED, and the device to be controlled is a mini-LED (or micro-LED). For example, the control terminal 805 of the slave device 80 is connected to the mini-LED lamp through a field effect transistor (MOS tube), for example, the source of the MOS tube is connected to the mini-LED lamp through the control terminal, and the gate of the MOS tube is connected to the signal modulation unit to control the turning on and off of the mini-LED lamp according to the size of the gate voltage. For example, when the MOS tube is turned on, the mini-LED lamp lights up, and when the MOS tube is turned off, the mini-LED lamp goes out. For example, the MOS tube can also adjust the brightness of the mini-LED lamp according to the brightness adjustment data (such as PWM data) of the mini-LED lamp received by the slave device 80 from the master device.
[0159] For example, in at least one embodiment of the present disclosure, the data processing module of the slave device includes a sampling unit configured to obtain sampled data and a second register unit connected to the sampling unit and configured to store the sampled data to be sent to the master device.
[0160] Figure 9 is an exemplary circuit structure diagram of a slave device provided by at least one embodiment of the present disclosure. As shown in Figure 9, the slave device 90 includes a clock terminal 901, a first terminal 902, a second terminal 903, a control terminal 905, an address storage module 906 and a switch control module (for example, including a switch unit 907 and a counting unit 908). The structures and detailed descriptions of these ports and modules can refer to the relevant descriptions above, and the repeated parts will not be repeated. For example, the data processing module of the slave device 90 includes a sampling unit 930 and a second register unit 920, and the sampling unit 930 is connected to the second register unit 920. For example, the second register unit 920 may include a current register and a touch register, and the sampling unit 930 may include an amplifier and an analog-to-digital converter. For example, the sampling unit 930 can collect signals from the device to be controlled, and convert the collected signals into sampled data and temporarily store them in the second register unit 920 to wait for sending to the master device.
[0161] For example, in one example of this embodiment, the slave device 90 is a driver chip of a touch control unit, and the device to be controlled is the touch control unit. For example, the control terminal 905 of the slave device 90 is connected to the touch control unit to collect touch signals from the touch control unit.
[0162] For example, in at least one embodiment of the present disclosure, the first register unit and the second register unit may further include a control signal register, for example, the control signal register being configured to temporarily store a control signal of the switch control module. The embodiments of the present disclosure do not limit the specific circuit structure of the control circuit of the slave device.
[0163] The slave device provided in at least one embodiment of the present disclosure has the advantages of simple structure, few pins, and strong adaptability, and can be used in the electronic system provided in at least one embodiment of the present disclosure. The slave device has an address storage module, which can store the device address obtained from the master device through the first signal line, and realize efficient data transmission with the master device based on the device address.
[0164] At least one embodiment of the present disclosure further provides an address configuration method for an electronic system. FIG10 illustrates a flow chart of the address configuration method for an electronic system provided by at least one embodiment of the present disclosure. For example, the first signal line in the electronic system is an address configuration line. As shown in FIG10 , the address configuration method includes steps S200 to S400.
[0165] Step S200: The master device and multiple slave devices are sequentially connected in series via address configuration lines, wherein the first slave device among the multiple slave devices is connected to the master device via the address configuration line.
[0166] Step S300: The master device sequentially allocates a plurality of device addresses to a plurality of slave devices via the address configuration lines.
[0167] Step S400: a plurality of slave devices respectively receive and configure a plurality of device addresses corresponding to the plurality of slave devices from the master device.
[0168] For example, the address configuration method can be used in the above-mentioned electronic system 10 , 20 or 30 .
[0169] For example, an electronic system includes a master device, multiple slave devices, a clock signal line, and an address configuration line. For example, each slave device includes a first terminal, a second terminal, a clock terminal, and an address storage module. For example, the slave device can be any of the slave devices 40 to 90 described above.
[0170] For example, in at least one example of the embodiments of the present disclosure, the address configuration method further includes: the master device sequentially assigning multiple device addresses to the multiple slave devices via the address configuration line. For example, the master device sequentially assigns the multiple device addresses to the multiple slave devices in the order in which the multiple slave devices are connected in series. Of course, the embodiments of the present disclosure are not limited to "sequential assignment."
[0171] For example, in at least one example of the embodiments of the present disclosure, step S200, that is, connecting the master device and multiple slave devices in series in sequence through address configuration lines, a specific example may include: connecting the first end of the first slave device to the master device through the address configuration line; electrically connecting the second end of each slave device in the multiple slave devices to the first end of the next slave device adjacent to each slave device in the series through the address configuration line.
[0172] For example, in at least one example of the embodiments of the present disclosure, step S200, that is, connecting the master device and multiple slave devices in series through address configuration lines, may also include: leaving the second end of the last slave device among the multiple slave devices hanging.
[0173] For example, in at least one embodiment of the present disclosure, multiple slave devices may be in an address configuration mode or a data transmission mode. In the address configuration mode, the slave device obtains a device address from the master device and writes the device address into an address storage module to complete the address configuration.
[0174] For example, in at least one embodiment of the present disclosure, a method for configuring addresses for multiple slave devices includes: detecting whether an address storage module of the slave device is empty; in response to the address storage module of the slave device being empty, the slave device receives a device address corresponding to the slave device from the master device, and stores the device address assigned by the master device in the address storage module; in response to completing the configuration of the device address of the slave device, electrically connecting the second end of the slave device to the first end of the next slave device adjacent to the slave device in series through an address configuration line.
[0175] For example, whether the address storage module of the slave device is empty is detected to determine whether the slave device needs to be configured with an address. In other words, whether the master device needs to assign an initial device address to the slave device via the address configuration line is determined. If the address storage module of the slave device is empty, it is determined that the slave device needs to receive and configure a device address corresponding to the slave device from the master device, for example, by storing the device address in the address storage module of the slave device. If the address storage module of the slave device is not empty, it is determined that the slave device does not need to receive a device address from the master device. For example, the slave device can remain in data transmission mode, waiting for data transmission with the master device.
[0176] For example, in response to configuring the device address of a slave device, the second end of the slave device can be electrically connected to the first end of the next slave device adjacent to the slave device in series through the address configuration line, thereby continuing to configure the device address for the next slave device, and so on, until all slave devices have their respective device addresses.
[0177] For example, the operation of detecting whether the address storage module of the slave device is empty can be set to be performed once after the product is produced, and not performed again when the product is in use. It can also be set to be performed once each time the product is powered on, or it can be performed periodically according to actual needs (for example, regularly checking whether the device address of the slave device is correct) or automatically or manually according to pre-set conditions. The embodiments of the present disclosure are not limited to this.
[0178] For example, in at least one embodiment of the present disclosure, a method for configuring addresses for multiple slave devices includes: detecting the level state of the first end of the slave device connected to the address configuration line; in response to the first end of the slave device connected to the address configuration line being pulled high, the slave device receives and configures a device address corresponding to the slave device from the master device; in response to the device address of the slave device being configured, electrically connecting the second end of the slave device to the first end of the next slave device adjacent to the slave device in series through the address configuration line.
[0179] For example, whether the address of the slave device needs to be configured is determined by detecting the level state of the first terminal of the slave device. For example, if the first terminal of the slave device is pulled high, it is determined that the slave device needs to receive and configure a device address corresponding to the slave device from the master device. For example, the device address can be stored in an address storage module of the slave device. If the first terminal of the slave device remains in a low level state, it is determined that the slave device does not need to receive a device address from the master device. For example, the slave device can remain in a data transmission mode, waiting for data transmission with the master device.
[0180] For example, in at least one embodiment of the present disclosure, as shown in FIG. 11 , the data transmission method includes steps S500 to S700 .
[0181] Step S500: a plurality of slave devices receive a first data packet from a master device.
[0182] Step S600: selecting a target slave device from a plurality of slave devices according to a first data packet.
[0183] Step S700: Implement data transmission between the target slave device and the master device according to the first data packet.
[0184] For example, in at least one example of the embodiments of the present disclosure, as shown in FIG11 , the data transmission method further includes step S100 : the master device provides a clock signal to multiple slave devices through a clock signal line.
[0185] For example, in at least one example of the embodiments of the present disclosure, the first signal line serves as the first data transmission line. For example, in this example, step S500, i.e., multiple slave devices receiving the first data packet from the master device, may include: the multiple slave devices receiving the first data packet from the master device via the first signal line multiplexed as the first data transmission line.
[0186] For example, in the electronic system 10 shown in FIG. 1 , the first signal line serves as a first data transmission line, and the plurality of slave devices receive a first data packet from the master device through the first signal line serving as the first data transmission line.
[0187] For example, in at least one example of the embodiments of the present disclosure, the electronic system further includes a first data transmission line independent of the first signal line, and multiple slave devices are connected in parallel to the master device through the first data transmission line independent of the first signal line. Step S500, that is, multiple slave devices receive a first data packet from the master device. A specific example thereof may include: multiple slave devices receive a first data packet from the master device through the first data transmission line.
[0188] For example, in the electronic system 20 shown in FIG. 2 , the first data transmission line is independent of the first signal line, and the plurality of slave devices receive the first data packet from the master device through the first data transmission line.
[0189] For example, in the electronic system 30 shown in FIG3 , the first data transmission line, the second data transmission line and the first signal line used as an address configuration line are independent, and multiple slave devices can receive the first data packet from the master device through the first data transmission line.
[0190] For example, in at least one example of the embodiments of the present disclosure, step S600, i.e., selecting a target slave device from multiple slave devices based on the first data packet, may include, in a specific example: obtaining the address bits in the first data packet; determining whether the device address of the slave device matches the address bits; if the device address of the slave device matches the address bits, selecting the slave device as the target slave device; if the device address of the slave device does not match the address bits, determining whether the device address of the next slave device adjacent to the slave device in series matches the address bits.
[0191] For example, the first data packet includes an address bit, which records the device address of the target slave device. Each slave device sequentially determines whether the address bit in the first data packet matches its own device address. If it matches, it will transmit data with the master device as the target slave device. If it does not match, it will continue to transmit the first data packet to the next slave device until it matches the target slave device. Then the target slave device will transmit data with the master device under the control of the clock signal.
[0192] For example, in at least one example of the embodiments of the present disclosure, the address configuration operation further includes: a plurality of slave devices receiving a control word from the master device; and implementing data transmission between the target slave device and the master device according to the control word.
[0193] For example, multiple slave devices can receive control words from the master device through the first signal line, or through a second signal line independent of the first signal line. For example, the second signal line can be a first data transmission line.
[0194] For example, in the electronic system 10 shown in FIG. 1 , the first signal line serves as a first data transmission line, and the plurality of slave devices receive control words from the master device through the first signal line serving as the first data transmission line.
[0195] For example, in the electronic system 20 shown in FIG. 2 , the first data transmission line is independent of the first signal line, and the plurality of slave devices receive control words from the master device through the first data transmission line.
[0196] For example, in the electronic system 30 shown in FIG3 , the first data transmission line, the second data transmission line and the first signal line used as an address configuration line are independent, and multiple slave devices can receive control words from the master device through the first data transmission line.
[0197] For example, in at least one example of the embodiments of the present disclosure, data transmission between a target slave device and a master device is implemented according to a control word, and a specific example thereof may include: selecting a direction of data transmission according to a read / write flag in the control word; writing data recorded by data bits in a first data packet into a target slave device via a first data transmission line, or sending a second data packet obtained from the target slave device to the master device via the first data transmission line.
[0198] For example, in the electronic system 10 shown in FIG1 , the first signal line serves as a first data transmission line, and the target slave device transmits data to the master device via the first signal line serving as the first data transmission line. For example, the target slave device can receive data from the master device, such as writing data recorded in the data bits of the first data packet to the target slave device. For example, the target slave device can send data to the master device, such as sending a second data packet to the master device.
[0199] For example, in the electronic system 10 shown in FIG2 , the target slave device transmits data to the master device via a first data transmission line that is independent of the first signal line. For example, in one example, the target slave device can receive data from the master device via the first data transmission line, such as writing the data recorded by the data bits in the first data packet into the target slave device. For example, in another example, the target slave device can send data to the master device via the first data transmission line, such as the target slave device sending the second data packet to the master device. For example, in at least one example of the embodiments of the present disclosure, data transmission between the target slave device and the master device is achieved based on a control word, and a specific example thereof may include: selecting the direction of data transmission based on the read / write flag in the control word; writing the data recorded by the data bits in the first data packet into the target slave device via the first data transmission line, or sending the second data packet obtained from the target slave device to the master device via the second data transmission line.
[0200] For example, in the electronic system 30 shown in FIG3 , the first data transmission line, the second data transmission line, and the first signal line used as, for example, an address configuration line are independent, and the target slave device transmits data to the master device via the first data transmission line and the second data transmission line. For example, the target slave device can receive data recorded in data bits in a first data packet from the master device via the first data transmission line, and can send a second data packet to the master device via the second data transmission line.
[0201] For example, in at least one example of the embodiments of the present disclosure, data transmission between a target slave device and a master device is implemented according to a control word, and may also include: selecting the length of the transmitted data according to a data length extension bit in the control word; or, selecting the length of the device address according to an address length extension bit in the control word; or, selecting the number of target slave devices according to a target slave device number extension bit in the control word.
[0202] The detailed description of the data length extension bit, address length extension bit or target slave device quantity extension bit in the control word can be found in the relevant description in the above embodiment of the electronic system, which will not be repeated here.
[0203] For example, in at least one embodiment of the present disclosure, the data transmission method further includes: setting a preset time interval for data transmission according to the number of the plurality of slave devices.
[0204] For example, this data transmission method can eliminate the need for a response mechanism in the electronic system, thereby increasing data transmission speed. For example, the data transmission time interval can be set according to the number of slave devices mounted on the electronic system. For example, the time required for the last slave device in the electronic system to complete data transmission as the target device can be used as the minimum time interval. Alternatively, a preset time interval can be set according to actual needs, and the next data transmission begins after the preset time interval after each data transmission is completed. This eliminates the need to wait for a response signal from the target slave device, enabling fast data transmission between the master device and the target slave device, for example, data transmission speeds of 3 to 10 Mbps.
[0205] For example, in at least one embodiment of the present disclosure, the data transmission method further includes: controlling data transmission according to a clock signal of a clock signal line; when the clock signal is a start clock signal, starting data transmission at a start identification bit corresponding to the start clock signal; and when the clock signal is an end clock signal, ending data transmission at an end identification bit corresponding to the end clock signal.
[0206] For example, a start signal is required before data transmission. As shown in FIG12 , in an idle state where no data is transmitted, the levels on the clock signal line and the data transmission line are both 0. When the working state of data transmission begins, the clock signal line sends a clock signal normally, and the data transmission line (for example, the first data transmission line or the second data transmission line in the present disclosure) is pulled high at the first falling edge of the clock signal, for example, to 1, and is restored at the next falling edge of the clock signal, for example, to 0. That is, when the clock signal is a starting clock signal, the data transmission line sends a start signal to the target slave device to start data transmission. For example, the first rising edge of the recovered clock signal is the first data trigger moment, and the first falling edge of the clock signal is used as the data acquisition position.
[0207] For example, when the last data is transmitted, the data transmission line is pulled high at the falling edge of the clock signal corresponding to the end identification bit of the data transmission, for example, to 1, and then pulled low at the next falling edge of the clock signal, for example, to 0, thereby ending the data transmission.
[0208] The data transmission method provided by at least one embodiment of the present disclosure can assign a device address to a slave device through a first signal line, thereby enabling addressing based on the device address of the slave device, and can arbitrarily select and control data transmission between the slave device and the master device, thereby improving data transmission efficiency.
[0209] At least one embodiment of the present disclosure further provides an electronic device, which includes the electronic system of any embodiment of the present disclosure.
[0210] For example, as shown in Figure 13, the electronic device can be a display device 100, which is a liquid crystal display device. The liquid crystal display device includes a liquid crystal panel 110 and a backlight panel 120 arranged on the back side of the liquid crystal panel. The backlight panel 120 includes the above-mentioned electronic system for driving LEDs as light-emitting elements.
[0211] For example, as shown in Figure 14, the electronic device can also be an LED display device 140, such as a mini-LED display device or a micro-LED display device. The display device 140 includes the above-mentioned electronic system for driving LEDs as light-emitting elements. For example, the display device 140 includes a driver chip (slave device in this disclosure) 1402 for multiple LEDs arranged in an array. Multiple slave devices 1402 and a master device 1401 constitute an electronic system 141. The master device 1401 and the multiple slave devices 1402 are connected in series in sequence through a first signal line, and the master device 1401 and the multiple slave devices 1402 are connected in parallel through a clock signal line (not shown in the figure).
[0212] For example, the electronic device may also be a touch-sensitive device, such as a touch-sensitive display device, which includes the above-mentioned electronic system for driving a touch-sensitive unit.
[0213] For example, in the display device provided in at least one embodiment of the present disclosure, one or more electronic systems may be provided, and the shape of the connection of multiple slave devices in the one or more electronic systems connected in series through the first signal line may be set according to actual needs, and the embodiments of the present disclosure do not limit this.
[0214] For example, as shown in FIG14 , the display device 130 includes an electronic system 131 , in which a master device 1301 and a plurality of slave devices 1302 arranged in an array are connected in series in sequence. For example, the plurality of slave devices 1302 can be connected in a serpentine manner through a first signal line, and the connection shape of the first signal line is a serpentine.
[0215] For example, as shown in FIG15 , a display device 140 includes m rows and n columns of slave devices 1402. The m slave devices 1402 in each column and the master device 1401 form an electronic system 141. That is, in this example, there may be m electronic systems 141. The multiple slave devices 1402 in each electronic system 141 are connected in series to the master device 1401 via a first signal line, and the connection shape of the first signal line is a straight line.
[0216] In the display device provided in at least one embodiment of the present disclosure, the electronic system can reuse the first signal line as an address configuration line, and can achieve high-speed data transmission through only two lines, namely the clock signal line and the first signal line as the first data transmission line, thereby reducing wiring, lowering the difficulty of layout and wiring, and saving the design cost of the display device.
[0217] For example, the display device or touch device can be implemented as a mobile phone, a tablet computer, a television, a monitor, a notebook computer, a digital photo frame, a navigator, etc.
[0218] Although the present disclosure has been described in detail above using general descriptions and specific embodiments, it will be apparent to those skilled in the art that modifications or improvements may be made based on the embodiments of the present disclosure. Therefore, such modifications or improvements, as long as they do not depart from the spirit of the present disclosure, are within the scope of protection claimed by the present disclosure.
[0219] Regarding this disclosure, the following points need to be explained:
[0220] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure. Other structures may refer to conventional designs.
[0221] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present disclosure, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale.
[0222] (3) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to form new embodiments.
[0223] The above description is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. The protection scope of the present disclosure shall be based on the protection scope of the claims.
Claims
1. An electronic system comprising a master device, a plurality of slave devices, a clock signal line and a first signal line, in, The master device is connected in parallel with the plurality of slave devices via the same clock signal line to provide a clock signal to the plurality of slave devices; The first slave device among the plurality of slave devices is connected to the master device via the first signal line, and the plurality of slave devices are serially connected in sequence via the first signal line.
2. The electronic system according to claim 1, in, The first signal line serves as a first data transmission line, The first data transmission line is used to transmit data between the master device and the first slave device and between the plurality of slave devices.
3. The electronic system according to claim 1, further comprising: include: A second signal line is independent of the first signal line, the second signal line includes a first data transmission line, and the plurality of slave devices are connected in parallel with the master device via the first data transmission line independent of the first signal line.
4. The electronic system according to claim 3, in, The first data transmission line is used to transmit data between the master device and the plurality of slave devices.
5. The electronic system according to claim 3, in, The second signal line further includes: a second data transmission line, and the plurality of slave devices are connected in parallel with the master device through the first data transmission line and the second data transmission line, respectively.
6. The electronic system according to claim 5, in, The master device sends data to the plurality of slave devices through the first data transmission line, and the master device receives data from the plurality of slave devices through the second data transmission line.
7. The electronic system according to any one of claims 2 to 6, in, The multiple slave devices receive a data transmission signal including a first data packet from the master device through the first data transmission line, so as to select a target slave device from the multiple slave devices according to the first data packet to perform data transmission with the master device.
8. The electronic system according to claim 7, in, The first data packet includes an address bit for selecting the target slave device to perform data transmission with the master device.
9. The electronic system according to claim 8, in, The first data packet also includes data bits for recording data to be written into the target slave device.
10. The electronic system according to any one of claims 2 to 6, in, The multiple slave devices receive a control word from the master device through the first data transmission line to determine a data transmission mode between the multiple slave devices and the master device according to the control word.
11. The electronic system according to claim 10, in, The control word includes a read / write flag bit, which is used to select the direction of data transmission.
12. The electronic system according to claim 10, in, The control word also includes a data length extension bit, an address length extension bit or a target slave device quantity extension bit.
13. The electronic system according to any one of claims 1, 3-6, in, The first signal line is an address configuration line, and the multiple slave devices receive address configuration signals from the master device through the address configuration line, and the address configuration signal is used to configure initial device addresses for the multiple slave devices.
14. The electronic system according to claim 2, in, The first signal line is multiplexed as an address configuration line, and the multiple slave devices receive address configuration signals from the master device through the address configuration line, and the address configuration signal is used to configure initial device addresses for the multiple slave devices.
15. The electronic system according to claim 1, in, The last slave device among the plurality of slave devices is not directly connected to the master device through the first signal line.
16. A slave device, used to connect to a master device or to be connected in series with other slave devices, the slave device comprising a clock terminal, a first terminal, a second terminal and an address storage module, The clock terminal is connected to the master device via a clock signal line to receive a clock signal from the master device; The first end is connected to the master device through a first signal line, or is connected to the second end of the previous slave device adjacent to the slave device in series; The address storage module is configured to store a device address corresponding to the slave device.
17. The slave device according to claim 16, in, The first signal line serves as a first data transmission line, The first end of the slave device is connected to the master device through the first signal line serving as the first data transmission line, or is connected to the second end of the previous adjacent slave device in the slave device series through the first signal line serving as the first data transmission line.
18. The slave device according to claim 16, further comprising: include: The first data terminal is configured to be connected to the main device through a first data transmission line.
19. The slave device according to claim 18, further comprising: include: The second data terminal is configured to be connected to the master device through a second data transmission line, wherein the second data transmission line is different from the first data transmission line.
20. The slave device according to claim 16, in, The slave device receives the device address from the master device through the first signal line.
21. The slave device according to claim 16, in, After the slave device receives and configures the device address from the master device, the second end of the slave device is electrically connected to the first end of the next slave device adjacent to the slave device in series through the first signal line, so that the next slave device starts and receives the device address corresponding to the next slave device from the master device.
22. The slave device according to claim 16, further comprising: include: The control circuit is configured to control the slave device to configure the device address or to perform data transmission with the master device.
23. The slave device according to claim 22, in, The control circuit includes a switch control module and a data processing module coupled to each other. The switch control module is configured to control the opening or closing of the data processing module; The data processing module is configured to process data received from the master device or data to be sent to the master device.
24. The slave device according to claim 23, in, The switch control module comprises: a switch unit, configured to control the first end to be electrically connected to the address storage module so that the slave device is in an address configuration mode; A counting unit is configured to count the device address written into the address storage module in the address configuration mode, and in response to the size of the device address counted, electrically connect the second end of the slave device to the first end of the next slave device adjacent to the slave device in series through the first signal line.
25. The slave device according to claim 24, in, The switch unit is further configured to control the first end to be electrically connected to the data processing module so that the slave device and the master device perform data transmission.
26. The slave device according to claim 23, in, The switch control module is further configured to determine whether the slave device is a target slave device according to a matching result between the device address of the address storage module and the first data packet, In response to the slave device being the target slave device, the switch control module controls the data processing module to turn on; In response to the slave device not being the target slave device, the switch control module controls the data processing module to shut down and transmits the first data packet to the next slave device in the series connection with the slave device. Slave device.
27. The slave device according to any one of claims 16 to 26, in, The address storage module includes a read-only memory.
28. The slave device according to any one of claims 23 to 26, in, The data processing module comprises: a first register unit configured to store data received from the master device; The first signal modulation unit is connected to the first register unit and is configured to process data received from the master device.
29. The slave device according to any one of claims 23 to 26, in, The data processing module comprises: A sampling unit configured to obtain sampling data; The second register unit is connected to the sampling unit and is configured to store the sampling data to be sent to the master device.
30. The slave device according to any one of claims 16 to 26, further comprising: include: The control end is configured to be connected to a device to be controlled, wherein the device to be controlled includes an LED or a touch unit.
31. The slave device according to claim 30, in, The LED includes at least one of a micro-LED and a mini-LED.
32. An address configuration method for an electronic system as claimed in claim 1, in, The first signal line is an address configuration line, and the method includes: Connecting the master device and the multiple slave devices in series in sequence through the address configuration line, wherein a first slave device among the multiple slave devices is connected to the master device through the address configuration line; The plurality of slave devices respectively receive and configure the plurality of device addresses corresponding to the plurality of slave devices from the master device.
33. The address configuration method according to claim 32, further comprising: include: The master device sequentially allocates a plurality of device addresses to the plurality of slave devices through the address configuration lines.
34. The address configuration method according to claim 33, in, The step of sequentially connecting the master device and the plurality of slave devices in series through the address configuration lines comprises: Connecting the first end of the first slave device to the master device via the address configuration line; The second end of each slave device in the plurality of slave devices is electrically connected to the To the first end of the next slave device adjacent to each slave device in series.
35. The address configuration method according to claim 34, in, The step of serially connecting the master device and the plurality of slave devices via the address configuration line further comprises: The second terminal of the last slave device among the plurality of slave devices is left floating.
36. The address configuration method according to claim 32, further comprising: include: Detecting whether the address storage module of the slave device is empty; In response to the address storage module of the slave device being empty, the slave device receives a device address corresponding to the slave device from the master device, and stores the device address assigned by the master device in the address storage module; In response to completing configuration of the device address of the slave device, the second end of the slave device is electrically connected to the first end of the next slave device adjacent to the slave device in series through the address configuration line.
37. The address configuration method according to claim 32, further comprising: include: Detecting a level state of a first end of the slave device connected to the address configuration line; In response to the first end of the slave device connected to the address configuration line being pulled high, the slave device receives and configures a device address corresponding to the slave device from the master device; In response to completing configuration of the device address of the slave device, the second end of the slave device is electrically connected to the first end of the next slave device adjacent to the slave device in series through the address configuration line.
38. A data transmission method of an electronic system as claimed in claim 1, include: The plurality of slave devices receive a first data packet from the master device; selecting a target slave device from the plurality of slave devices according to the first data packet; Data transmission between the target slave device and the master device is achieved according to the first data packet.
39. The data transmission method according to claim 38, in, The first signal line serves as a first data transmission line, The multiple slave devices receiving a first data packet from the master device include: The plurality of slave devices receive the first data packet from the master device through the first signal line multiplexed as the first data transmission line.
40. The data transmission method according to claim 38, in, The electronic system further comprises a first data transmission line independent of the first signal line, wherein the plurality of slave devices are connected in parallel with the master device via the first data transmission line independent of the first signal line. The multiple slave devices receiving a first data packet from the master device include: The plurality of slave devices receive the first data packet from the master device through the first data transmission line.
41. The data transmission method according to claim 38, in, The selecting a target slave device from the plurality of slave devices according to the first data packet comprises: Obtaining the address bits in the first data packet; determining whether the device address of the slave device matches the address bit, If the device address of the slave device matches the address bits, selecting the slave device as the target slave device, If the device address of the slave device does not match the address bit, it is determined whether the device address of the next slave device adjacent to the slave device in series matches the address bit.
42. The data transmission method according to claim 38, further comprising: include: The plurality of slave devices receive a control word from the master device; Data transmission between the target slave device and the master device is achieved according to the control word.
43. The data transmission method according to claim 42, in, The implementing of data transmission between the target slave device and the master device according to the control word comprises: Selecting the direction of data transmission according to the read / write flag in the control word; Writing the data recorded by the data bits in the first data packet into the target slave device via the first data transmission line, or, The second data packet obtained from the target slave device is sent to the master device through the first data transmission line.
44. The data transmission method according to claim 42, in, The implementing of data transmission between the target slave device and the master device according to the control word comprises: Selecting the direction of data transmission according to the read / write flag in the control word; Writing the data recorded by the data bits in the first data packet into the target slave device via the first data transmission line, or, The second data packet obtained from the target slave device is sent to the master device through the second data transmission line.
45. The data transmission method according to claim 42, in, The step of implementing data transmission between the target slave device and the master device according to the control word further includes: Select the length of the transmitted data according to the data length extension bit in the control word; or, Select the length of the device address according to the address length extension bit in the control word; or, The number of target slave devices is selected according to the target slave device number extension bit in the control word.
46. The data transmission method according to claim 38, further comprising: include: A preset time interval for data transmission is set according to the number of the plurality of slave devices.
47. The data transmission method according to claim 38, further comprising: include: controlling data transmission according to a clock signal of the clock signal line; When the clock signal is a start clock signal, starting the data transmission at a start identification bit corresponding to the start clock signal; When the clock signal is an end clock signal, the data transmission ends at an end mark corresponding to the end clock signal.
48. An electronic device comprising the electronic system as claimed in any one of claims 1 to 15.
Citation Information
Cited By
Communication method based on bidirectional double lines, optical driving circuit and related equipment
CN119559911A
Serial multi-chip communication device applied to signal chain chip and corresponding method
CN120371753A
Data communication method, device and equipment based on line concentration equipment
CN120639847A
