High-speed SPI master-slave communication method, terminal equipment and storage medium
A communication method, SPI bus technology, applied in the direction of instrumentation, electrical digital data processing, etc., can solve problems such as misalignment, and achieve the effect of ensuring synchronization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] Such as Figure 1-4 As shown, according to an aspect of the present invention, a kind of high-speed SPI master-slave communication method is provided, and it may comprise the following steps:
[0025] S1: Connect the master and slave through the five-wire SPI bus, which is based on the existing four-wire (chip select signal line CS (Chip select), clock signal line SCLK (Serial Clock), master output / slave Machine input signal line MOSI (Master Output Slave Input) and master input / slave output signal line MISO (Master Input SlaveOutput)) type SPI bus is formed by adding a synchronous signal line SYNC, such as figure 1 shown. The synchronization signal line is connected to the GPIO of the host MCPU and the slave SCPPU, and a high level indicates that the slave SCPPU has data to send. Through the synchronous signal SYNC, the host MCPU can be notified, and the data exchange time between the MCPU and the SCPPU can be synchronized.
[0026] S2: Restrict the use of block com...
Embodiment 2
[0037] It may include a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements the steps in the above method embodiments when executing the computer program, for example, the embodiment 1, steps 1-7 and other method steps, or when the processor executes the computer program, the functions of the modules / units in the above device embodiments are realized.
[0038] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0039] The terminal device may be a computing device such as a desktop computer, a notebook,...
Embodiment 3
[0043] The present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the steps of the above-mentioned method are implemented, for example, in Embodiment 1 Steps 1-7 and other method steps.
[0044] Each module / unit of a computer program may be stored in a computer-readable storage medium if it is realized in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program...
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