DMA-based method for automatically defining ending of variable-length frame in communication among SPI devices

An inter-device communication and device technology, which is applied in the field of automatically defining the end of variable-length frames, can solve the problems of DMA reception errors, high processing performance, and lack of versatility, and achieves the effect of avoiding error accumulation.

Inactive Publication Date: 2020-03-06
NANJING SCIYON AUTOMATION GRP
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above-mentioned method 1 is relatively common, but the existing problems are also obvious. First, the receiver needs to be able to respond quickly, handle the interrupt within one byte, and complete the DMA setting, which has a high impact on the processing performance of the receiving device. Second, error accumulation may occur. Since the first byte is required to set the DMA, the communication quality needs to be very reliable. Otherwise, when the communication process is disturbed, the length of the first byte is set incorrectly, which will cause DMA. The receiving error is wrong, and the subsequent processing of DMA must meet the initial setting to trigger, resulting in the accumulation of unrecoverable continuous communication errors; method 2 has certain special requirements, that is, the chip device needs to have a special idle interrupt function, and this function Not all chip devices are shared, and do not have general versatility

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
  • DMA-based method for automatically defining ending of variable-length frame in communication among SPI devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with the accompanying drawings.

[0019] Such as figure 1 , a method for automatically defining the end of a variable-length frame based on DMA-based communication between SPI devices of the present invention, including a general SPI communication model composed of two devices with integrated SPI interfaces, with one SPI device in the communication model as the main device, Another SPI device is a slave device, the master device initiates communication, and the half-duplex data transmission direction of the slave device response is taken as an example.

[0020] The main device includes interfaces: chip select output signal (CSO), clock output signal (SCKO) and data output signal interface (MOSI). The slave device includes interfaces: chip select input signal (CSI), clock input signal (SCKI), data input signal (MOSI) and chip select level value change monitoring interface.

[0021] The method of the p...

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 DMA-based method for automatically defining ending of a variable-length frame in communication among SPI devices. A branch signal is led out from a chip selection output signal in the master device and is connected to a chip selection level value change monitoring interface in the slave device. When one frame of message of the master device is sent completely, both the level value of a chip selection output signal in the master device and the level value of a branch signal of the chip selection output signal are changed. And the slave device detects the change of thelevel value through the chip selection level value change monitoring interface to judge the end of the primary communication, defines that the sending of a frame of message of the master device is ended, and then performs subsequent message receiving processing and DMA attribute configuration of the slave device for the next communication. In the SPI communication adopting the DMA mode, the SPI master device can flexibly send the message frame with the variable length, and the slave device can accurately and automatically define the frame tail of one frame of variable-length frame message of the master device.

Description

Technical field: [0001] The invention relates to a method for automatically defining the end of a variable-length frame in communication between SPI devices based on DMA. Background technique: [0002] With the development of semiconductor and integrated circuit technology, chip devices with various forms and rich functions have entered all aspects of life and industrial applications, and the information interaction between chips has become a key part of system operation. An interface for communication, because of its simple physical interface, fast transmission speed, and stable transmission quality, it is widely integrated in the communication interface module of chip equipment. [0003] There are three main ways to implement SPI communication: direct unbuffered communication, FIFO buffered communication, and DMA communication. Among them, the first type of direct unbuffered communication, each communication can only realize data transmission with a length of up to 4 byte...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/28G06F13/42
CPCG06F13/28G06F13/4291
Inventor 芮正新张继淮陈闯陈刚峰
Owner NANJING SCIYON AUTOMATION GRP
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