Serial communication circuit

The serial communication circuit addresses the inefficiencies of shared signal lines by using shared clock and select signals, reducing costs and communication time with multiple slave devices through dedicated lines.

JP7546494B2Active Publication Date: 2024-09-06MITSUBISHI ELECTRIC CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2021008386
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2024-09-06
Estimated Expiration
2041-01-22

AI Technical Summary

Technical Problem

Existing serial communication methods require multiple signal lines and insulating elements, leading to increased costs and communication time when dealing with multiple slave devices, as they share a common signal line and necessitate sequential data transmission.

Method used

A serial communication circuit design that uses shared clock and select signals across multiple receiving devices, with dedicated signal lines for data transmission, reducing the number of required signal lines and enabling simultaneous data transfer to multiple devices.

Benefits of technology

This approach reduces the number of signal lines and insulating elements, lowering costs and board size while significantly shortening communication time with multiple slave devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007546494000005
    Figure 0007546494000005
  • Figure 0007546494000008
    Figure 0007546494000008
  • Figure 0007546494000002
    Figure 0007546494000002
Patent Text Reader

Abstract

To provide a serial communication circuit with which, while suppressing an increase in the number of signal lines between a control circuit and a plurality of reception devices, it is possible to reduce the duration of communication with the plurality of reception devices.SOLUTION: Each of serial communication units 2-5 of a control circuit 1 includes a terminal MOSI for outputting a serial data signal, a terminal CLK for outputting a clock signal and a terminal CS for outputting a chip select signal. Each of slave elements 7-10 includes a terminal MOSI to which the serial data signal is inputted, a terminal CLK to which the clock signal is inputted, and a terminal CS to which the chip select signal is inputted. The terminals MOSI of the serial communication units 2-5 are connected to the terminals MOSI of the slave elements 7-10, respectively. The terminals CLK and CS of the serial communication unit 2 are connected to the terminals CLK and CS of the slave elements 7-10, respectively.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a serial communication circuit. [Background technology]

[0002] Conventionally, in digital input circuits for ON / OFF control of relays, diodes, etc., an isolation element is placed between the control circuit and the receiving device to prevent the intrusion of noise from the connected device. The isolation element is composed of, for example, a photocoupler or a digital isolator.

[0003] As the speed of calculation processing increases, the speed of control ICs (Integrated Circuits) and peripheral memories also increases, and costs also tend to rise. In order to maintain the cost of the entire device, it is desirable to reduce the cost of the control circuit. To meet this demand, it is possible to reduce the number of signal lines by using serial communication such as SPI (Serial Peripheral Interface) for communication between the control circuit and the receiving device. Reducing the number of signal lines reduces the number of isolation elements. However, in serial communication, four signal lines are required for one receiving device. Therefore, in devices that require several tens of output points such as PLCs (Programmable Logic Controllers), there is still a problem of a large number of isolation elements.

[0004] Japanese Patent Laid-Open Publication No. 2017-117245 (Patent Document 1) discloses a method for connecting a plurality of slave devices (receiving devices) to an interface of a control circuit included in a master device. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2017-117245 A Summary of the Invention [Problem to be solved by the invention]

[0006] In the method disclosed in JP 2017-117245 A, even if the number of slave devices connected to the control circuit increases, the number of communication signal lines does not increase. Therefore, it is possible to prevent the addition of control ICs in the control circuit and an increase in the number of components (e.g., insulating elements) mounted between the control circuit and the slave devices.

[0007] However, because the signal line is common to all slave devices, when communicating with multiple slave devices at the same time, the same data is sent to the multiple slave devices. Therefore, when sending different data to multiple slave devices, it is necessary to repeat the procedure of completing communication with one of the multiple slave devices and then communicating with another slave device. As a result, the time required to complete communication with all slave devices increases as the number of slave devices increases.

[0008] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a serial communication circuit that can shorten the communication time between a control circuit and multiple receiving devices while suppressing an increase in the number of signal lines between the control circuit and multiple receiving devices. [Means for solving the problem]

[0009] A serial communication circuit according to an aspect of the present disclosure includes a control circuit having first to Nth serial communication units, and first to Nth receiving devices that receive data using serial communication. N is an integer equal to or greater than 2. Each of the first to Nth serial communication units includes a first terminal that outputs a serial data signal. The first serial communication unit further includes a second terminal that outputs a clock signal and a third terminal that outputs a select signal. Each of the first to Nth receiving devices includes a fourth terminal to which the serial data signal is input, a fifth terminal to which the clock signal is input, and a sixth terminal to which the select signal is input. Each of the first to Nth receiving devices acquires a serial data signal input to a fourth terminal at a change timing of the clock signal input to the fifth terminal when the select signal input to the sixth terminal is active. The first terminals of the first to Nth serial communication units are connected to the fourth terminals of the first to Nth receiving devices, respectively. The second terminal of the first serial communication unit is connected to the fifth terminal of the first to Nth receiving devices. The third terminal of the first serial communication unit is connected to the sixth terminal of the first to Nth receiving devices. Effect of the Invention

