Data communication system and slave device
By using at least three systems to connect the master and slave devices in the SPI daisy chain mode, the clock signal waveform passivation problem caused by the increase in the number of slave devices is solved, and synchronous communication can be carried out regardless of the number of high-speed communication. .
Patent Information
- Application Number
- CN202410572062.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-11
- Filing Date
- 2024-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
In a structure following the SPI daisy chain mode, when the number of slave devices increases, the waveform passivation of the serial clock signal leads to limited high-speed communication, limiting the number of slave devices.
Use at least three systems to connect the master device and slave device to transmit clock signals, write data signals and read data signals. The clock signal and data signals are transmitted between the slave devices connected in cascade to ensure the clock. The waveform passivation of the signal is suppressed within a specified range and communication is achieved synchronously with the clock signal.
Regardless of the number of slave devices, high-speed communication can be carried out, avoiding clock signal waveform passivation and delay problems, and ensuring communication synchronization and efficiency.
Smart Images

Figure CN118939580A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data communication system for performing data communication between a host device and a plurality of slave devices, and the slave devices. Background Art
[0002] In recent years, display devices using light emitting elements such as light emitting diodes (LEDs) and laser diodes (LDs) as backlights of pixels or liquid crystal display panels have been commercialized.
[0003] Furthermore, a lighting device is proposed, which can use a controller (host device) to individually control the plurality of lighting units (slave devices) including LEDs or LDs, etc. (see, for example, Patent Document 1). In this lighting device, the controller and the plurality of lighting units are connected in a daisy chain via communication cables. The controller sends a sequence of lighting data pieces (data packets) for specifying the lighting color or brightness of each lighting unit to one lighting unit. Each lighting unit includes a communication circuit, and when receiving the sequence of lighting data pieces, it extracts the lighting data corresponding to itself from the sequence of lighting data pieces, and controls the light-emitting element based on the lighting data.
[0004] As such a communication system, a serial peripheral interface (SPI) is known. The SPI is a type of serial bus specification and uses the following four signal lines to perform communication between a host device and a plurality of slave devices.
[0005] CLK: serial clock
[0006] MISO: master in slave out
[0007] MOSI: master out slave in
[0008] CS:Chip select
[0009] Furthermore, SPI discloses a daisy chain method in which a master device and a plurality of slave devices are daisy chain-connected via four terminals in charge of input or output of the four signal lines provided respectively.
[0010] Figure 1 In the embodiment, a plurality of slave devices (SLV) are cascade-connected to a host device (MCU).
[0011] The master device has an output terminal CS, an output terminal CLK, an output terminal MOSI, and an input terminal MISO. Each slave device has an input terminal CS, an input terminal CLK, an input terminal MOSI, and an output terminal MISO.
[0012] Here, the output terminal CS of the master device and the input terminal CS of each slave device are connected via a single wiring, and the output terminal CLK of the master device and the input terminal CLK of each slave device are connected via a single wiring.
[0013] The input terminal MOSI of the first-stage slave device among the cascade-connected slave devices is connected to the output terminal MOSI of the master device, and the output terminal MISO of the last-stage slave device among the cascade-connected slave devices is connected to the input terminal MISO of the master device.
[0014] Furthermore, between a pair of slave devices connected to each other, an output terminal MISO of a preceding slave device is connected to an input terminal MOSI of a succeeding slave device.
[0015] Here, the master device supplies a chip select signal from its own output terminal CS to the input terminal CS of each slave device, and supplies a serial clock signal from its own output terminal CLK to the input terminal CLK of each slave device.
[0016] The master device sends the sequence of data slices corresponding to each slave device from its own output terminal MOSI to the input terminal MOSI of the first slave device. At this time, when each slave device from the first to the last stage receives the sequence of data slices using the input terminal MOSI, it imports the data slice corresponding to itself and sets the action state according to the data slice. Furthermore, at this time, each slave device sends the sequence of received data slices from its own output terminal MISO to the input terminal MOSI of the next-level slave device. Thus, in the order of the first to the last stage slave devices, the data slices for setting their own states are supplied to each slave device.
[0017] Furthermore, each slave device serializes the sensor data, etc., obtained by itself and sends the signal to the input terminal MOSI of the slave device at the next level via its own output terminal MISO. Thus, a serial signal including a sequence of sensor data pieces obtained by each slave device is supplied to the input terminal MOSI of the slave device at the last level. At this time, the slave device at the last level adds the data of the sensor data piece obtained by itself to the serial signal received by the input terminal MOSI and supplies it to the host device from its own output terminal MISO. Thus, the host device can collect the sensor data respectively obtained by the slave devices at the first to last levels.
[0018] According to the daisy chain mode of the SPI, regardless of the number of slave devices, multiple slave devices can be controlled and data can be acquired from each slave device through four-system wiring.
[0019] [Prior art literature]
[0020] [Patent Document]
[0021] Patent Document 1: Japanese Patent Application Publication No. 2009-129685 Summary of the invention
[0022] [Problems to be solved by the invention]
[0023] However, in the structure following the SPI daisy chain mode, when the number of slave devices increases, the load capacity connected to the single wiring for transmitting the serial clock signal (CLK) will increase accordingly, so that the waveform of the serial clock signal is blunted. Therefore, there is a problem that in order to achieve high-speed communication, the number of slave devices connected to the host device is limited.
[0024] Therefore, an object of the present invention is to provide a data communication system and a slave device that can perform high-speed communication regardless of the number of slave devices connected to a master device.
[0025] [Technical means to solve the problem]
[0026] The communication system of the present invention includes a host device, a first slave device connected to the host device, and a second slave device to an Nth (N is an integer greater than 2) slave device cascade-connected to the first slave device, wherein the host device and adjacent devices among the first slave device to the Nth slave device are connected by using at least three systems of wiring, namely, wiring for transmitting clock signals, wiring for transmitting write data signals, and wiring for transmitting read data signals.
[0027] The slave device of the present invention includes: a first input terminal for receiving a write data signal; a second input terminal for receiving a read data signal; a third input terminal for receiving a clock signal; a first output terminal to a third output terminal; a write data transceiver circuit, which imports a write data piece corresponding to itself from the write data signal received by using the first input terminal, and outputs a new write data signal obtained by omitting the write data piece corresponding to itself from the write data signal from the first output terminal; and a read data transceiver circuit, which outputs a new read data signal obtained by adding a read data piece read from itself to the read data signal received by using the second input terminal from the second output terminal, and the slave device outputs the clock signal received by the third input terminal through internal transmission from the third output terminal.
[0028] [Effects of the Invention]
[0029] In the data communication system of the present invention, the host device sends a clock signal together with a write data signal including first to N-th write data slices corresponding to the first to N-th slave devices respectively connected in cascade to the first slave device to the N-th slave device (N is an integer greater than 2). The first to N-th slave devices each receive the sent clock signal, transmit it internally, and send it to the secondary slave device. The first to N-th slave devices each shift and import the sequence of the first to N-th write data slices contained in the write data signal at the timing of the clock signal received by themselves, and shift the read data signal including the sequence of read data slices read from themselves at the timing of the clock signal received by themselves and send it to the host device via the first slave device.
[0030] According to this data communication system, since the load connected to the wiring for transmitting the clock signal is only a single slave device, the waveform blunting of the clock signal can be suppressed to be less than a prescribed value regardless of the number of slave devices connected in cascade.
[0031] Furthermore, according to this data communication system, the clock signal received by the final-stage N-th slave device is delayed relative to the clock signal output from the master device, that is, the clock signal received by the first slave device.
[0032] However, in the present data communication system, communication between the host device and the first slave device to the Nth slave device is established through communication between the host device and the first slave device corresponding to a clock signal output from the host device, and communication corresponding to a clock signal output from one of the slave devices adjacent to each other.
[0033] Therefore, even if the clock signal received by the final N-th slave device is delayed by the number of cascaded slave stages relative to the clock signal output from the master device, communication in synchronization with the clock signal is possible.
[0034] Therefore, according to the present invention, high-speed communication can be performed regardless of the number of slave devices connected to the master device. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a block diagram showing a conventional SPI daisy chain connection.
[0036] Figure 2 1 is a block diagram showing a configuration of a data communication system 100 , which is an example of a data communication system according to the present invention.
[0037] Figure 3 1 is a timing chart showing an example of the specifications of the communication format and timing in the data communication system 100 .
[0038] Figure 4 FIG. 2 is a timing chart showing another example of the specifications of the communication format and timing in the data communication system 100 .
[0039] Figure 5 It means according to Figure 4 A timing diagram of a signal format transmitted between the master device 10 and each of the slave devices 20_1 to 20_N according to the specification.
[0040] Figure 6 It is a block diagram showing an example of the configuration of each of the slave devices 20_1 to 20_N.
[0041] Figure 7 This is a block diagram showing the internal structure of the counter decoder CD1 (CD2).
[0042] Figure 8 1 is a block diagram showing a configuration of a data communication system 200 as another example of the data communication system of the present invention.
[0043] Fig. 9 It means according to Figure 4 A timing diagram of a signal format transmitted between the master device 10A and each of the slave devices 20A_1 to 20A_N according to the standard.
[0044] Fig.10 It is a block diagram showing an example of the configuration of the slave devices 20A_1 to 20A_N.
[0045] Fig.11This is a plan view of a substrate 50 on which a semiconductor chip C10 including a master device 10A and semiconductor chips C20_1 to C20_N including slave devices 20A_1 to 20A_N are mounted, as viewed from the upper surface side.
[0046] Fig.12 This is a side view of a substrate 50A having an electrode layer ED in the substrate and on which the semiconductor chip C10 and the semiconductor chips C20_1 to C20_N are mounted, as viewed from the side surface.
[0047] [Explanation of Symbols]
[0048] 10, 10A: Host device
[0049] 20_1~20_N、20A_1~20A_N:Slave devices
[0050] 21, 21A: Write data transceiver circuit
[0051] 25, 25A: Read data transceiver circuit
[0052] 26, 27: Buffer
[0053] 100, 200: Data communication system DETAILED DESCRIPTION
[0054] [Example 1]
[0055] Figure 2 1 is a block diagram showing a configuration of a data communication system 100 , which is an example of a data communication system according to the present invention.
[0056] The data communication system 100 includes a master device (MST) 10 and slave devices (SLV) 20_1 to 20_N (N is an integer greater than or equal to 2) that communicate in the form of serial signals based on the SPI (Serial Peripheral Interface) standard.
[0057] The host device 10 includes an input terminal MISO for MISO (Master Input Slave Output), an output terminal MOSI for MOSI (Master Output Slave Input), and an output terminal CLK for sending a serial clock signal.
[0058] The host device 10 sends a write data signal SI[1] from the output terminal MOSI to the slave device 20_1. The write data signal SI[1] is written to each slave device 20_1 to the slave device 20_N and represents a sequence of, for example, eight bits of write data in the form of a serial signal. In addition, the host device 10 uses the input terminal MISO to receive a read data signal SO[1]. The read data signal SO[1] is read from each slave device 20_1 to the slave device 20_N and represents a sequence of, for example, eight bits of read data in the form of a serial signal. Furthermore, the host device 10 sends a clock signal CLK[1] as a serial clock signal from the output terminal CLK to the slave device 20_1.
[0059] Each of the slave devices 20_1 to 20_N is set to operate based on the state of the write data piece corresponding to itself contained in the write data signal, and includes a functional circuit having a function of acquiring a data piece to be the read data piece.
[0060] The slave devices 20_1 to 20_N are connected to the master device 10 by Figure 2 As shown, the first to Nth devices are connected in series, that is, they are cascade connected.
[0061] Each slave device 20_1 to slave device 20_N has an input terminal CLK for receiving a clock signal CLK and an output terminal CLKO for supplying the clock signal CLK received by the input terminal CLK to the input terminal CLK of the next slave device via a buffer. In addition, the output terminal CLKO of the Nth (last) slave device 20_N is in an open state.
[0062] Each of the slave devices 20_1 to 20_N has an input terminal SDI for receiving a read data signal SO sent from a previous device and an output terminal MISO for outputting a read data signal SO including its own read data piece. The input terminal SDI of the slave device 20_N of the Nth stage is in a fixed state of logic level 0 or 1.
[0063] Here, each slave device except the first-stage (primary) slave device 20_1 among the slave devices 20_1 to 20_N supplies the read data signal SO output from its own output terminal MISO to the input terminal SDI of the previous-stage slave device. In addition, the first-stage slave device 20_1 supplies the read data signal SO[1] output from its own output terminal MISO to the input terminal MISO of the host device 10.
[0064] Furthermore, each slave device 20_1 to slave device 20_N has an input terminal MOSI for receiving a write data signal SI, and an output terminal SDO for outputting the write data signal SI without its own write data slice to the input terminal MOSI of the next slave device. In addition, the output terminal SDO of the N-th slave device 20_N is in an open state. Here, the first-stage slave device 20_1 uses its own input terminal MOSI to receive the write data signal SI[1] sent from the host device 10.
[0065] Therefore, if Figure 2 The kth (k is an integer greater than or equal to 2) slave device 20_k among the slave devices 20_1 to 20_N connected in cascade as shown receives the write data signal SI[k] outputted from the previous slave device 20_(k-1) by using the input terminal MOSI, and imports the write data signal SI[k] at the timing of the clock signal CLK[k] received by using the input terminal CLK. Furthermore, the slave device 20_k outputs the write data signal SI[k+1] obtained by omitting its own write data slice from the write data signal SI[k] to the next slave device 20_(k+1) from the output terminal SDO at the timing of the clock signal CLK[k]. Furthermore, the slave device 20_k outputs the clock signal CLK[k] as the clock signal CLK[k+1] from the output terminal CLKO to the next slave device 20_(k+1) via the buffer.
[0066] Furthermore, the k-th slave device 20_k receives the read data signal SO[k+1] output from the slave device 20_(k+1) at the next stage by using the input terminal SDI, and imports the read data signal SO[k+1] at the timing of the clock signal CLK[k]. Furthermore, the k-th slave device 20_k outputs the read data signal SO[k] obtained by adding the read data piece read from itself to the read data signal SO[k+1] from the output terminal MISO to the slave device 20_(k-1) at the previous stage.
[0067] Figure 3 1 is a timing chart showing an example of the specifications of the communication format and timing in the data communication system 100 .
[0068] Figure 3 In the example shown, communication between the master device 10 and the slave devices 20_1 to 20_N is performed in each frame of a predetermined cycle.
[0069] That is, the host device 10 outputs the write data signal SI[1] from the output terminal MOSI to the slave device 20_1 in each frame, wherein the write data signal SI[1] includes the first to Nth write data pieces each including, for example, eight bits, which are written to the slave devices 20_1 to 20_N, respectively.
[0070] Nth, (N-1), (N-2), ..., third, second, first
[0071] A sequence of written data slices arranged in order.
[0072] Thus, for example, the Nth write data piece is shifted from the slave device 20_1 toward the slave device 20_N and reaches the slave device 20_N at the Nth level, and is imported into each slave device 20. That is, the kth (k is 1, 2, 3, ..., N) write data piece is shifted from the slave device 20_1 toward the slave device 20_N and reaches each slave device 20_k at the kth level, and the slave device 20_k imports the kth write data piece corresponding to itself.
[0073] and then, Figure 3 In the example shown, in each frame of a predetermined period, the slave device 20_1 provides a read data signal SO[1] at the start time point ( Figure 3 t0, t1, t2) as shown in the figure are output to the host device 10, and the read data signal SO[1] includes the first read data piece to the Nth read data piece, each of which contains, for example, four bits, read from each slave device 20_1 to the slave device 20_N.
[0074] 1st, 2nd, 3rd, ..., (N-2nd), (N-1st), Nth
[0075] The host device 10 receives the read data signal SO[1] using the input terminal MISO.
[0076] As described above, according to the data communication system 100 , the host device 10 can simultaneously transmit write data signals to the slave devices 20_1 to 20_N and receive read data signals read from the slave devices 20_1 to 20_N.
[0077] In addition, the master device 10 may also perform the following operations during the period when it is not communicating with the slave devices 20_1 to 20_N. Figure 3 As shown in FIG. 1 , the supply of the clock signal CLK to the slave device 20_1 is stopped. However, when the master device 10 starts communicating with the slave devices 20_1 to 20_N, as shown in FIG. Figure 3As shown, the supply of the clock signal CLK starts from a time point before the time point t0 at which communication starts.
[0078] Furthermore, the number of bits of each write data piece and read data piece can be appropriately and individually set according to the specification.
[0079] and, Figure 3 In the example shown, in each frame of a predetermined period, within the frame, the sequence of the Nth write data piece to the first write data piece output by the host device 10 and the sequence of the first read data piece to the Nth read data piece output by the slave device 20_1 to the slave device 20_N start at the same timing. However, the output start timing of both does not necessarily need to be the same, and the output can also be started at independent timings.
[0080] Figure 4 FIG. 2 is a timing chart showing another example of the communication format and timing specifications of the data communication system 100 completed in view of this point.
[0081] Figure 4 In the example shown, Figure 3 Likewise, communication between the master device 10 and the slave devices 20_1 to 20_N is performed in each frame of a predetermined cycle.
[0082] At this time, the host device 10 will be in each frame with Figure 3 The write data signal SI[1] including the sequence of the Nth write data piece to the first write data piece is output from the output terminal MOSI to the slave device 20_1. Furthermore, the slave device 20_1 transmits the same data piece as the Nth write data piece to the slave device 20_1 in each frame. Figure 3 The read data signal SO[1] including the sequence of the first to Nth read data pieces is output to the host device 10. The host device 10 receives the read data signal SO[1] using the input terminal MISO.
[0083] but, Figure 4 In the example shown, in each frame, at the time point (tr0, tr1) when the Nth write data slice to the first write data slice are written in the slave devices 20_1 to 20_N respectively, the slave device 20_1 starts to output the sequence of the first read data slice to the Nth read data slice.
[0084] Right now, Figure 4In the specification shown, the host device 10 controls, in each frame, for the slave devices 20_1 to 20_N, to start reading the first read data slice to the Nth read data slice after the writing of the Nth write data slice to the first write data slice is completed. In addition, the host device 10 may also control, in each frame, for the slave devices 20_1 to 20_N, to transfer to the writing operation of the Nth write data slice to the first write data slice after the reading of the first read data slice to the Nth read data slice is completed. In short, the host device 10 may also control, in each frame, for the slave devices 20_1 to 20_N, to perform the other operation after one of the read operation and the write operation is completed.
[0085] Figure 5 It means according to Figure 4 A timing diagram of a signal format within a frame of a predetermined period transmitted between the master device 10 and each of the slave devices 20_1 to 20_N in accordance with the specification.
[0086] In addition, each of the slave devices 20_1 to 20_N sets the time point when the clock signal CLK changes from the state of maintaining the logic level 1 to the logic level 0 as the writing start timing of the writing data slice.
[0087] First, the host device 10 adds the identification code HD to the beginning of the sequence of write data d(N), write data d(N-1), ..., write data d(3), write data d(2), and write data d(1) written to each slave device 20_N to slave device 20_1 as a write data signal SI[1] and outputs it to the first-level slave device 20_1. In addition, the host device 10 outputs the identification code HD indicating the cascade number "N" of the slave devices connected to the host device 10 as shown in FIG. Figure 5 As shown, it is added to the beginning of the write data signal SI[1].
[0088] Each slave device 20_1 to slave device 20_N imports the cascade number indicated by the identification code HD at the head of the write data signal SI received from the device at the previous stage. Here, each slave device 20_1 to slave device 20_N sets the time point when the number of clock pulses becomes equal to the number obtained by multiplying the cascade number indicated by the identification code HD by the number of bits of the write data slice (e.g., eight bits) from the time point when the clock signal CLK is supplied from the host device 10 as the data write completion timing. Each slave device 20_1 to slave device 20_N imports the write data signal SI received from the device at the previous stage at the data write completion timing, thereby importing only the write data slice corresponding to itself from the sequence of write data slices contained in the write data signal SI.
[0089] Furthermore, each slave device 20_1 to slave device 20_N obtains a sequence of write data slices excluding the write data slice corresponding to itself from the write data signal SI received from the previous device, and outputs the write data signal SI with a new identification code HD added to the head thereof to the next slave device 20. That is, each slave device 20_1 to slave device 20_N adds an identification code HD indicating a new cascade number obtained by subtracting 1 from the cascade number indicated by the identification code HD included in the write data signal SI received from the previous device, to the head of the sequence of write data slices excluding the write data slice corresponding to itself.
[0090] Here, for the slave devices 20_1 to 20_N, when the writing of all the write data d(N), write data d(N-1), ..., write data d(3), write data d(2), and write data d(1) is completed, each of the slave devices 20_1 to 20_N reads out the data slices obtained by itself as read data slices. For example, the slave device 20_1 reads out the data slices obtained by itself as read data b(1), the slave device 20_2 reads out the data slices obtained by itself as read data b(2), and the slave device 20_N reads out the data slices obtained by itself as read data b(N).
[0091] Furthermore, the slave device 20_k (k is 1, 2, 3, ..., N) starts the read operation as described below, that is, the read data signal SO[k] obtained by adding its own read data b(k) to the beginning of the sequence of read data slices contained in the read data signal SO[k+1] received from the secondary slave device 20_(k+1) is output to the previous device at the timing of the clock signal CLK[k].
[0092] Thus, the first-stage slave device 20_1 outputs a read data signal SO[1] to the host device 10, wherein the read data signal SO[1] includes a sequence of read data b(1) to read data b(N) which are data pieces acquired respectively by the slave devices 20_1 to 20_N.
[0093] The host device 10 imports the read data signal SO[1] at the timing of the clock signal CLK[1], thereby acquiring the data pieces acquired by the slave devices 20_1 to 20_N, respectively.
[0094] At this time, each slave device 20_1 to slave device 20_N stops outputting the read data signal SO at a time point when the number of clock pulses of the clock signal CLK becomes equal to the number obtained by multiplying the number of cascades obtained during writing by the number of bits of the read data piece. Thus, the first-stage (primary) slave device 20_1 automatically stops outputting the read data b2 to the read data b(N) of the second-stage slave device 20_2 to the Nth-stage (final) slave device 20_N to the host device 10.
[0095] In this way, Figure 5 In the operation shown, an identification code HD indicating the cascade number is added to the head of the write data signal SI, and the data write timing itself is acquired based on the cascade number.
[0096] Thus, each of the slave devices 20_2 to 20_N can be operated individually without using the chip select signal CS expressed by the SPI standard. Therefore, the chip select signal CS is not required, and the area of the entire data communication system can be reduced accordingly.
[0097] in addition, Figure 5 In the example, the signal format is shown as follows, that is, for slave devices 20_1 to 20_N, after the writing of the to-be-written data signal SI is completed, the read data signal SO is read, but the same is also applicable when the writing of the to-be-read data signal SO is transferred to the writing of the write data signal SI after the reading of the to-be-read data signal SO is completed. At this time, an identification code HD indicating the cascade number is added to the head of the sequence of the read data contained in the read data signal SO. In short, when the write action and the read action are continuously performed in each frame, it is sufficient to add the identification code HD indicating the cascade number of the slave devices 20_1 to 20_N to the head of the data sequence executed first.
[0098] Furthermore, the slave devices 20_1 to 20_N have the same circuit configuration.
[0099] Figure 6 It is a block diagram showing an example of the configuration of each of the slave devices 20_1 to 20_N.
[0100] Each of the slave devices 20_1 to 20_N includes a drive circuit 30 that functions as a current output circuit included in a driver that drives a load such as a light emitting diode (LED) backlight of a liquid crystal display or an illumination LED.
[0101] The drive circuit 30 generates a drive signal having a drive current for driving the load externally provided at the output terminal OPG based on the write data piece outputted from the host device 10 and specifying the current value of the drive current and its output timing, and outputs the drive signal from the output terminal OPG. In addition, the drive circuit 30 includes a sensor SE as an information acquisition circuit, and the sensor SE detects the temperature, output voltage or current, etc. in the driver, and obtains sensor data (information data) representing the detected value, for example, in the form of an eight-bit digital value. At this time, the drive circuit 30 reads the sensor data detected by the sensor SE.
[0102] Moreover, each slave device 20_1 to slave device 20_N has an input terminal MOSI for inputting a write data signal SI, an output terminal SDO for outputting the write data signal SI, an input terminal SDI for inputting a read data signal SO, an output terminal MISO for outputting the read data signal SO, an input terminal CLK for inputting a clock signal CLK, and an output terminal CLKO for outputting the clock signal CLK.
[0103] Furthermore, each of the slave devices 20_1 to 20_N includes a write data transceiver circuit 21 , a control circuit (CNT) 22 , registers 23 and 24 , a read data transceiver circuit 25 , and a buffer 26 .
[0104] The write data transceiver circuit 21 includes a cascade number (CN) acquisition unit DET, a counter decoder CD1, and a subtraction circuit SS. Furthermore, the write data transceiver circuit 21 has a shift register SF1 that imports the write data signal SI input to the input terminal MOSI at the timing of the clock signal CLK received by the input terminal CLK.
[0105] The cascade number acquisition unit DET detects the identification code HD from the write data signal SI introduced into the shift register SF1, and supplies the cascade number indicated by the identification code HD as the cascade number cn to the counter decoder CD1, the subtraction circuit SS, and the read data transceiver circuit 25. Furthermore, when the identification code HD is detected, the cascade number acquisition unit DET supplies the count enable signal ce1 to the counter decoder CD1.
[0106] Figure 7 It is a block diagram showing the internal structure of the counter decoder CD1.
[0107] The counting decoder CD1 includes a clock counter 101 , a comparison circuit 102 , a comparison circuit 103 , and a chip number counter 104 .
[0108] The clock counter 101 initializes the count value to zero according to the count enable signal ce1, and then starts counting the number of clock pulses of the clock signal CLK, and supplies the count value to the comparison circuit 102. The comparison circuit 102 receives a fixed data bit number Wdn indicating the number of bits of the written data slice, and determines whether the number of bits of the written data slice indicated by the data bit number Wdn is consistent with the count value supplied from the clock counter 101. At this time, if the comparison circuit 102 determines that the two are consistent, it supplies a consistent signal including a single pulse to the chip number counter 104. The chip number counter 104 counts the number of pulses including the consistent signal, and supplies the count value as the remaining cascade number cnz to the comparison circuit 103. The comparison circuit 103 determines whether the remaining cascade number cnz is consistent with the cascade number cn indicated by the identification code HD, and outputs a completion signal fn if it is determined that the two are consistent.
[0109] With this structure, when the identification code HD is detected from the write data signal SI, the count decoder CD1 counts the number of clock pulses of the clock signal CLK, and when the count value thereof matches the result obtained by multiplying the cascade number cn indicated by the identification code HD by the number of bits of the write data slice indicated by the number of data bits Wdn, the count decoder CD1 outputs a completion signal fn.
[0110] Then, the counter decoder CD1 supplies the completion signal fn to the shift register SF1 and the control circuit 22 .
[0111] The subtraction circuit SS generates an identification code HD indicating a number obtained by subtracting "1" from the cascade number cn supplied from the cascade number acquisition unit DET as a new cascade number, and supplies the identification code HD to the shift register SF1.
[0112] The shift register SF1 shifts and imports the sequence of write data slices contained in the write data signal SI input to the input terminal MOSI bit by bit in synchronization with the clock signal CLK. Furthermore, the shift register SF1 adds the identification code HD supplied from the subtraction circuit SS to the head of the sequence of the imported write data slices as a new write data signal SI in a serial form and outputs it from the output terminal SDO. Furthermore, the shift register SF1 converts each of the imported serial write data slices into a parallel signal form and outputs it to the register 23 in sequence. In addition, the shift register SF1 initializes the data imported into itself (for example, sets all bits to a logic level 1) according to the completion signal fn. Thus, a new write data signal SI is output from the output terminal SDO, and the new write data signal SI includes a sequence of write data slices obtained by omitting only its own write data slice from the sequence of write data slices contained in the write data signal SI input to the input terminal MOSI.
[0113] The control circuit 22 supplies the write command signal wt to the register 23 and supplies the count enable signal ce2 to the read data transceiver circuit 25 according to the completion signal fn. Furthermore, the control circuit 22 supplies various control signals for controlling the drive circuit 30 to the drive circuit 30.
[0114] The register 23 holds only the write data piece outputted at the timing of the write instruction signal wt among the write data pieces outputted from the shift register SF1, and supplies it to the drive circuit 30. Thus, the drive circuit 30 generates a drive current having a current value according to the write data piece supplied from the register 23, and outputs it to the load externally provided at the output terminal OPG at the output timing specified by the write data piece.
[0115] The register 24 holds the sensor data piece detected by the sensor SE, and supplies it to the read data transceiver circuit 25 .
[0116] The read data transceiver circuit 25 includes a counter decoder CD2 and a shift register SF2.
[0117] The counter decoder CD2 has the same internal structure as the counter decoder CD1, namely Figure 7 At this time, the counter decoder CD2 receives the count enable signal ce2 from the control circuit 22 to replace the count enable signal ce1, and receives the data bit number Rdn representing the number of bits of the read data slice to replace the data bit number Wdn. Furthermore, the counter decoder CD2 supplies the completion signal stp to the shift register SF2 instead of the completion signal fn.
[0118] Therefore, the counting decoder CD2 counts the number of clock pulses of the clock signal CLK according to the counting enable signal ce2, and when its count value is consistent with the result obtained by multiplying the cascade number cn indicated by the identification code HD by the number of bits of the read data piece indicated by the data bit number Rdn, the completion signal stp is supplied to the shift register SF2.
[0119] The shift register SF2 imports the sensor data piece supplied from the register 24 as its own read data piece. Then, the shift register SF2 shifts the read data piece of its own bit by bit in synchronization with the clock signal CLK and outputs it in a serial form, and shifts the sequence of the read data piece contained in the read data signal SO input to the input terminal SDI bit by bit in synchronization with the clock signal CLK and imports it in a serial form. Thus, the shift register SF2 outputs a serial signal representing the sequence of the read data piece contained in the read data signal SO input to the input terminal SDI after its own read data piece as the read data signal SO from the output terminal MISO.
[0120] When receiving the completion signal stp from the counter decoder CD2, the shift register SF2 resets the imported contents and stops its shifting operation.
[0121] The buffer 26 amplifies the clock signal CLK received at the input terminal CLK and outputs the amplified clock signal CLK from the output terminal CLKO.
[0122] In addition, the write data transceiver circuit 21 and the read data transceiver circuit 25 may also include a first-in first out (FIFO) memory or the like.
[0123] [Example 2]
[0124] Figure 8 1 is a block diagram showing a configuration of a data communication system 200 as another example of the data communication system of the present invention.
[0125] The data communication system 200 uses a master device 10A and slave devices 20A_1 to 20A_N instead of the master device 10 and slave devices 20_1 to 20_N of the data communication system 100 .
[0126] In addition, the master device 10A and the slave devices 20A_1 to 20A_N add a write and read control function using the chip select signal CS to the master device 10 and the slave devices 20_1 to 20_N.
[0127] That is, relative to Figure 2In the host device 10 shown, the host device 10A further includes an output terminal CS for outputting a chip select signal CS, and the chip select signal CS[1] is output from the output terminal CS to the slave device 20A_1. Each of the slave devices 20A_1 to 20A_N has an input terminal CS for receiving the chip select signal CS output from the device at the previous stage; and an output terminal CSO for outputting the chip select signal CS obtained by amplifying the chip select signal using a buffer. That is, the slave device 20A_k (k is 1, 2, 3, ..., N) receives the chip select signal CS[k] output from the device at the previous stage using its own input terminal CS, and outputs the chip select signal CS[k+1] obtained by amplifying it to the input terminal CS of the slave device 20A_(k+1) at the next stage. In addition, the output terminal CSO of the slave device 20A_N at the Nth stage (the last stage) is in an open state.
[0128] When the received chip select signal CS indicates, for example, logic level 0, each slave device 20A_1 to slave device 20A_N performs the following write operation as described above, i.e., the sequence of write data d(1) to write data d(N) is shifted bit by bit and introduced, and only the write data slice corresponding to itself is written from the sequence of write data d(1) to write data d(N). In addition, at this time, each slave device 20A_1 to slave device 20A_N outputs the sequence of write data slices excluding the write data slice corresponding to itself from the sequence of write data d(1) to write data d(N) to the next slave device 20A.
[0129] On the other hand, when the received chip select signal CS indicates, for example, a logic level of 0, each slave device 20A_1 to slave device 20A_N performs a read operation as described below, i.e., a sequence of read data segments received from the secondary slave device 20A is appended with a sequence of read data segments read from itself, and outputted to the preceding device.
[0130] Fig. 9 It means according to Figure 4 The timing diagram of the signal format of MOSI and MISO in a frame of a predetermined period transmitted between the master device 10A and each of the slave devices 20A_1 to 20A_N.
[0131] [Communication stop status]
[0132] When the master device 10A stops communication, it outputs a clock signal CLK[1] fixed at logic level 1 (or 0) and a chip select signal CS[1] fixed at logic level 1 to the first-stage slave device 20A_1.
[0133] [Write Action]
[0134] When starting a write operation, the host device 10A first changes the chip select signal CS[1] from logic level 1 to 0. At this time, the chip select signal CS[1] passes through buffers included in the slave devices 20A_1 to 20A_(N-1) and cascade-connected between the slave devices. Fig. 9 As shown, the chip select signals CS[2] to CS[N] that change from logic level 1 to 0 are sequentially propagated to the slave devices 20A_2 to 20A_(N).
[0135] Then, the master device 10A outputs a clock signal CLK[1] and a write data signal SI[1] including a sequence of write data d(N) to write data d(1). At this time, the clock signal CLK[1] passes through buffers included in the slave devices 20A_1 to 20A_(N-1) and connected in cascade between the slave devices, and is transmitted to the slave devices 20A_2 to 20A_N as clock signals CLK[2] to CLK[N].
[0136] Thus, slave device 20A_k (k is 1, 2, 3, ..., N) shifts and imports write data signal SI[k] bit by bit at the timing of clock signal CLK[k], and outputs it as write data signal SI[k+1] to the subsequent slave device 20A_(k+1).
[0137] The host device 10A Fig. 9 When the output of the write data signal SI[1] including the sequence of write data d(N) to write data d(1) is completed, the clock signal CLK[1] is stopped (for example, fixed to the state of logic level 1), and then, as shown in FIG. Fig. 9 As shown, the chip select signal CS[1] changes from logic level 0 to 1. At this time, the slave device 20A_k (k is 1, 2, 3, ..., N) writes the write data d(k) in the received write data signal SI[k] to itself at the timing of the rising edge of the chip select signal CS[k] from logic level 0 to 1.
[0138] [Reading action]
[0139] The slave device 20A_k (k is 1, 2, 3, . . . , N) becomes capable of reading the data slice acquired by itself at the timing of the rising edge of the chip select signal CS[k].
[0140] As described above, after the master device 10A changes the chip select signal CS[ 1 ] from logic level 0 to 1, it outputs the clock signal CLK[ 1 ] to the slave device 20A_1 .
[0141] Thus, the slave device 20A_k (k is 1, 2, 3, . . . , N) reads the data piece acquired by itself as read data b[k].
[0142] Furthermore, the slave device 20A_k starts the read operation as described below, i.e., outputs the read data signal SO[k] obtained by adding its own read data b(k) to the beginning of the sequence of read data segments contained in the read data signal SO[k+1] received from the secondary slave device 20A_(k+1) to the preceding device at the timing of the clock signal CLK[k].
[0143] At this time, the host device 10A imports the read data signal SO[1] output from the first-stage slave device 20A_1 at the timing of the clock signal CLK[1], thereby obtaining the data pieces obtained by the slave devices 20A_1 to 20A_N, namely, read data b(1) to read data b(N).
[0144] Here, once the host device 10A obtains the read data b(1) to the read data b(N) included in the read data signal SO[1], it stops supplying the clock signal CLK[1].
[0145] Fig.10 It is a block diagram showing an example of the configuration of the slave devices 20A_1 to 20A_N.
[0146] Each of the slave devices 20A_1 to 20A_N includes a register 23, a register 24, a clock buffer 26, and a drive circuit 30, similarly to the slave devices 20_1 to 20_N. However, each of the slave devices 20A_1 to 20A_N replaces Figure 6 The write data transceiver circuit 21, the control circuit 22, and the read data transceiver circuit 25 shown are replaced by a write data transceiver circuit 21A, a control circuit 22A, and a read data transceiver circuit 25A, and a buffer 27 for a chip select signal is newly added.
[0147] Each of the slave devices 20A_1 to 20A_N has an input terminal MOSI, an output terminal SDO, an input terminal SDI, an output terminal MISO, an input terminal CLK, and an output terminal CLKO, similarly to the slave devices 20_1 to 20_N. Furthermore, each of the slave devices 20A_1 to 20A_N has an input terminal CS for inputting a chip select signal CS and an output terminal CSO for outputting the chip select signal CS.
[0148] The write data transmission and reception circuit 21A includes, for example, a shift register SF1A.
[0149] The shift register SF1A is set to an enabled state when the chip select signal CS received by the input terminal CS indicates a logic level of 0, for example, and is set to an disabled state when the chip select signal CS indicates a logic level of 1.
[0150] When the shift register SF1A is set to the enabled state, the sequence of write data pieces contained in the write data signal SI input to the input terminal MOSI is shifted bit by bit in synchronization with the clock signal CLK and imported. Furthermore, the shift register SF1A outputs the sequence of serial bits representing each write data piece as the write data signal SI from the output terminal SDO in the order of import. In addition, the shift register SF1A converts the imported serial bit sequence into a parallel signal corresponding to each write data piece and outputs it to the register 23 in sequence.
[0151] The control circuit 22A supplies the write instruction signal wt to the register 23 and supplies the read instruction signal rd to the read data transceiver circuit 25A at the timing of the rising edge when the chip select signal CS changes from logic level 0 to 1. Furthermore, the control circuit 22A supplies various control signals for controlling the drive circuit 30 to the drive circuit 30.
[0152] The register 23 holds only the write data piece outputted at the timing of the write instruction signal wt among the write data pieces outputted from the shift register SF1A, and supplies it to the drive circuit 30. Thus, the drive circuit 30 generates a drive current having a current value according to the write data piece supplied from the register 23, and outputs it to a load such as an LED backlight of a liquid crystal display or an LED for lighting, which is externally connected to the output terminal OPG, at the output timing specified by the write data piece.
[0153] The register 24 holds sensor data pieces acquired by the sensor SE included in the drive circuit 30 as read data pieces.
[0154] The read data transmission and reception circuit 25A includes, for example, a shift register SF2A.
[0155] The shift register SF2A is set to an enabled state when the chip select signal CS indicates a logic level of 1, for example, and is set to an disabled state when the chip select signal CS indicates a logic level of 0.
[0156] When the shift register SF2A is set to the enabled state, it imports the read data piece held in the register 24 in accordance with the read instruction signal rd supplied from the control circuit 22A.
[0157] Then, the shift register SF2A shifts the read data piece introduced bit by bit in synchronization with the clock signal CLK and outputs it, and shifts the sequence of the read data piece included in the read data signal SO input to the input terminal SDI bit by bit in synchronization with the clock signal CLK and introduces it, and outputs it in the order introduced. Thus, the shift register SF2A outputs a serial signal representing the sequence of the read data piece included in the read data signal SO input to the input terminal SDI following its own read data piece as the read data signal SO from the output terminal MISO.
[0158] The buffer 26 amplifies the clock signal CLK received at the input terminal CLK and outputs the amplified clock signal CLK from the output terminal CLKO.
[0159] The buffer 27 amplifies the chip select signal CS received at the input terminal CS and outputs the chip select signal CS from the output terminal CSO.
[0160] In addition, the write data transceiver circuit 21A and the read data transceiver circuit 25A may also include a first-in first out (FIFO) memory or the like.
[0161] also, Figure 2 The master device 10 and the slave devices 20_1 to 20_N shown in the figure or Figure 8 The master device 10A and slave devices 20A_1 to 20A_N shown are respectively formed on independent semiconductor chips, and a total of (N+1) semiconductor chips are mounted in parallel on one substrate.
[0162] Fig.11 The device is installed as viewed from the upper surface side. Figure 2 The semiconductor chip C10 of the master device 10 is shown as a plan view of a substrate 50 including semiconductor chips C20_1 to C20_N of the slave devices 20_1 to 20_N, respectively.
[0163] like Fig.11As shown, on the surface SF of the substrate 50, input terminals MISO, MOSI, and CLK are formed on one side of the semiconductor chip C10 including the host device 10. Furthermore, the semiconductor chip C10 and the semiconductor chip C20_1 are connected by wiring L1_0, wiring L2_0, and wiring L3_0, and the semiconductor chip C20_1 and the semiconductor chip C20_2 are connected by wiring L1_1, wiring L2_1, and wiring L3_1. That is, the semiconductor chips C20_k (k is 1, 2, 3, ..., N-1) and the semiconductor chip C20_(k+1) adjacent to each other among the semiconductor chips C20_1 to the semiconductor chips C20_N are connected by wiring L1_k, wiring L2_k, and wiring L3_k.
[0164] In this way, among the semiconductor chips C10 and the semiconductor chips C20_1 to C20_N arranged in a row on the front surface SF of the substrate 50 , the semiconductor chips adjacent to each other are connected to each other by three wirings.
[0165] Therefore, the wirings connecting the semiconductor chip C10 and the semiconductor chip C20_1 to the semiconductor chip C20_N do not cross each other, so all the wirings can be provided only on a single conductive layer formed on the surface SF of the substrate 50. Therefore, it is not necessary to use a multi-layer substrate as the substrate 50, so that the product cost can be reduced. In addition, even if a multi-layer substrate is used as the substrate 50, only one conductive layer is required to connect the semiconductor chips C10 and the semiconductor chips C20_1 to the semiconductor chips C20_N, so the manufacturing man-hours can be saved.
[0166] Fig.12 The side view of a substrate 50A having three conductive layers, on which a semiconductor chip C10 and semiconductor chips C20_1 to C20_N are mounted on the substrate surface SF and an electrode layer ED is provided in the substrate, is viewed from the side. According to this structure, as long as any one of the surface SF, the back surface BS or the electrode layer ED in the substrate 50A is provided as shown in FIG. Fig.11 As shown, wiring is sufficient to connect each semiconductor chip C10 and the semiconductor chips C20_1 to C20_N.
[0167] As described in detail above, the data communication system (100, 200) of the present invention comprises: a host device (10, 10A); and a first slave device (20_1, 20A_1) connected to the host device and a second slave device to an Nth slave device (N is an integer greater than or equal to 2) (20_2 to 20_N, 20A_2 to 20A_N) cascade-connected to the first slave device. At this time, the host device and the first slave device and the adjacent slave devices from the first slave device to the Nth slave device are connected by three lines (L1 to L3) for transmitting clock signals (CLK[1] to CLK[N]), write data signals (SI[1] to SI[N]) and read data signals (SO[1] to SO[N]), respectively.
[0168] The host device (10, 10A) generates a clock signal (CLK) and sends it to the first slave device (20_1, 20A_1), and sends a write data signal (SI) including first to N-th write data slices corresponding to the first to N-th slave devices respectively to the first slave device at the timing of the clock signal. The first to N-th slave devices (20_1 to 20_N, 20A_1 to 20A_N) each include: a buffer (26) that receives a clock signal sent from a previous stage and sends the clock signal for internal transmission to a slave device at a subsequent stage; and an information acquisition circuit (SE) that acquires an information data slice (e.g., sensor data) and reads it out as a read data slice. Here, the first slave device to the Nth slave device shift and import the sequence [d(1) to d(N)] of the first write data slice to the Nth write data slice contained in the write data signal at the timing of the clock signal supplied from the respective preceding devices, and shift the read data signal including the sequence [b(1) to b(N)] of the read data slices read from each information acquisition circuit at the timing of the clock signal and send it from the first slave device to the host device.
[0169] Therefore, according to this data communication system, since the load connected to the wiring for transmitting the clock signal is only a single slave device, the waveform blunting of the clock signal can be suppressed to be less than a prescribed value regardless of the number of slave devices connected in cascade.
[0170] Furthermore, according to the data communication system, the clock signal received by the final-stage N-th slave device is delayed relative to the clock signal output from the master device, that is, the clock signal received by the first slave device.
[0171] However, the communication between the host device and the first slave device to the Nth slave device in the data communication system is established through the communication between the host device and the first slave device synchronized with the clock signal output by the host device, and the communication synchronized with the clock signal output by one of the slave devices adjacent to each other.
[0172] Therefore, even if the clock signal received by the final N-th slave device is delayed by the number of cascaded slave stages relative to the clock signal output from the master device, communication in synchronization with the clock signal is possible.
[0173] Therefore, according to the present invention, high-speed communication can be performed regardless of the number of slave devices connected to the master device.
Claims
1. A data communication system comprising a host device, a first slave device connected to the host device, and a second slave device to an Nth slave device (N is an integer greater than or equal to 2) connected to the first slave device in cascade connection, wherein the data communication system is characterized in that: The host device and adjacent devices among the first to Nth slave devices are connected by at least three wiring lines, namely, wiring for transmitting a clock signal, wiring for transmitting a write data signal, and wiring for transmitting a read data signal.
2. The data communication system according to claim 1, characterized in that: The clock signal is sequentially transmitted from the master device to the first slave device to the Nth slave device, and the first slave device to the Nth slave device are responsible for the timing of transmitting or receiving the write data signal and the read data signal, respectively. The host device performs a write operation as follows, that is, sends a signal including a sequence of first to N-th write data pieces introduced into the first to N-th slave devices respectively as the write data signal to the first slave device within a predetermined period, The first slave device to the Nth slave device import the write data slice corresponding to itself from the write data signal received from the preceding device based on the clock signal received from the preceding device, send a signal including a sequence of write data slices from which the write data slice has been omitted as the write data signal to the succeeding device, and send a signal including a sequence of read data slices obtained by adding the read data slices obtained in itself to the read data signal received from the succeeding device as the read data signal to the preceding device, Furthermore, the master device performs a read operation of receiving, from the first slave device within the predetermined cycle, the read data signal including a sequence of first to Nth read data pieces respectively acquired by the first to Nth slave devices.
3. The data communication system according to claim 2, characterized in that: The write data signal sent by the host device to the first slave device is a signal in which the first to N-th write data pieces introduced to the first to N-th slave devices are arranged in the order of the N-th write data piece to the first write data piece. The read data signal received by the master device from the first slave device is a signal in which the first to Nth read data pieces respectively acquired by the first to Nth slave devices are arranged in order of the first to Nth read data pieces.
4. The data communication system according to claim 2, characterized in that: The master device controls the first to Nth slave devices so that, within the predetermined cycle, after one of the write operation and the read operation is completed, the other operation is started.
5. The data communication system according to claim 4, characterized in that: The host device adds an identification code to a leading portion of a signal that is transmitted first in the predetermined cycle, of the write data signal and the read data signal.
6. The data communication system according to claim 5, characterized in that: The identification code is set as data indicating the number of cascade stages of the first slave device to the Nth slave device. Each of the first to Nth slave devices transmits to a subsequent device an identification code indicating a new cascade number obtained by subtracting one data point from the data indicating the cascade number indicated by the identification code received from the preceding device.
7. The data communication system according to claim 2, characterized in that: The host device stops transmitting the clock signal during a communication stop period in which the write data signal is not transmitted and the read data signal is not received.
8. The data communication system according to claim 2, characterized in that: The first slave device to the Nth slave device connected in cascade each have: A first input terminal for receiving the clock signal sent from the device of the previous stage; a first output terminal for internally transmitting the clock signal received by the first input terminal to the subsequent device; A second input terminal receives the write data signal sent from the device of the previous stage; a second output terminal, transmitting the write data signal received by the second input terminal to the subsequent device at the timing of the clock signal received by the first input terminal; A third input terminal receives the read data signal sent from the subsequent device; as well as The third output terminal transmits the read data signal received by the third input terminal to the device at the preceding stage at the timing of the clock signal received by the first input terminal.
9. The data communication system according to claim 8, characterized in that: In the Nth slave device having the largest number of cascade-connected stages among the first to Nth slave devices, the first output terminal and the second output terminal are set to an open state, and a predetermined fixed level is supplied to the third input terminal.
10. The data communication system according to claim 2, characterized in that: A wiring for transmitting a chip select signal for instructing the write operation or the read operation is connected between the master device and adjacent devices among the first to Nth slave devices.
11. The data communication system according to claim 1, characterized in that: The communication between the master device and the first to Nth slave devices is performed in the form of serial signals based on the Serial Peripheral Interface Standard.
12. The data communication system according to claim 1, characterized in that: The first slave device to the Nth slave device each include the same structure, and are formed on independent first semiconductor chips to Nth semiconductor chips, respectively.
13. The data communication system according to claim 1, characterized in that: include: The substrate has the master device and the first to Nth slave devices placed side by side on a surface thereof, and has a first conductive layer on which the three-system wiring is formed.
14. A slave device, characterized in that: include: A first input terminal, used for receiving a write data signal; A second input terminal, used for receiving a read data signal; A third input terminal, used for receiving a clock signal; First output terminal to third output terminal; a write data transceiver circuit, which outputs the write data signal received by the first input terminal from the first output terminal at the timing of the clock signal received by the third input terminal; as well as a read data transceiver circuit that outputs the read data signal received by the second input terminal from the second output terminal at the timing of the clock signal received by the third input terminal, The slave device uses the clock signal received by the third input terminal to output from the third output terminal through internal transmission.
15. The slave device according to claim 14, characterized in that: The write data transceiver circuit performs the following write operation within a specified period, that is, from a sequence of write data pieces including at least one write data piece included in the write data signal received by the first input terminal, a write data piece corresponding to itself is introduced into the inside, and a write data signal including a sequence of write data pieces from which this write data piece has been omitted is output from the first output terminal at the timing of the clock signal received by the third input terminal, The read data transceiver circuit performs the following read action within the cycle, that is, includes the information data piece obtained inside itself as a read data piece in the read data signal received by the second input terminal, and outputs it from the second output terminal at the timing of the clock signal received by the third input terminal.
16. The slave device according to claim 15, characterized in that include: The control circuit controls the write data transceiver circuit and the read data transceiver circuit so that, within the specified period, after one of the write action and the read action is completed, the other action is switched.
17. The slave device according to claim 16, characterized in that: An identification code is added to the leading end portion of the signal that is transmitted first in the predetermined cycle, of the write data signal and the read data signal.
18. The slave device according to claim 15, characterized in that have: An information acquisition circuit, for acquiring the information data piece; A first register, storing the written data slice corresponding to itself; a second register, which holds the information data piece as the read data piece; a driving circuit, which outputs a driving signal for driving a load based on the written data slice held by the first register; as well as The control circuit controls the first register and the second register, the driving circuit, the write data transceiver circuit and the read data transceiver circuit.
19. The slave device according to claim 15, characterized in that: A chip selection signal indicating the write action or the read action is received. When the chip selection signal indicates the write action, the write data transceiver circuit performs the write action. On the other hand, when the chip selection signal indicates the read action, the read data transceiver circuit performs the read action.
20. The slave device according to claim 14, characterized in that: include: The buffer amplifies the clock signal received by the third input terminal and outputs the amplified clock signal from the third output terminal.
