Data transmission realizing method and system based on SPI

A technology of data transmission and data, which is applied in the field of communication, can solve problems such as complex software implementation and handshake scheme protocol implementation complexity, and achieve the effects of low implementation cost, simple implementation scheme, and improved transmission efficiency

Inactive Publication Date: 2009-10-07
深圳市智通天下科技服务有限公司
View PDF0 Cites 54 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of implementing the present invention, the inventor found that the SPI handshake implementation mechanism provided by the prior art only has two signal lines in oppos

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data transmission realizing method and system based on SPI
  • Data transmission realizing method and system based on SPI
  • Data transmission realizing method and system based on SPI

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0036] Example 1

[0037] in figure 1 On the basis of, this embodiment takes the AP (master device) in one-way data transmission sending data to the Modem (slave device) as an example for description, see figure 2 The content of the method provided by the embodiment of the present invention is as follows:

[0038] Step 101: When the AP wants to send data to the modem, the AP sends the MREQ signal to the modem through the MREQ line;

[0039] Among them, this embodiment uses the AP as the master device as an example. After the AP sends the MREQ signal to the Modem through the MREQ line, it waits to receive the SRDY signal returned from the Modem.

[0040] Step 102: After the Modem receives the MREQ signal, it judges whether it is in a sleep state, if it is, go to step 103; otherwise, go to step 104;

[0041] Step 103: Modem wakes up from sleep, and then executes step 104;

[0042] Among them, if the Modem is in the sleep state when receiving the MREQ signal, the sleep state is awa...

Example Embodiment

[0086] Example 2

[0087] in figure 1 On the basis of, this embodiment takes the Modem (slave device) in one-way data transmission sending data to the AP (master device) as an example for description, see Figure 6 , The content is as follows:

[0088] Step 301: When the modem wants to send data to the AP, it sends an SREQ signal to the AP through the SREQ line.

[0089] Among them, when the modem wants to send data to the AP, it can confirm that the last sending has been completed by the modem, or the modem sends data to the AP for the first time, and the SREQ signal is used to notify the AP to receive data. After the modem sends the SREQ signal to the AP through the SREQ line, it waits to receive the MRDY signal returned from the AP.

[0090] Step 302: The AP receives the SREQ signal sent by the Modem, and judges whether the AP itself is in a sleep state, if so, go to step 303; otherwise, go to step 304;

[0091] Step 303: The AP wakes up from the sleep state, and then executes...

Example Embodiment

[0134] Example 3

[0135] in figure 1 On the basis of, this embodiment takes the process of the AP (master device) sending data to the modem (slave device) in two-way data transmission, and the modem sending data to the AP as an example for description, see Picture 10 , The content is as follows:

[0136] Step 501: During the process of the AP sending data to the modem, if the modem needs to send data to the AP, the modem sends the SREQ signal to the AP through the SREQ line;

[0137] Among them, the SREQ signal is used to notify the AP to receive data.

[0138] Step 502: The AP receives the SREQ signal sent by the Modem, and the AP clears its own receive FIFO;

[0139] Step 503: The AP judges whether the DMA transfer between the receiving FIFO and the off-chip memory is over, if yes, then go to step 504; otherwise, wait for the end of the transmission, and then go to step 504;

[0140] Step 504: The AP sets the RWOT mode. After the RWOT mode is set, the AP sends the MRDY signal...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data transmission realizing method and system based on SPI, belonging to the communication field. When the data is sent to a slave device by a master device, the MREQ signal is sent to the slave device through a MREQ line by the master device and a data package of first package is sent to the slave device by a master device output slave device input data line MOSI wherein the packaged data package is carried with a packet head mark and a length mark, after the SRDY signal from the slave device is received through a SRDY line. When the data is set to the master device from the slave device, the SREQ signal is sent to the master device from the slave device by a SREQ line and a data package of second package is sent to the slave device by the master device input slave device output data line MOSI after the SREQ signal is sent to the master device from the slave device by the SREQ line. The method and device realize high-speed data transmission based on SPI interface, with features of simple scheme, low cost, easy realization of handshake mechanism, reduced workload of the master device and the slave device and increased transmission efficiency.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for realizing data transmission based on SPI. Background technique [0002] With the development of communication technology, the current common architecture of smart mobile terminals is a communication Modem plus AP (Application Processor, application processor), where the AP is used to run applications and media-related programs, and the Modem is used to run communication-related program. In broadband mobile technologies such as HSPA (High-Speed ​​Packet Access) and HSPA+ (enhanced high-speed packet access), high-speed data transfer between Modem and AP is required to meet user needs. [0003] Therefore, in order to achieve the purpose of high-speed data transfer between the Modem and the AP, the prior art provides RAM (Random Access Memory, Random Access Memory) on the Modem side and the AP side respectively, and caches received data and cache data through the RA...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/56H04L29/06
Inventor 桑伟潘时林
Owner 深圳市智通天下科技服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products