[0010] According to the present disclosure, the clock signal and the select signal are commonly used in the first to Nth receiving devices. Therefore, even if the number of receiving devices increases, the number of signal lines for communicating the clock signal and the select signal does not increase. Meanwhile, the first terminals of the first to Nth serial communication units and the fourth terminals of the first to Nth receiving devices are connected, respectively. Therefore, the control circuit can simultaneously output serial data signals corresponding to the first to Nth receiving devices from the first to Nth serial communication units. Therefore, compared with the method disclosed in Patent Document 1, the communication time required to transmit different serial data signals to multiple receiving devices is shortened. That is, the communication with the first to Nth receiving devices can be completed in the same time as the communication with one receiving device. In this way, it is possible to shorten the communication time between the multiple receiving devices while suppressing an increase in the number of signal lines between the control circuit and the multiple receiving devices. [Brief description of the drawings]

[0011] [Figure 1] 1 is a plan view showing a serial communication circuit 100 according to a first embodiment. [Diagram 2] 4 is a timing chart showing an example of an operation of the serial communication circuit 100 according to the first embodiment. [Diagram 3] 11 is a plan view showing an example of a serial communication circuit 100A according to a second embodiment. FIG. [Figure 4] 11 is a plan view showing an example of a serial communication circuit 100B according to a third embodiment. FIG. [Diagram 5] 13 is a plan view showing an example of a serial communication circuit 100C according to a fourth embodiment. FIG. [Figure 6] 13 is a plan view showing an example of a serial communication circuit 100D according to the fifth embodiment. FIG. [Figure 7] 13 is a plan view showing an example of a serial communication circuit 100E according to a sixth embodiment. FIG. [Figure 8] 13 is a plan view showing an example of a serial communication circuit 100F according to a modification of the sixth embodiment. FIG. [Figure 9] FIG. 1 is a plan view showing an example of a serial communication circuit 100Z according to a reference embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In addition, the same or corresponding parts in the drawings are given the same reference numerals and the description thereof will not be repeated. The embodiments and modifications described below may be appropriately and selectively combined.

[0013] Embodiment 1 Fig. 1 is a plan view showing a serial communication circuit 100 according to the first embodiment. As shown in Fig. 1, the serial communication circuit 100 includes a control circuit 1, four slave elements 7 to 10, and signal lines 31 to 38, 41, and 42 that connect the control circuit 1 and the slave elements 7 to 10. Note that the number of slave elements included in the serial communication circuit 100 is not limited to four, and may be two or more.

[0014] The control circuit 1 is an IC that transmits and receives data to and from the slave elements 7-10 by SPI communication. As shown in Fig. 1, the control circuit 1 includes four serial communication units 2-5 and a clock generation unit 6. The number of serial communication units provided in the control circuit 1 may be the same as the number of slave elements. Therefore, when the number of slave elements is N (N is an integer equal to or greater than 2), the number of serial communication units may also be N.

[0015] The serial communication units 2 to 5 have a plurality of external connection terminals (pins, etc.), and are interfaces that perform serial data communication with external devices according to SPI communication. Each of the serial communication units 2 to 5 includes terminals MOSI and MISO used for inputting and outputting serial data signals. The terminal MOSI outputs a serial data signal in master mode, and receives a serial data signal in slave mode. In this embodiment, the control circuit 1 operates as a master device. Therefore, the terminals MOSI of the serial communication units 2 to 5 output a serial data signal. The terminals MISO of the serial communication units 2 to 5 receive the serial data signal.

[0016] Furthermore, each of the serial communication units 2 to 5 includes a terminal CLK that outputs a clock signal, and a terminal CS that outputs a chip select signal.

[0017] The clock generating unit 6 generates an operation clock for the serial communication units 2 to 5. Each of the serial communication units 2 to 5 operates in accordance with the operation clock.

[0018] Each of the slave elements 7-10 is a receiving device that receives data using serial communication and operates as a slave device. Each of the slave elements 7-10 includes a terminal MOSI to which a serial data signal is input, a terminal MISO that outputs the serial data signal, a terminal CLK to which a clock signal is input, and a terminal CS to which a chip select signal is input. When the chip select signal input to the terminal CS is active, each of the slave elements 7-10 acquires the serial data signal input to the terminal MOSI at the timing when the clock signal input to the terminal CLK changes (from H to L).

[0019] The terminals MOSI of the serial communication units 2-5 are connected to the terminals MOSI of the slave elements 7-10 via signal lines 31-34, respectively. The terminals MISO of the serial communication units 2-5 are connected to the terminals MISO of the slave elements 7-10 via signal lines 35-38, respectively. Note that, if there is no need to transmit serial data signals from the slave elements 7-10 to the control circuit 1, the signal lines 35-38 may be omitted. In other words, the terminals MISO of the serial communication units 2-5 do not need to be connected to the terminals MISO of the slave elements 7-10, respectively.

[0020] A terminal CS of one of the serial communication units 2 to 5 is connected to terminals CS of the slave elements 7 to 10 via a signal line 41. The terminals CS of the remaining serial communication units (serial communication units 3 to 5 in the example shown in FIG. 1) are not connected to any of the slave elements.

[0021] Similarly, the terminal CLK of serial communication unit 2 of serial communication units 2-5 is connected to the terminals CLK of the slave elements 7-10 via signal line 42. The terminals CLK of the remaining serial communication units (serial communication units 3-5 in the example shown in FIG. 1) are not connected to any of the slave elements.

[0022] It should be noted that the serial communication unit having the terminals CS, CLK connected to the terminals CS, CLK of all the slave elements 7-10 is not limited to the serial communication unit 2, but may be any one of the serial communication units 2-5.

