SPI communication method and device and storage medium
A communication method and cache technology, applied in duplex signal operation, instrumentation, electrical digital data processing, etc., can solve the problems of pin occupation, multi-PCB space, increase the complexity of chip hardware design and implementation, etc., to ensure data, Simple layout and stable transmission effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] refer to figure 1 As shown, the embodiment of the present application provides a SPI communication method including:
[0047] S100, the SPI sending end transmits information to the SPI receiving end with the first message in the preset data format. The first message includes: valid data and valid data check code; Whether there is data that needs to be sent to the target SPI receiver, and if there is, the data is encapsulated into a corresponding first message according to the preset data format of the first message. refer to figure 2 As shown, the content of the first message includes but is not limited to: valid data length, valid data and valid data check code, wherein, in the preset data format of the first message, the valid data length and valid data check code The verification codes are configured with a fixed number of digits, and the valid data length, valid data and valid data check codes are arranged in sequence. A feasible way is to set an 8-bit valid dat...
Embodiment 2
[0071] combined reference Figure 6 and Figure 7 As shown, the embodiment of the present application provides an apparatus for realizing the SPI communication method, including an SPI sending end and an SPI receiving end.
[0072] The SPI sending end and the SPI receiving end are connected through MOSI signal line, MISO signal line, SCLK clock line and SS chip select line. Among them, the MOSI signal line connects the Tx channel of the SPI sending end and the Rx channel of the SPI receiving end, and transmits the data sent by the SPI sending end to the SPI receiving end; the MISO signal line connects the Rx channel of the SPI sending end and the Tx channel of the SPI receiving end, and the transmission is received by the SPI The data sent by the end to the SPI sender. The SCLK clock line is used to transmit the clock signal sent by the SPI transmitter to the SPI receiver, and the clock signal is used to control the data transmission between the SPI transmitter and the SPI r...
Embodiment 3
[0083]The present application provides a storage medium for implementing the SPI communication method. The storage medium for implementing the SPI communication method stores at least one instruction, and the instruction is read and executed to implement the SPI communication method.
[0084] In this application, the SPI receiving end calculates the check value of the valid data of the first message, and judges the valid data received by the SPI receiving end by comparing the check value of the valid data with the valid data check code contained in the first message integrity. The error checking of valid data in the first message in the SPI communication process is realized.
[0085] The SPI receiving end forms a second message according to the valid data verification situation and the state that the FIFO buffer of the SPI receiving end can continue to receive the first message, and sends the second message to the SPI sending end using the MISO signal line. Realize the commun...
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