Communication device based on SPI communication interface and communication method thereof
A technology of SPI interface and communication device, which is applied in the field of communication and can solve the problems of inability to communicate between the master and the master and the slave and the slave, no one provides the clock signal, and the communication cannot be completed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Such as figure 1 As shown, the communication device based on the SPI communication interface includes a single-chip microcomputer and two SPI hardware peripheral interfaces;
[0027] Such as figure 2 As shown, when communicating between two slave devices, the two SPI hardware interfaces are initialized in master mode.
[0028] The two SPI hardware peripheral interfaces are a serial bus communication mode.
[0029] The single-chip microcomputer is connected with two SPI hardware peripheral interfaces and is connected with the SPI hardware peripheral interface through the SPI interface on the single-chip microcomputer.
[0030] The single-chip microcomputer model is STM32F103RCT6.
[0031] Such as image 3 As shown, both SPI hardware interfaces shown are initialized in slave mode when communication between the two master devices occurs.
[0032] The two SPI hardware peripheral interfaces are a serial bus communication mode.
[0033] The single-chip microcomputer is...
Embodiment 2
[0037] Such as Figure 4 As shown, the communication method of the communication device based on the SPI interface includes: two SPI hardware peripheral interfaces perform data transmission and reception control between two slave devices or two master devices, and the two SPI hardware peripheral interfaces are controlled by the CPU. Data copying and rate conversion. When the two SPI hardware peripheral interfaces carried out data exchange between the slave equipment and the slave equipment, the two SPI hardware peripheral interfaces all used the master mode, and the slave equipment A received the read data command from SPI1, and the reception of the SPI1 interface The buffer area receives the data sent from device A, and the CPU copies the data from the receiving buffer area of the SPI1 interface, and sets the sending rate of the SPI2 interface, and sends the data to the sending buffer area of the SPI2 interface to send data to the slave device B; Device B receives the re...
Embodiment 3
[0039] Such as Figure 5 As shown, the communication method of the communication device based on the SPI interface includes: two SPI hardware peripheral interfaces perform data transmission and reception control between two slave devices or two master devices, and the two SPI hardware peripheral interfaces are controlled by the CPU. Data copying and rate conversion. .
[0040]Two SPI hardware peripheral interfaces exchange data between the master device and the master device. Both SPI hardware peripheral interfaces use the slave mode. The SPI1 interface receives the write and fetch data command from the master device A, and the receiving buffer area of the SPI1 interface To receive the data sent by the master device A, the CPU copies the data from the receiving buffer of the SPI1 interface to the sending buffer of the SPI2 interface, the master device B sends a read data command to SPI2, and SPI2 returns the sending buffer data to the master device B; SPI2 The interface re...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com