[0023] In this way, the terminals MOSI and MISO are connected 1:1 between the serial communication unit and the slave element. When the terminals CS and CLK are also connected 1:1 between the serial communication unit and the slave element, the number of signal lines required is N×4, assuming that the number of serial communication units and slave elements is N. In the example shown in FIG. 1, N=4, so 16 signal lines are required. However, according to this embodiment, the terminals CS and CLK of one serial communication unit are connected to the terminals CS and CLK of all the slave elements, respectively. Therefore, the number of signal lines required is (N×2+2), assuming that the number of serial communication units and slave elements is N. In the example shown in FIG. 1, N=4, so 10 signal lines are sufficient. In this way, according to this embodiment, the number of signal lines connecting the control circuit 1 and the multiple slave elements can be reduced compared to the case where all the terminals are connected 1:1 between the serial communication units and the slave elements.

[0024] The serial communication circuit 100 may be wired on the same board. Alternatively, the control circuit 1 may be mounted on a board different from the board on which each of the slave elements 7 to 10 is mounted. In this case, the control circuit 1 and each of the slave elements 7 to 10 are connected via a connector or the like for connecting between the boards. Since the number of signal lines between the control circuit 1 and the slave elements 7 to 10 is reduced as described above, the number of terminals required for the connector can also be reduced. This allows the connector to be made smaller, and the unit price of the connector can be reduced. Furthermore, since the mounting area of ​​the connector can be reduced, the board size can be reduced, and the unit price of the board can also be reduced.

[0025] In the method disclosed in JP2017-117245A, the serial data signal line is also shared by multiple slave devices. Therefore, as described above, when transmitting different data to multiple slave devices, it is necessary to repeat the procedure of completing communication with one of the multiple slave devices and then communicating with another slave device. As a result, the time until communication with all slave devices is completed is extended. In contrast, in the serial communication circuit 100 shown in FIG. 1, the terminals MOSI and MISO are connected 1:1 between the serial communication unit and the slave elements. Therefore, different serial data signals can be simultaneously transmitted to all of the slave elements 7 to 10. As a result, the time until communication with all of the slave elements 7 to 10 is completed is shortened compared to the method disclosed in JP2017-117245A. In other words, performance degradation regarding communication speed is suppressed.

[0026] 2 is a timing chart showing an example of the operation of the serial communication circuit 100 according to the first embodiment. 8 1 shows an example in which transmission data 12, 13, and 14 are transmitted in this order. Each of the slave elements 7 to 10 takes in the data input to the terminal MOSI at the timing when the clock signal input to the terminal CLK changes from H to L. At timing 11, the slave element 8 takes in the transmission data 13.

[0027] Each of the serial communication units 2-5 outputs a serial data signal from terminal MOSI based on the operating clock generated by clock generation unit 6. The serial data signals output from the serial communication units 2-5 are input to terminal MOSI of the slave elements 7-10, respectively. In contrast, the clock signal output from terminal CLK of serial communication unit 2 is input to terminals CLK of all of the slave elements 7-10. Although not shown in FIG. 2, the chip select signal output from terminal CS of serial communication unit 2 is also input to terminals CS of all of the slave elements 7-10.

[0028] Timing 11 is determined based on the clock signal output from serial communication unit 2. The clock signal is output in accordance with the operation clock of serial communication unit 2. On the other hand, transmission data 13 taken in at timing 11 is output from serial communication unit 3 based on the operation clock of serial communication unit 3. In other words, the clock signal and transmission data 13 are output based on different operation clocks.

[0029] If the clock signal changes from H to L after the transmission data 12 has been captured and before the transmission data 13 is transmitted, the slave element 8 cannot capture the transmission data 13 normally. That is, the slave element 8 captures the transmission data 12 continuously. If the clock signal changes from H to L after the data output from the serial communication unit 2 changes from the transmission data 13 to the transmission data 14, the slave element 8 also cannot capture the transmission data 13 normally. That is, the slave element 8 fails to capture the transmission data 13. For this reason, the clock generation unit 6 generates the operation clock so that the operation clocks of the serial communication units 2 to 5 are the same. As a result, the operation clock of the serial communication unit 2, which is the reference for generating the clock signal that determines the timing of data capture by the slave elements 7 to 10, is the same as the operation clock that is the reference for the output timing of the transmission data of the other serial communication units 3 to 5. As a result, each of the slave elements 7 to 10 can capture the transmission data normally. Note that, as long as the transmission data can change appropriately before the change in the clock signal that determines the timing of data capture, the control circuit 1 may include a plurality of clock generating units respectively corresponding to the plurality of serial communication units.

[0030] The communication method between the control circuit 1 and the slave elements 7-10 is not limited to SPI, and may be another serial communication method that transmits data in synchronization with a clock signal. In this case, the serial communication units 2-5 perform serial communication using an interface of the other serial communication method instead of SPI.

[0031] Embodiment 2 Fig. 3 is a plan view showing an example of a serial communication circuit 100A according to the second embodiment. As shown in Fig. 3, the serial communication circuit 100A differs from the serial communication circuit 100 shown in Fig. 1 in that it includes signal lines 31a to 34a, 31b to 34b, 41a, 41b, 42a, and 42b instead of the signal lines 31 to 38, 41, and 42. Furthermore, the serial communication circuit 100A differs from the serial communication circuit 100 in that it includes an insulating element 15.

