Cooperation method and system for SPI double master devices to access same slave device
The embodiment of the invention discloses a cooperation method and system for SPI double master devices to access the same slave device, and the method comprises the steps: respectively setting the two master devices as a master device and a slave device in advance, enabling the master device to be...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a cooperation method and system for SPI double master devices to access the same slave device, and the method comprises the steps: respectively setting the two master devices as a master device and a slave device in advance, enabling the master device to be used for managing the communication control right of an SPI bus, and enabling the slave device to beused for receiving and returning the communication control right of the SPI bus; judging whether the SPI bus communication control right of the master device reaches handover time or not, and if thehandover time is up, sending an SPI bus communication control right release signal to the slave device by the master device; judging whether slave equipment needs to access auxiliary equipment or not,if so, receiving the SPI bus communication control right by the slave device, and accessing the auxiliary equipment by the slave device through the SPI bus; and after the slave device completes access to the auxiliary equipmen |
---|