Communication mode configuration method and device of SPI protocol master-slave equipment

The embodiment of the invention provides a communication mode configuration method and device for SPI (Serial Peripheral Interface) protocol master and slave equipment, and relates to the technical field of communication, if a slave equipment configuration mode is selected as hardware configuration,...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SONG JIAQIANG, HUANG JUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a communication mode configuration method and device for SPI (Serial Peripheral Interface) protocol master and slave equipment, and relates to the technical field of communication, if a slave equipment configuration mode is selected as hardware configuration, master equipment pulls up a chip selection signal sent to the slave equipment through a chip selection pin; then, a command stream is generated according to a master device communication mode configured by software, the master device sends the command stream to the slave device through the MOSI line, and a clock signal is generated through a clock pin, so that the slave device carries out configuration according to the command stream, and sends a completion mark to the master device through the MISO line after the configuration is completed; and the master device stops generating the clock signal and pulls down the chip selection signal according to the received completion mark so as to communicate with the slave