[0032] The insulating element 15 is connected between the control circuit 1 and the slave elements 7 to 10. The insulating element 15 is configured by a digital isolator, a photocoupler, etc., and prevents the intrusion of noise.

[0033] Isolation element 15 is an eight-terminal product and is capable of transmitting eight signals. Specifically, isolation element 15 has eight input terminals IN1 to IN8 and eight output terminals OUT1 to OUT8. Signals input to the input terminals IN1 to IN8 are output from the output terminals OUT1 to OUT8, respectively.

[0034] The isolation element 15 is disposed such that the input terminals IN1 to IN8 face the control circuit 1 and the output terminals OUT1 to OUT8 face the slave elements 7 to 10. Therefore, the isolation element 15 is used to pass signals transmitted from the control circuit 1 to the slave elements 7 to 10. Therefore, the isolation element 15 is not connected to the terminals MISO of the serial communication units 2 to 5 and the terminals MISO of the slave elements 7 to 10. The terminals MISO of the serial communication units 2 to 5 and the terminals MISO of the slave elements 7 to 10 may be connected by signal lines 35 to 38 shown in FIG. 1 without passing through an isolation element. Alternatively, when data is not transmitted from the slave elements 7 to 10 to the control circuit 1, the terminals MISO of the serial communication units 2 to 5 and the terminals MISO of the slave elements 7 to 10 do not need to be connected by signal lines.

[0035] Signal line 41a connects terminal CS of serial communication unit 2 and input terminal IN1 of isolation element 15. Signal line 41b connects output terminal OUT1 of isolation element 15 and terminal CS of slave elements 7-10. As a result, the chip select signal output from terminal CS of serial communication unit 2 is input to terminal CS of slave elements 7-10. That is, similar to the first embodiment, the chip select signal is shared by slave elements 7-10.

[0036] Signal line 42a connects terminal CLK of serial communication unit 2 and input terminal IN2 of isolation element 15. Signal line 42b connects output terminal OUT2 of isolation element 15 and terminal CLK of slave elements 7-10. As a result, the clock signal output from terminal CLK of serial communication unit 2 is input to terminal CLK of slave elements 7-10. That is, similar to the first embodiment, the clock signal is shared by slave elements 7-10.

[0037] Signal line 31a connects terminal MOSI of serial communication unit 2 and input terminal IN3 of isolation element 15. Signal line 31b connects output terminal OUT3 of isolation element 15 and terminal MOSI of slave element 7. As a result, the serial data signal output from terminal MOSI of serial communication unit 2 is input to terminal MOSI of slave element 7.

[0038] Signal line 32a connects terminal MOSI of serial communication unit 3 and input terminal IN4 of isolation element 15. Signal line 32b connects output terminal OUT4 of isolation element 15 and terminal MOSI of slave element 8. As a result, the serial data signal output from terminal MOSI of serial communication unit 3 is input to terminal MOSI of slave element 8.

[0039] Signal line 33a connects terminal MOSI of serial communication unit 4 and input terminal IN6 of isolation element 15. Signal line 33b connects output terminal OUT6 of isolation element 15 and terminal MOSI of slave element 9. As a result, the serial data signal output from terminal MOSI of serial communication unit 4 is input to terminal MOSI of slave element 9.

[0040] Signal line 34a connects terminal MOSI of serial communication unit 5 and input terminal IN8 of isolation element 15. Signal line 34b connects output terminal OUT8 of isolation element 15 and terminal MOSI of slave element 10. As a result, the serial data signal output from terminal MOSI of serial communication unit 5 is input to terminal MOSI of slave element 10.

[0041] In this way, the terminal MOSI is connected 1:1 between the serial communication unit and the slave element via the isolation element 15. When the terminals CS and CLK are also connected 1:1 between the serial communication unit and the slave element via the isolation element 15, the number of signal lines required is 2×N×3, where N is the number of serial communication units and slave elements. Note that no signal line is connected to the terminal MISO. In the example shown in FIG. 2, N=4, so 24 signal lines are required. When only the signal lines connected to the control circuit 1, that is, the signal lines connected to the input side of the isolation element 15, are considered, 12 signal lines are required. Therefore, when an isolation element 15 with eight terminals is used, two isolation elements 15 are required.

[0042] In contrast, according to the present embodiment, the terminals CS and CLK of one serial communication unit are connected to the terminals CS and CLK of all slave elements via the isolation element 15. Therefore, the number of signal lines required is 2×(N+2) when the number of serial communication units and slave elements is N. In the example shown in FIG. 1, since N=4, 12 signal lines 31a to 34a, 31b to 34b, 41a, 41b, 42a, and 42b are sufficient. When only the signal lines connected to the control circuit 1, that is, the signal lines connected to the input side of the isolation element 15, are considered, only six signal lines are sufficient. Therefore, as shown in FIG. 2, it is sufficient to use only one isolation element 15, which is an eight-terminal product.

[0043] In this way, according to the present embodiment, it is possible to reduce the number of insulating elements 15. As a result, it is possible to reduce the cost and mounting area required for insulating elements 15.

[0044] The isolation element does not have to be an eight-terminal product, and may be, for example, a four-terminal product. When all terminals are connected 1:1 between the serial communication unit and the slave elements via a four-terminal isolation element, three isolation elements are required. In contrast, because the chip select signal and the clock signal are shared by the slave elements 7 to 10, two four-terminal isolation elements are required. Therefore, even when a four-terminal isolation element is used, the number of isolation elements can be reduced. In other words, the cost and mounting area required for the isolation elements can be reduced.

