Communication system and method of operating the same
By polling and independently activating the communication system of multiple slave SPI devices in a single SPI frame, it solves the problem of low efficiency of the existing SPI communication system, achieves fast refresh and watchdog timer reset, reduces costs, and is suitable for commercial vehicles application.
Patent Information
- Application Number
- CN202210065104.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-01-20
AI Technical Summary
The existing SPI communication system is inefficient when refreshing multiple slave devices, resulting in increased processing and SPI bus time usage, limiting the number of slave devices that the master device can serve, and the existing improvement solutions are complex and costly, making it difficult to apply to commercial vehicles. application.
A communication system is designed that avoids modifications to the SPI clock signal and software operation, allowing Flush multiple slave devices simultaneously and quickly reset watchdog timers.
It realizes fast polling and refreshing of multiple slave devices without modifying the SPI clock signal or software operation, avoiding timeouts and freeing up SPI bus time for other operations, reducing costs and suitable for commercial automotive applications.
Smart Images

Figure CN114817108B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to communication systems and methods of operating the same. The present disclosure relates particularly to communication devices using a Serial Peripheral Interface (SPI) protocol, and most particularly to data transmission circuits for use in automotive applications. Background Art
[0002] SPI is one of the most common communication protocols used for communication in embedded electronic systems within vehicles. SPI uses a master-slave architecture, where one master device supports communication with one or more slave devices. During operation, the master device initiates a frame to perform a read / write operation with a selected slave SPI device, where a slave or chip select (CS) signal is used to select the slave device. This causes the selected slave device to read data from the master output slave input (MOSI) signal line and write data to the master input slave output (MISO) signal line, where the reading and writing of bits are coordinated by a clock signal (CLK).
[0003] In modern vehicles, many devices often require a periodic refresh signal to maintain their operation. For example, peripheral devices such as smart fuses or sensor units may include a monitor that needs to be polled to prevent accidental timeouts. Therefore, under the standard SPI protocol, it is necessary to have the master device initiate a separate frame to refresh each slave device.
[0004] Figure 1 Signals on an exemplary prior art SPI bus are shown in which eight slave SPI devices are sequentially polled using active low chip select signals transmitted on chip select lines cs0 to cs7. Thus, the sequence includes 8 frames, where each frame from dev_0 to dev_7 prompts the selected slave device to read a refresh signal from the MOSI line and transmit diagnostic data to the MISO line to be recorded by the master SPI device.
[0005] The problem with the above is that it is relatively slow and requires continuous communication on the SPI bus during the polling sequence. Therefore, as the number of slave devices increases, the refresh operation takes up more and more processing and SPI bus time, reducing the availability of this resource for normal device operation. In addition, it also limits the number of slave devices that can be served by the master device, because otherwise there may not be enough time between each repeated polling sequence before the watchdog of a particular slave device times out.
[0006] Recently, a number of new SPI-based communication systems have been proposed that seek to solve the more general problem of increasing the speed of SPI communications. For example, it has been proposed to modify the standard SPI protocol to allow different slave devices to communicate within the same frame by modifying the clock signal or by providing dedicated chip select lines for controlling the MOSI and MISO terminals of each slave device. However, such arrangements are very complex and require specially customized hardware that is much more expensive than standard or off-the-shelf SPI integrated circuits. Therefore, they are not suitable for solving the above-mentioned problems associated with flashing peripheral devices for commercial automotive applications.
[0007] Therefore, there is a need to solve the above-mentioned problems associated with conventional SPI communication systems in a cost-effective and simple manner Summary of the invention
[0008] The present disclosure relates to a communication system for allowing rapid polling of one or more groups of multiple slave integrated circuit command processes. The communication system can be used in embedded systems in automotive applications.
[0009] According to a first aspect, a communication system is provided, comprising: a master circuit including a master serial peripheral interface (SPI) device having an input MISO terminal; and a plurality of slave circuits connected for communicating with the master circuit, each slave circuit comprising a slave SPI device, an activation terminal for activating the slave SPI device, and an output switch for connecting an output master input slave output (MISO) terminal of the slave SPI device to an input MISO terminal when activated, wherein the master circuit further comprises: a polling signal terminal (POLLING) for sending a polling signal to activation terminals in at least a first group of the plurality of slave circuits to activate their respective slave SPI devices; and a plurality of output chip select (CS) terminals, each of which can be independently activated to transmit a CS signal to an activation terminal of a corresponding one of the plurality of slave circuits and the output switch so as to activate the corresponding slave SPI device and connect its output MISO terminal to transmit data to the input MISO terminal.
[0010] In this way, multiple slave SPI devices can be refreshed simultaneously by polling them in a single SPI frame, while limiting the data returned to the master SPI device to the data sent by a single slave SPI device. In this way, the watchdog timers in all slave SPI devices can be quickly reset based on a common reset signal transmitted on the MOSI line to avoid timeouts, while diagnostic data from one of the slave SPI devices can still be transmitted back to the master device on the MISO line. Importantly, this can be achieved without modifying the SPI clock signal or the operating software of the SPI devices.
[0011] In an embodiment, the master circuit further includes a demultiplexer (DEMUX) connected to an address terminal (ADDRESS) provided on the master SPI device, and wherein a plurality of output CS terminals are provided on the demultiplexer and can be activated individually in response to demultiplexing of address signals from the address terminals. In this way, a large number of slave SPI devices can be controlled using the CS terminals based on a signal output from a single address terminal.
[0012] In an embodiment, the communication system further comprises a second polling signal terminal for transmitting a second polling signal to activation terminals of a second group of multiple slave circuits to simultaneously activate their respective slave SPI devices. In this way, more than one group of slave SPI devices can be polled, thereby allowing different groups to be polled at different intervals as required. In addition, different groups of slave SPI devices responding to different commands on the MOSI line can be respectively instructed as discrete groups.
[0013] In an embodiment, the master circuit further comprises a polling logic structure, wherein a polling signal terminal and a second polling signal terminal are disposed on the polling logic structure, wherein the polling logic structure comprises a plurality of logic gates connected to a master polling terminal disposed on the master SPI device and output CS terminals associated with the first and second groups of slave circuits, and wherein the polling logic structure is configured to transmit a polling signal from one of the first and second polling signal terminals in response to both a master polling signal and at least one CS signal associated with the slave circuits in the corresponding group. In this way, the output of a single polling terminal on the master SPI device can be used to poll more than one polling signal group of the slave SPI device.
[0014] In an embodiment, a polling signal terminal is also provided on the demultiplexer, and wherein the polling signal terminal is activated based on demultiplexing the address signal from the address terminal. In this way, a basic master SPI device having only an address terminal can be used to generate both a CS signal and a polling signal through the demultiplexer.
[0015] In an embodiment, a master SPI device includes a serial clock terminal for transmitting a clock signal to a plurality of slave SPI devices.
[0016] In an embodiment, a master SPI device includes an output master-output slave-input (MOSI) terminal for transmitting data from the master SPI device to a plurality of slave SPI devices.
[0017] In an embodiment, the communication system further includes a MOSI line connected between the output MOSI terminal and an input MOSI terminal provided on the plurality of slave circuits.
[0018] In an embodiment, the communication system further includes a MISO line connected between an input MISO terminal and output MISO terminals of a plurality of slave circuits; a polling signal line connected between a polling signal terminal and activation terminals of a plurality of slave circuits; and a plurality of CS signal lines, each CS signal line being connected between one of the plurality of output CS terminals and an activation terminal and an output switch of one of the slave circuits.
[0019] According to a second aspect, there is provided a method of operating a communication system, the method comprising the steps of: providing a master circuit, the master circuit comprising a polling signal terminal, a plurality of chip select (CS) terminals, and a master serial peripheral interface (SPI) device having an input MISO terminal; and providing a plurality of slave circuits connected for communication with the master circuit, each slave circuit comprising a slave SPI device, an activation terminal, and an output switch; transmitting a polling signal from the polling signal terminal to the activation terminal of at least a first group of slave circuits among the plurality of slave circuits for activating their respective slave SPI devices, wherein unless the output switch is activated, the respective output MISO terminal is prevented from transmitting data to the input MISO terminal through the output switch; and transmitting a CS signal from each of the CS terminals to a corresponding slave circuit among the plurality of slave circuits for activating its activation terminal to activate the corresponding slave SPI device, and activating the output switch to connect its output MISO terminal to the input MISO terminal to transmit data thereto.
[0020] In an embodiment, the method further comprises transmitting a sequence of SPI frames, wherein each SPI frame comprises transmitting a polling signal and a CS signal from one of the CS terminals to a corresponding slave circuit, wherein the CS signal is sent from a different CS terminal in each frame of the sequence of SPI frames for sequentially connecting a corresponding output MISO terminal of the slave circuit to an input MISO terminal. In this way, diagnostic data from each slave SPI device can be fed back to the master SPI device over multiple refresh cycles.
[0021] In an embodiment, the step of providing a master circuit further includes: providing a demultiplexer connected to an address terminal provided on a master SPI, wherein a plurality of output CS terminals are provided on the demultiplexer, and wherein the method further includes the steps of: transmitting an address signal from the address terminal to the demultiplexer; demultiplexing the address signal at the demultiplexer; and generating a CS signal from one of the CS terminals based on the demultiplexed address signal for transmission to a corresponding slave circuit among the plurality of slave circuits.
[0022] In an embodiment, wherein the step of demultiplexing the address signal comprises: selecting one of the CS terminals to transmit the CS signal based on one of the least significant bit of the address signal or the most significant bit of the address signal. In this way, a simple multiplexed signal can be used to address a group of slave devices to be refreshed and a separate slave SPI device for returning data to the master device.
[0023] In an embodiment, the step of providing a demultiplexer further comprises providing a polling signal terminal on the demultiplexer, and wherein the method further comprises generating a polling signal from the polling signal terminal based on the demultiplexed address signal.
[0024] In an embodiment, the step of demultiplexing the address signal includes selecting to generate the polling signal from the polling signal terminal or the second polling signal from the second polling signal terminal based on one of the most significant bit of the address signal or the least significant bit of the address signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Illustrative embodiments will now be described with reference to the accompanying drawings, in which:
[0026] Figure 1 shows signals on an exemplary prior art SPI bus;
[0027] Figure 2 shows a schematic diagram of a communication system according to a first embodiment;
[0028] Figure 3 Shown in Figure 2 Signals on the SPI bus during a polling sequence running on the system shown;
[0029] Figure 4 Shows Figure 2 Operational flow chart of the system shown;
[0030] Figure 5 shows a schematic diagram of a communication system according to a second embodiment;
[0031] Figure 6 Shown in Figure 5 Signals on the SPI bus during a polling sequence running on the system shown;
[0032] Figure 7 shows a schematic diagram of a communication system according to a third embodiment;
[0033] Figure 8 Shown for Figure 7 an illustrative logic table of the operation of the system shown;
[0034] Fig. 9 showing the connections and integrated logic at each slave circuit; and
[0035] Fig.10 Shows Fig.10 An alternative example discrete implementation of the integrated AND gate shown in . DETAILED DESCRIPTION
[0036] Figure 2 A communication system 1 according to a first embodiment is shown. The communication system 1 comprises a master circuit 3 communicatively coupled to four slave circuits 4a-4d.
[0037] The master circuit 3 includes a master SPI device 31 and a demultiplexer 32. The master SPI device is configured as an integrated circuit having SPI address, clock (CLK), MOSI and MISO terminals. The master SPI device 31 also includes a polling terminal for generating a polling signal independent of the address signal. The signal transmitted through the SPI bus is an active-low signal.
[0038] The address terminal is connected to the input of the demultiplexer 32 via the address signal line 52. The demultiplexer 32 includes a plurality of output CS terminals CS_0 to CS_3 associated with respective ones of the slave circuits 4a-4d. As such, the multiplexed address signal transmitted from the address terminal of the master SPI device 31 can be demultiplexed to generate a separate CS address signal in one of the output CS terminals of the demultiplexer 32.
[0039] Each of the four slave circuits 4a-4d comprises a slave SPI device 41, together with an AND gate 42 connected to its CS input terminal and an output switch 43 connected to its output MISO terminal.
[0040] Each AND gate 42 is connected to the output of the polling terminal on the master SPI device 31 via the polling signal line 51, and is connected to the corresponding output CS terminals CS_0 to CS_3 on the demultiplexer 32 via the CS signal lines 56a-56d. In the absence of a polling signal or a separate chip select signal, both inputs to the AND gate 42 are high, causing the CS terminal on the corresponding slave SPI device 41 to remain high. When a low-state active signal is applied to either input, the CS terminal on the corresponding slave SPI device 41 is set low, thereby activating it. Therefore, the slave SPI device 41 of each slave circuit 4a-4d can be activated by a polling signal or a separate chip select signal applied via its respective CS signal lines 56a-56d.
[0041] Each output switch 43 is also controlled via CS signal lines 56a-56d by the output of a corresponding output CS terminal on the demultiplexer 32. Thus, when a separate chip select signal is transmitted to activate a corresponding slave SPI device 41, the associated output switch 43 is switched to connect the corresponding output MISO terminal to the input MISO terminal on the master SPI device 31 via the MISO data line 55.
[0042] MISO data line 55 connects the output switch of each slave circuit 4a-4d to the input MISO terminal on the master SPI device 31. Thus, data from any slave SPI device 41 can be transmitted to the master SPI device 31, but only when its corresponding output switch 43 is activated.
[0043] The CLK and MOSI terminals of the master SPI device 31 are connected to the CLK and MOSI terminals of the slave SPI device 41 via a clock signal line 53 and a MOSI data line 55 for transmitting clock and data signals.
[0044] Figure 3 Shown in Figure 2 1 shows signals on the SPI bus during an example polling sequence running on the system shown. The figure shows four frames 61-64, with polling operations being performed in frames 61 and 64. Frames 62 and 63 represent available bus time when no polling operations are performed, so the SPI bus can be used for other operations.
[0045] In frame 61, the master SPI device 31 outputs a polling signal through its polling terminal and a CS address signal through its address terminal, so that the demultiplexer 32 generates a chip select signal at the chip select terminal CS_0 and thus in the CS signal line 56a. The master SPI device 31 also generates a clock signal through the CLK terminal and transmits an input diagnostic signal through the output MOSI terminal.
[0046] The polling signal on the polling signal line 51 causes all four slave SPI devices 41 of the slave circuits 4a-4d to be activated and read data from the MOSI data line 54 via the polling signal line 51. This causes the monitor to reset to avoid device timeout. At the same time, only the output switch 43 of the first slave circuit 4a is activated because only the associated CS signal line 56a carries the CS signal. Therefore, only the first slave SPI device 41a can transmit diagnostic data to the master SPI device 31 on the MISO signal line 55.
[0047] In frame 64, a second refresh operation may be performed. In addition, the master SPI device 31 outputs a polling signal through its polling terminal, but in this case, the address signal from the master SPI device 31 causes the demultiplexer 32 to generate a chip select signal in the second chip select terminal CS_1 (and therefore in the CS signal line 56b). Therefore, all four slave SPI devices 41 are activated again to read data from the MOSI data line 54, but only the output switch 43 of the second slave circuit 4b is activated. Therefore, for this frame, only the slave SPI device 41 of the second slave circuit 4b can transmit diagnostic data on the MISO signal line 55.
[0048] The above process may be repeated for additional cycles to obtain diagnostic data from the third and fourth slave circuits 4c and 4d.
[0049] With the above arrangement, all slave SPI devices 41 can thus be refreshed in a single frame, although the master SPI device 31 will only receive diagnostic data from one of the slave devices in each refresh cycle. However, diagnostic data is generally less important, as the peripheral device will generally be able to maintain its operation autonomously and therefore tolerate a reduction in its feedback rate, as long as it can be refreshed regularly.
[0050] Importantly, using Figure 2 The arrangement shown can be used in frames where no polling operation occurs, such as in Figure 3 In the frames 62 and 63 shown, a conventional SPI data transfer process is implemented.
[0051] in this regard, Figure 4 Shows Figure 2 Operational flow chart of the system shown. For each SPI frame, in step 71, a decision is made whether to implement commands to individual slave circuits or to poll the entire group.
[0052] When the polling operation is selected to refresh the slave circuits 4a-4d, this is done as described above, where a low active polling signal is applied to the polling signal line 51 in step 72, and a low active CS signal is applied to one of the CS signal lines 56 in step 73. This causes all slave SPI device chips of the slave circuits 4a-4d to be refreshed and generate output signals in step 74. However, only the slave circuits 4a-4d selected by the CS signal are transmitted back to the master circuit 3. The CS signal line 56 and the polling signal line 51 can then be set back to a logic low state in steps 75 and 76 to end the SPI frame.
[0053] When the system commands a specific slave circuit individually, for example, to implement a configuration operation, the polling signal is not applied to the polling signal line 51 in step 82. In step 83, a low active CS signal is applied to one of the CS signal lines 56a-56d. In step 84, this then causes the slave SPI device chip of the selected slave circuit 4a-4d to read data from the MOSI signal line 54 and generate an output signal on the MISO signal line 55. When the associated output switch 43 is activated, the MOSI signal from the slave SPI device 41 is transmitted back to the master circuit 3. The CS signal line 56 can then be set back to a logic low state in step 85 to end the SPI frame. It should be understood that different slave circuits can be activated by generating a CS signal in their corresponding CS signal lines.
[0054] Figure 5 and Figure 6 Schematic diagrams of SPI bus signals according to a second embodiment are shown respectively. This embodiment operates in substantially the same manner as the first embodiment, with the same reference numerals used for corresponding features. However, in this embodiment, the polling signal terminal POLLING_GP_1 is not provided on the master SPI device 31, but is provided on the demultiplexer 32 together with the second polling signal terminal POLLING_GP_n. Based on the CS address signal transmitted on the address signal line 52 being demultiplexed, the first and second polling signal terminals are independently activated. The first polling signal terminal POLLING_GP_1 is used to simultaneously poll the slave circuits 4a-4c as a first group of slave devices through the first polling signal line 51a. The second polling signal terminal POLLING_GP_n is used to poll the slave circuit 4d through the second polling signal line 51b. It should be understood that in other embodiments, additional slave circuits may be included in the second polling group, or additional polling groups may be provided by providing additional polling signal terminals.
[0055] like Figure 6 As shown, Figure 5 The system shown can operate in the same manner as the first embodiment, where the generation of the polling signal is used to simultaneously refresh all slave circuits sharing the common polling signal lines 56a-56b, with only one slave circuit being selected per cycle to return data to the master SPI device 31. Thus, in this embodiment, a first group of three slave circuits 4a-4c or a second group of only slave circuits 4d can be refreshed separately by addressing their respective polling signal terminals. This can thereby allow different slave SPI devices 41 to be refreshed at different rates.
[0056] In this embodiment, the address signal generated at the address terminal on the master SPI bus is multiplexed with the most significant bit of the address signal, which is used to initiate the polling signal and specify which group of slave circuits will be polled by activating the corresponding polling signal terminal. The least significant bit of the address signal is used to specify which CS signal terminal will be activated. It will be appreciated that other multiplexing protocols may also be used.
[0057] Figure 7 A schematic diagram of a system according to a third embodiment is shown. This embodiment operates in substantially the same manner as the second embodiment, with the same reference numerals being used for corresponding features. However, in this embodiment, five slave devices 4a-4e are provided, and a single polling signal terminal on the master SPI device 31 is used to generate the first and second polling signals via a combination of additional AND and OR gates.
[0058] In this regard, the master circuit 31 also includes first and second OR gates 34a, 34b for generating first and second polling signals. Each OR gate 34a, 34b is connected to the polling signal terminal of the master SPI device 31 via the polling input terminal 51i and all corresponding CS signal lines 56a-56e of the slave circuits 4a-4e in their group. In order to facilitate the first polling group including the slave circuits 4a-4c, the polling AND gate 33a is connected to each of the CS signal lines 56a-56c. In this way, if a low-state active signal is applied to any CS signal line 56a-56c, the low-state active signal is output from the polling AND gate 33a and fed to the OR gate 34a. Similarly, the second polling group contains the fourth and fifth slave circuits 4d-4e, and therefore its polling AND gate 33b is connected to each of the CS signal lines 56d-56e. Likewise, if an active low signal is applied to any of the CS signal lines 56d-56e, the active low signal is output from its polling AND gate 33b and fed to the corresponding OR gate 34b.
[0059] With the above arrangement, when the polling input terminal 51i or their respective CS signal lines 56a-56d are maintained at high (logic low), the first OR gate 34a and the second OR gate 34b are maintained at a high (logic low) signal. However, if a low-state active signal is applied by both the polling input terminal 51i and one of the CS signal lines 56a-56c for the first polling group (the first OR gate 34a) or one of the CS signal lines 56d-56e for the second polling group (the second OR gate 34b), a low-state active polling signal is output by the corresponding OR gate 34a, 34b to activate all slave SPI devices 41 in the corresponding group, as in the second embodiment. Figure 8 Shows a summary Figure 7Logic table of the operation of the illustrated system. It should also be understood that other embodiments may include other slave circuits in any of the polling groups as well as other polling groups.
[0060] Fig. 9 The connections and integrated logic devices at each slave circuit are shown. The right hand side shows the input to each slave SPI device 41. As shown, the AND gate 42 outputs to the CS terminal (CSn\_slave) of the slave SPI device 41 and receives input from the corresponding CS signal line 56 (CS1\_μC) and the polling signal line 51 of the corresponding group. In an embodiment, the AND gate can be implemented using an open-drain 74hc09 integrated circuit. The MOSI signal line 54 and the clock signal line 53 are connected between the respective terminals on the master SPI device 31 and the slave SPI device 41. The output switch 43 is set in the MISO signal line 55 and is switched by the corresponding CS signal line 56. In an embodiment, the output switch 43 can be implemented using a 74hc125 integrated circuit.
[0061] It should be appreciated that embodiments may use discrete implementations of AND gate 42 and output switch 43 rather than utilizing integrated circuits. Fig.10 An illustrative discrete implementation of two AND gates 42 for controlling activation of two slave SPI devices 41 is shown.
[0062] It should be appreciated that the above arrangement allows multiple slave SPI devices to be quickly polled within a single SPI frame, thereby allowing their watchdog timers to be reset to prevent unintentional timeouts. In this way, the use of SPI frames for refresh cycles is minimized, freeing up time on the SPI bus for other operations. At the same time, the arrangement can allow the use of standard SPI integrated circuits because it does not require modification of the SPI clock signal or significant additional CS control signals, or the use of non-standard software. Therefore, this minimizes costs because off-the-shelf components can be used.
[0063] It should be understood that the above embodiments are only for illustrative purposes. In fact, the embodiments can be applied to many different arrangements, and the detailed embodiments are easy to implement for those skilled in the art.
[0064] In this regard, for example, it should be understood that although the CS signal terminal is provided on a demultiplexer in the above-described embodiments, in other embodiments, a demultiplexer is not required. For example, the CS signal terminal may be incorporated into the master SPI device.
[0065] Furthermore, the above illustrative example describes an arrangement that allows all slave devices in a group to be activated in the same SPI command frame in order to refresh their monitors. However, it should be understood that this arrangement can also be used for commands. That is, the entire group of slave devices can be turned on and instructed in the same command frame, thereby allowing those devices to receive commands from the master device at the same time. This can be done using Figure 4 The group command steps 72-76 shown are implemented.
Claims
1. A communication system, comprising: A main circuit, the main circuit comprising a main serial peripheral interface device, i.e., a main SPI device, having an input MISO terminal; as well as a plurality of slave circuits connected for communicating with the master circuit, each slave circuit comprising a slave SPI device, an activation terminal for activating the slave SPI device, and an output switch for connecting an output MISO terminal of the slave SPI device to the input MISO terminal when activated, Wherein, the main circuit further includes: a polling signal terminal, the polling signal terminal being used to transmit a polling signal to the activation terminal of at least a first group of slave circuits among the plurality of slave circuits, for activating respective slave SPI devices of the at least first group of slave circuits; and Multiple output chip select terminals, i.e., multiple output CS terminals, each of which can be independently activated to transmit a CS signal to both the activation terminal and the output switch of a corresponding slave circuit among the multiple slave circuits, for activating the corresponding slave SPI device and connecting its output MISO terminal to transmit data to the input MISO terminal.
2. The communication system according to claim 1, wherein: The master circuit further includes a demultiplexer connected to an address terminal provided on the master SPI device, and wherein the plurality of output CS terminals are provided on the demultiplexer and can be individually activated in response to demultiplexing of address signals from the address terminal.
3. The communication system according to claim 1 or 2, further comprising a second polling signal terminal for transmitting a second polling signal to the activation terminal of a second group of slave circuits among the plurality of slave circuits, for simultaneously activating the respective slave SPI devices of the second group of slave circuits.
4. The communication system according to claim 3, wherein: The main circuit further includes a polling logic structure, wherein the polling signal terminal and the second polling signal terminal are arranged on the polling logic structure, wherein the polling logic structure comprises a plurality of logic gates connected to a master polling terminal disposed on the master SPI device and the output CS terminals associated with the first group of slave circuits and the second group of slave circuits, and Wherein the polling logic structure is configured to transmit a polling signal from one of the first polling signal terminal and the second polling signal terminal in response to both a master polling signal and at least one CS signal associated with a slave circuit in a corresponding group.
5. The communication system according to claim 2, wherein: The polling signal terminal is also provided on the demultiplexer, and wherein the polling signal terminal is activated based on demultiplexing the address signal from the address terminal.
6. The communication system according to claim 1, wherein: The master SPI device includes a clock terminal for transmitting a clock signal to the plurality of slave SPI devices.
7. The communication system according to claim 1, wherein: The master SPI device includes an output MOSI terminal for transmitting data from the master SPI device to the plurality of slave SPI devices.
8. The communication system according to claim 7, further comprising: A MOSI line is connected between the output MOSI terminal and input MOSI terminals provided on the plurality of slave circuits.
9. The communication system according to claim 1, further comprising: a MISO line connected between the input MISO terminal and the output MISO terminals of the plurality of slave circuits; a polling signal line connected between the polling signal terminal and the activation terminals of the plurality of slave circuits; as well as A plurality of CS signal lines, each CS signal line being connected between one of the plurality of output CS terminals and the activation terminal of one of the slave circuits and the output switch.
10. A method of operating a communication system, the method comprising: Providing a master circuit, the master circuit comprising a polling signal terminal, a plurality of output CS terminals, and a master serial peripheral interface device, i.e., a master SPI device, having an input MISO terminal; providing a plurality of slave circuits, the plurality of slave circuits being coupled for communication with the master circuit, each slave circuit comprising a slave SPI device, an activation terminal, and an output switch; transmitting a polling signal from the polling signal terminal to the activation terminal of at least a first group of slave circuits among the plurality of slave circuits for activating respective slave SPI devices of the at least first group of slave circuits, wherein the respective output MISO terminals are prevented from transmitting data to the input MISO terminal through the output switch unless the output switch is activated; as well as A CS signal is transmitted from each of the output CS terminals to a corresponding slave circuit among the plurality of slave circuits for activating its activation terminal to activate the corresponding slave SPI device, and for activating the output switch to connect its output MISO terminal to the input MISO terminal so as to transmit data thereto.
11. The method according to claim 10, further comprising transmitting a sequence of SPI frames, wherein: Each SPI frame includes transmitting a polling signal and a CS signal from one of the output CS terminals to a corresponding slave circuit, wherein the CS signal is transmitted from a different output CS terminal in each frame of the SPI frame sequence for sequentially connecting the corresponding output MISO terminal of the slave circuit to the input MISO terminal.
12. The method according to claim 10, wherein: The step of providing a master circuit further includes: providing a demultiplexer connected to an address terminal provided on the master SPI device, wherein the plurality of output CS terminals are provided on the demultiplexer, and The method further comprises the following steps: transmitting an address signal from the address terminal to the demultiplexer; demultiplexing the address signal at the demultiplexer; and A CS signal is generated from one of the output CS terminals based on the demultiplexed address signal for transmission to a corresponding one of the plurality of slave circuits.
13. The method according to claim 12, wherein: The step of demultiplexing the address signal includes selecting one of the output CS terminals to transmit the CS signal based on one of the least significant bit of the address signal or the most significant bit of the address signal.
14. The method according to claim 12 or 13, wherein: The step of providing a demultiplexer further includes: setting the polling signal terminal on the demultiplexer, and The method further includes: generating the polling signal from the polling signal terminal based on the demultiplexed address signal.
15. The method according to claim 14, wherein: The demultiplexing of the address signal includes selecting to generate a polling signal from the polling signal terminal or to generate a second polling signal from a second polling signal terminal based on one of a most significant bit of the address signal or a least significant bit of the address signal.
Citation Information
Patent Citations
Data structures and circuit for multi-channel data transfers using a serial peripheral interface
CN101331445A
Communicated method, communication system and communication routing device based on SPI bus
CN101582823A
