Supercharge Your Innovation With Domain-Expert AI Agents!

Double buffering data transmission method based on serial peripheral interface (SPI) bus communication protocol

A data transmission method and SPI bus technology, applied in the field of data transmission, can solve problems such as errors and output frame verification, and achieve the effects of eliminating output error frames, good adaptability, and convenient and flexible transmission methods

Active Publication Date: 2015-12-23
BEIJING INST OF AEROSPACE CONTROL DEVICES
View PDF1 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The data output request of the master device may be sent at any time, if the operation is directly performed on the send buffer of the slave device, there is a risk of output frame checksum error

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
  • Double buffering data transmission method based on serial peripheral interface (SPI) bus communication protocol
  • Double buffering data transmission method based on serial peripheral interface (SPI) bus communication protocol
  • Double buffering data transmission method based on serial peripheral interface (SPI) bus communication protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Such as figure 1 Shown is the flow chart of method among the present invention, from figure 1 As can be seen, a kind of double-buffering data transmission method based on SPI bus communication protocol that the present invention proposes, concrete steps are as follows:

[0028] (1) The slave device allocates two buffers for data transmission, respectively named buffer A (Flag_up=0) and buffer B (Flag_up=1), such as figure 2 shown. Carry out system initialization, set the current sending buffer as buffer A, and set the initial value of the flag, such as image 3 shown. The data frame includes a frame header mark, a data field and a check code; the length of the frame header mark is 1 to 2 bytes, the length of the check code is 1 to 2 bytes, and the check code is 8 to 16 bits checksum. A format for sending data frames is shown in Table 1:

[0029] Table 1

[0030] illustrate

content

length (bytes)

header flag

0xAA, 0x2A

2

d...

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

A double buffering data transmission method based on a serial peripheral interface (SPI) bus communication protocol is provided. Two buffering zones are distributed for data transmission in slave equipment and are used for data transmission and data updating respectively, and different flag bits are utilized to control switching between the two buffering zones, thereby realizing stable and reliable transmission of output frames between master equipment and the slave equipment, and eradicating the possibility of outputting error frames.

Description

technical field [0001] The invention relates to a double-buffering data transmission method, in particular to a double-buffering data transmission method based on the SPI bus communication protocol, which belongs to the data transmission technology and can be used in occasions where the SPI bus communication protocol is used for data transmission. Background technique [0002] SPI (SerialPeripheralInterface, Serial Peripheral Interface) is a high-speed, full-duplex, synchronous communication bus introduced by Motorola. It works in a master-slave manner, and is mainly used in high-speed communication between microprocessors and peripherals. It has the characteristics of fast speed, simple communication protocol, and less pin occupation. It is a commonly used standard interface, which is easy to use and saves system resources. The SPI bus communication protocol usually has a master device and one or more slave devices, which require 4 lines, which are MISO (master device data...

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): G06F13/42
CPCG06F13/4291
Inventor 郭涛黄超罗强力
Owner BEIJING INST OF AEROSPACE CONTROL DEVICES
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More