[0045] The connection relationship between the terminals CS, CLK, and MOSI of the serial communication units 2-5 and the terminals CS, CLK, and MOSI of the slave elements 7-10 is the same as that of the serial communication circuit 100 of the first embodiment, except for the presence of an insulating element 15. Therefore, similar to the first embodiment, the time required to complete communication with all of the slave elements 7-10 is shorter than that of the method disclosed in JP2017-117245A. In other words, performance degradation related to communication speed is suppressed.

[0046] Embodiment 3 Fig. 4 is a plan view showing an example of a serial communication circuit 100B according to the third embodiment. As shown in Fig. 4, the serial communication circuit 100B differs from the serial communication circuit 100A shown in Fig. 3 in that it includes isolation elements 18a and 18b instead of isolation element 15, and further includes signal lines 35a to 38a and 35b to 38b. In the following description, when there is no need to distinguish between the isolation elements 18a and 18b, each of the isolation elements 18a and 18b will be referred to as "isolation element 18."

[0047] The isolation element 18 is connected between the control circuit 1 and the slave elements 7 to 10, and is composed of a digital isolator, a photocoupler, and the like. The isolation element 18 is an eight-terminal product similar to the isolation element 15, and can transmit eight signals. However, each of the isolation elements 18 includes two circuit parts whose data transmission directions are opposite to each other. That is, the isolation element 18a includes the circuit parts 16a and 17a, and the isolation element 18b includes the circuit parts 16b and 17b. In the following, when the circuit parts 16a and 16b are not particularly distinguished from each other, each of the circuit parts 16a and 16b is referred to as a "circuit part 16". Similarly, when the circuit parts 17a and 17b are not particularly distinguished from each other, each of the circuit parts 17a and 17b is referred to as a "circuit part 17".

[0048] Each of the circuit sections 16 and 17 has four input terminals IN1 to IN4 and four output terminals OUT1 to OUT4. In each of the circuit sections 16 and 17, signals input to the input terminals IN1 to IN4 are output from the output terminals OUT1 to OUT4, respectively.

[0049] The insulating element 18 has a rectangular shape in a plan view. In the insulating element 18, the input terminals IN1-IN4 of the circuit section 16 and the output terminals OUT1-OUT4 of the circuit section 17 are located on one side of a pair of long sides. In the insulating element 18, the output terminals OUT1-OUT4 of the circuit section 16 and the input terminals IN1-IN4 of the circuit section 17 are located on the other side of the pair of long sides.

[0050] The insulating element 18 is disposed so that the input terminals IN1-IN4 of the circuit section 16 and the output terminals OUT1-OUT4 of the circuit section 17 face the control circuit 1, and the output terminals OUT1-OUT4 of the circuit section 16 and the input terminals IN1-IN4 of the circuit section 17 face the slave elements 7-10. Therefore, the circuit section 16 is used to pass signals transmitted from the control circuit 1 to the slave elements 7-10. The circuit section 17 is used to pass signals transmitted from the slave elements 7-10 to the control circuit 1.

[0051] By using the circuit unit 17, the terminals MISO of the serial communication units 2 to 5 and the terminals MISO of the slave elements 7 to 10 are connected via insulating elements.

[0052] Signal line 41a connects terminal CS of serial communication unit 2 and input terminal IN1 of circuit unit 16a. Signal line 41b connects output terminal OUT1 of circuit unit 16a and terminal CS of slave elements 7-10. As a result, a chip select signal output from terminal CS of serial communication unit 2 is input to terminal CS of slave elements 7-10. That is, similar to the first embodiment, the chip select signal is shared by slave elements 7-10.

[0053] Signal line 42a connects terminal CLK of serial communication unit 2 and input terminal IN2 of circuit unit 16a. Signal line 42b connects output terminal OUT2 of circuit unit 16a and terminal CLK of slave elements 7-10. As a result, the clock signal output from terminal CLK of serial communication unit 2 is input to terminal CLK of slave elements 7-10. That is, similar to the first embodiment, the clock signal is shared by slave elements 7-10.

[0054] Signal line 31a connects terminal MOSI of serial communication unit 2 and input terminal IN3 of circuit unit 16a. Signal line 31b connects output terminal OUT3 of circuit unit 16a and terminal MOSI of the slave element 7. As a result, the serial data signal output from terminal MOSI of serial communication unit 2 is input to terminal MOSI of the slave element 7.

[0055] Signal line 32a connects terminal MOSI of serial communication unit 3 and input terminal IN4 of circuit unit 16a. Signal line 32b connects output terminal OUT4 of circuit unit 16a and terminal MOSI of slave element 8. As a result, the serial data signal output from terminal MOSI of serial communication unit 3 is input to terminal MOSI of slave element 8.

[0056] Signal line 33a connects terminal MOSI of serial communication unit 4 and input terminal IN2 of circuit unit 16b. Signal line 33b connects output terminal OUT2 of circuit unit 16b and terminal MOSI of slave element 9. As a result, the serial data signal output from terminal MOSI of serial communication unit 4 is input to terminal MOSI of slave element 9.

[0057] Signal line 34a connects terminal MOSI of serial communication unit 5 and input terminal IN4 of circuit unit 16b. Signal line 34b connects output terminal OUT4 of circuit unit 16b and terminal MOSI of the slave element 10. As a result, the serial data signal output from terminal MOSI of serial communication unit 5 is input to terminal MOSI of the slave element 10.

[0058] Signal line 35a connects terminal MISO of serial communication unit 2 and output terminal OUT1 of circuit unit 17a. Signal line 35b connects input terminal IN1 of circuit unit 17a and terminal MISO of the slave element 7. As a result, the serial data signal output from terminal MISO of the slave element 7 is input to terminal MISO of serial communication unit 2.

[0059] Signal line 36a connects terminal MISO of serial communication unit 3 and output terminal OUT2 of circuit unit 17a. Signal line 36b connects input terminal IN2 of circuit unit 17a and terminal MISO of slave element 8. As a result, the serial data signal output from terminal MISO of slave element 8 is input to terminal MISO of serial communication unit 3.

[0060] Signal line 37a connects terminal MISO of serial communication unit 4 and output terminal OUT3 of circuit unit 17a. Signal line 37b connects input terminal IN3 of circuit unit 17a and terminal MISO of slave element 9. As a result, the serial data signal output from terminal MISO of slave element 9 is input to terminal MISO of serial communication unit 4.

[0061] Signal line 38a connects terminal MISO of serial communication unit 5 and output terminal OUT4 of circuit unit 17a. Signal line 38b connects input terminal IN4 of circuit unit 17a and terminal MISO of slave element 10. As a result, the serial data signal output from terminal MISO of slave element 10 is input to terminal MISO of serial communication unit 5.

[0062] In this way, the terminals MOSI and MISO are connected 1:1 between the serial communication unit and the slave element via the isolation element 18. When the terminals CS and CLK are also connected 1:1 between the serial communication unit and the slave element via the isolation element 18, the number of signal lines required to transmit data from the serial communication unit to the slave element is 2×N×3, where N is the number of serial communication units and slave elements. When N=4, 24 signal lines are required. When only the signal lines connected to the control circuit 1, that is, the signal lines connected to the input side of the isolation element 15, are considered, 12 signal lines are required. Therefore, when an isolation element 18 with four terminal pairs available for transmitting data from the serial communication unit to the slave element is used, three isolation elements 18 are required.

[0063] In contrast, according to the present embodiment, the terminals CS and CLK of one serial communication unit are connected to the terminals CS and CLK of all the slave elements via the isolation element 18. Therefore, the number of signal lines required to transmit data from the serial communication unit to the slave element is 2×(N+2) lines, where N is the number of serial communication units and slave elements. In the example shown in FIG. 4, since N=4, 12 signal lines 31a to 34a, 31b to 34b, 41a, 41b, 42a, and 42b are sufficient. When only the signal lines connected to the control circuit 1, that is, the signal lines connected to the input side of the isolation element 15, are considered, only six signal lines are sufficient. Therefore, when an isolation element 18 having four terminal pairs available for transmitting data from the serial communication unit to the slave element is used, two isolation elements 18 are required.

[0064] In this way, according to the present embodiment, it is possible to reduce the number of insulating elements 18. As a result, it is possible to reduce the cost and mounting area required for the insulating elements 18.

[0065] Embodiment 4 Fig. 5 is a plan view showing an example of a serial communication circuit 100C according to embodiment 4. As shown in Fig. 5, the serial communication circuit 100C differs from the serial communication circuit 100 shown in Fig. 1 in that it includes a control circuit 1C instead of the control circuit 1. The control circuit 1C differs from the control circuit 1 in that it includes a synchronization unit 22.

[0066] Each of the serial communication units 2 to 5 operates according to the operation clock generated by the clock generation unit 6. However, before the serial communication units 2 to 5 execute communication processing, software processing is required. The time required for this software processing is not exactly the same for the serial communication units 2 to 5, but may be slightly different. The time required for software processing is longer than the time required for hardware processing that operates according to the operation clock. Therefore, the completion times of the software processing in the serial communication units 2 to 5 may differ from each other. If the time difference between the completion times of the software processing in the serial communication units 2 to 5 becomes longer than the period of the operation clock, the timing at which the serial communication units 2 to 5 execute communication processing may differ from each other by several clocks or a longer number of clocks. This phenomenon occurs more significantly the faster the operation clock (i.e., the faster the communication clock).

[0067] Therefore, in the serial communication circuit 100C according to the present embodiment, the synchronization unit 22 makes the serial communication unit that has completed its software processing earlier than the other serial communication units and is now ready to execute the communication processing wait. Then, the synchronization unit 22 starts all the communication processing of the serial communication units 2 to 5 in accordance with the serial communication unit that completed its software processing the slowest. This suppresses malfunctions caused by differences in the time required for the software processing in the serial communication units 2 to 5.

[0068] Furthermore, the synchronization unit 22 may suspend all communication processes of the serial communication units 2 to 5 when an interrupt process occurs in the control circuit 1 during communication and the communication process of one of the serial communication units is suspended. Then, after the interrupt process is completed, the synchronization unit 22 may synchronize the start timing of all communication processes of the serial communication units 2 to 5. This suppresses malfunctions caused by discrepancies in the start timing of the communication processes of the serial communication units 2 to 5.

[0069] Embodiment 5. The fifth embodiment is a combination of the second embodiment and the fourth embodiment. FIG. 6 is a plan view showing an example of a serial communication circuit 100D according to the fifth embodiment. As shown in FIG. 6, the serial communication circuit 100D is different from the serial communication circuit 100A shown in FIG. 2 in that it includes a control circuit 1C instead of the control circuit 1. According to the fifth embodiment, the cost and mounting area required for the insulating element 15 can be reduced, and malfunctions caused by a difference in the start timing of the communication processing of the serial communication units 2 to 5 can be suppressed. The third embodiment may be combined with the fourth embodiment.

[0070] Embodiment 6 Fig. 7 is a plan view showing an example of a serial communication circuit 100E according to embodiment 6. Serial communication circuit 100E differs from serial communication circuit 100 shown in Fig. 1 in that it includes SPI-parallel conversion elements 23-26 instead of slave elements 7-10, and further includes slave elements 27-30.

[0071] The slave elements 27 to 30 are not elements capable of SPI communication, but are parallel reception slave elements that receive data through parallel communication. The number of parallel signals that each of the slave elements 27 to 30 can receive is, for example, eight.

[0072] The SPI-parallel conversion element 23 is connected to the control circuit 1 and the slave element 27. The SPI-parallel conversion element 24 is connected to the control circuit 1 and the slave element 28. The SPI-parallel conversion element 25 is connected to the control circuit 1 and the slave element 29. The SPI-parallel conversion element 26 is connected to the control circuit 1 and the slave element 30. That is, there is a 1:1 connection between the SPI-parallel conversion elements 23 to 26 and the slave elements 27 to 30.

[0073] Each of the SPI-parallel conversion elements 23-26 is a receiving device that receives serial data output from the control circuit 1. The SPI-parallel conversion elements 23-26 are connected to the serial communication units 2-5 in a 1:1 ratio. Each of the SPI-parallel conversion elements 23-26 outputs parallel data according to the control content indicated by the received serial data. That is, the SPI-parallel conversion elements 23-26 convert the acquired serial data signal into a parallel signal, and acquire the parallel signal in each of the slave elements 27-30. Each of the SPI-parallel conversion elements 23-26 outputs, for example, eight parallel signals. In this way, the serial communication unit and the SPI-parallel conversion element are connected in a 1:1 ratio. Furthermore, the SPI-parallel conversion element and the slave element are connected in a 1:1 ratio. Therefore, the serial communication units 2-5 can simultaneously transmit serial data signals for the slave elements 27-30. As a result, the time required to complete communication with all of the slave elements 27 to 30 is shorter than that required by the method disclosed in JP 2017-117245 A. In other words, performance degradation related to communication speed is suppressed.

[0074] The number of slave elements and the number of SPI-parallel conversion elements are not limited to four, but may be two or more.

[0075] Furthermore, the number of parallel signals each slave element can receive does not have to be the same as the number of parallel signals each SPI-parallel conversion element outputs. For example, if the number of parallel signals each slave element can receive is 8 and the number of parallel signals each SPI-parallel conversion element outputs is 16, two slave elements are connected to one SPI-parallel conversion element. In this case, if there are a total of four slave elements (the number of parallel signals required is 8 x 4 = 32), two SPI-parallel conversion elements are required. That is, each of the four slave elements receives parallel signals from one of the two SPI-parallel conversion elements.

[0076] FIG. 8 is a plan view showing an example of a serial communication circuit 100F according to a modification of the sixth embodiment. As shown in FIG. 8, the serial communication circuit 100F is different from the serial communication circuit 100E shown in FIG. 7 in that the SPI-parallel conversion elements 24 and 26 are omitted. As shown in FIG. 8, the slave elements 27 and 28 are connected to the SPI-parallel conversion element 23, and the slave elements 29 and 30 are connected to the SPI-parallel conversion element 25. The terminals CS and CLK of the serial communication unit 2 are connected to the terminals CS and CLK of the SPI-parallel conversion elements 23 and 25, respectively. Connected to the serial communication unit 2. The terminals MOSI and MISO of the serial communication unit 2 are connected to the terminals MOSI and MISO of the SPI-parallel conversion element 23, respectively. The terminals MOSI and MISO of the serial communication unit 4 are connected to the terminals MOSI and MISO of the SPI-parallel conversion element 25, respectively.

[0077] Fig. 9 is a plan view showing an example of a serial communication circuit 100Z according to a reference embodiment. Fig. 9 shows a reference embodiment to which the method disclosed in JP 2017-117245 A is applied. As shown in Fig. 9, the serial communication circuit 100Z is different from the serial communication circuit 100E shown in Fig. 7 in that the SPI-parallel conversion elements 24 to 26 are omitted. As shown in Fig. 9, slave elements 27 to 30 are connected to the SPI-parallel conversion element 23.

[0078] In the reference embodiment shown in FIG. 9, when the control circuit 1 transmits different data to the slave elements 27-30, the serial communication unit 2 needs to output serial data signals to the slave elements 27-30 in sequence.

[0079] In contrast, in the modification shown in FIG. 8, when the control circuit 1 transmits different data to the slave elements 27 to 30, the serial communication unit 2 continuously transmits serial data signals for the slave elements 27 and 28 to the SPI-parallel conversion element 23. Similarly, the serial communication unit 4 transmits serial data signals for the slave elements 29 and 30 to the SPI-parallel conversion element 25. When the SPI-parallel conversion element 23 receives the serial data signal for the slave element 27, it converts the serial data into parallel data and transmits the parallel data signal to the slave element 27. When the SPI-parallel conversion element 23 receives the serial data signal for the slave element 28, it converts the serial data into parallel data and transmits the parallel data signal to the slave element 28. When the SPI-parallel conversion element 25 receives the serial data signal for the slave element 29, it converts the serial data into parallel data and transmits the parallel data signal to the slave element 29. When the SPI-parallel conversion element 25 receives the serial data signal for the slave element 30, it converts the serial data into parallel data and transmits the parallel data signal to the slave element 30.

[0080] Therefore, in the modification shown in Fig. 8, the control circuit 1 can transmit serial data signals to the slave elements 27 and 29 in parallel. Also, the control circuit 1 can transmit serial data signals to the slave elements 28 and 30 in parallel. Therefore, the time required to complete communication with all of the slave elements 27 to 30 is shorter than in the reference embodiment shown in Fig. 9. In other words, performance degradation related to communication speed is suppressed.

[0081] The communication between the control circuit 1 and the SPI-parallel conversion elements 23-26 is the same as the communication between the control circuit 1 and the slave elements 7-10 shown in the first embodiment. This makes it possible to reduce the number of signal lines connected to the control circuit 1. When the control circuit 1 and the slave elements 27-30 are connected by parallel signal lines, if the number of parallel signals that each of the slave elements 27-30 can receive is eight, it is necessary to connect 32 (8 lines x 4 lines = 32) signal lines to the control circuit 1. However, in the configuration shown in FIG. 7, ten signal lines are connected to the control circuit 1.

[0082] Furthermore, when there is no data to be input from the SPI-parallel conversion elements 23-26 to the control circuit 1 (for example, data indicating the communication state with the SPI-parallel conversion elements 23-26), the terminals MISO of the serial communication units 2-5 are not used. This makes it possible to reduce the number of signal lines connecting the terminals MISO of the serial communication units 2-5 and the terminals MISO of the SPI-parallel conversion elements 23-26. In this case, the number of signal lines connected to the control circuit 1 is six.

[0083] In this way, the number of signal lines connected to the control circuit 1 is smaller than when the control circuit 1 and each slave element are connected by parallel signal lines. Therefore, the serial communication circuit 100E according to the sixth embodiment is particularly effective when the control circuit 1 and each slave element are mounted on different boards via connectors or the like. That is, the number of pins of the inter-board connector, the size of the connector, and the size of the board are reduced. As a result, the costs required for the connector and the board are reduced.

[0084] Furthermore, the serial communication circuit 100E according to the sixth embodiment is particularly effective when an insulating element is connected between the control circuit 1 and each slave element as in the second embodiment. In this case, the number of insulating elements can be reduced, and therefore the cost required for the insulating elements can be reduced.

[0085] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]

[0086] 1, 1C control circuit, 2 to 5 serial communication section, 6 clock generation section, 7 to 10, 27 to 30 slave element, 11 timing, 12, 13, 14 transmission data, 15, 18, 18a, 18b isolation elements, 16, 16a, 16b, 17, 17a, 17b circuit section, 22 synchronization section, 23 to 26 SPI-parallel conversion elements, 31 to 38, 31a to 38a, 31b to 38b, 41, 41a, 41b, 42, 42a, 42b signal lines, 100, 100A to 100F, 100Z serial communication circuit, CLK, CS, MISO, MOSI terminals, IN1 to IN8 input terminals, OUT1 to OUT8 output terminals.

Claims

1. A serial communication circuit, a control circuit having first to Nth serial communication units; a first to an Nth receiving device that receives data by using serial communication; N is an integer of 2 or more, Each of the first to Nth serial communication units includes a first terminal that outputs a serial data signal; the first serial communication unit further includes a second terminal that outputs a clock signal and a third terminal that outputs a select signal; Each of the first to Nth receiving devices a fourth terminal to which the serial data signal is input, a fifth terminal to which the clock signal is input, and a sixth terminal to which the select signal is input; acquiring the serial data signal input to the fourth terminal at a change timing of the clock signal input to the fifth terminal when the select signal input to the sixth terminal is active; the first terminals of the first to Nth serial communication units are connected to the fourth terminals of the first to Nth receiving devices, respectively; the second terminal of the first serial communication unit is connected to the fifth terminal of the first to Nth receiving devices; the third terminal of the first serial communication unit is connected to the sixth terminals of the first to Nth receiving devices; the control circuit further includes a synchronization unit that synchronizes communication processes of the first to Nth serial communication units; each of the first to Nth serial communication units performs software processing before executing the communication processing; The synchronization unit starts the communication processing of the first to Nth serial communication units in accordance with the serial communication unit that completes the software processing the slowest among the first to Nth serial communication units.

2. 2. The serial communication circuit according to claim 1, wherein the control circuit is mounted on a board different from a board on which each of the first to Nth receiving devices is mounted.

3. 3. The serial communication circuit according to claim 1, further comprising an isolation element connected between the control circuit and each of the first to Nth receiving devices.

4. a plurality of slave elements receiving data using parallel communication; Each of the first to Nth receiving devices converts the serial data signal acquired from the fourth terminal into a parallel signal; 4. The serial communication circuit according to claim 1, wherein each of the plurality of slave elements receives the parallel signal from any of the first to Nth receiving devices.

Citation Information

Patent Citations

  • Interface circuit

    JP1990010460A

  • Transmission system and signal repeating device

    JP2006260138A

  • Mobile terminal device

    JP2011199572A

  • Data processing device

    JP2015185129A

  • Control system

    JP2016111651A