Unlock instant, AI-driven research and patent intelligence for your innovation.

UART serial communication method based on gpio handshake and edma

A serial communication and channel technology, applied in the field of serial communication, can solve problems such as low efficiency, no specified data packet boundary, inability to use DSP memory location flexibly, etc., to avoid reading errors, improve data storage services, and reduce size. Effect

Active Publication Date: 2019-03-22
GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Only one data symbol (5 to 8 data bits) is sent and received at a time. If CPU intervention is required for each data symbol, the efficiency is very low
[0004] 2. When using the serial port for burst data packet transmission, the serial port communication protocol itself does not stipulate how to divide the boundary of the data packet, and it is necessary to realize the boundary of the data packet by itself
[0006] 1. The DSP device using this technology must have a virtual port and a virtual FIFO controller
[0007] 2. The cache FIFO must be located in the address of the peripheral components, and the memory locations such as L2 and DDR of the DSP cannot be flexibly used

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
  • UART serial communication method based on gpio handshake and edma
  • UART serial communication method based on gpio handshake and edma

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0049] UART serial port communication method based on GPIO handshake and EDMA, including the following steps:

[0050] S1. Designate a buffer for sending and receiving data;

[0051] The cache address space of the cache includes the L2 address in the DSP chip, the DDR address, and other peripheral addresses that can be accessed by EDMA;

[0052] S2. When using UART to send data, use EDMA to move the data to be sent to the sending FIFO of UART, and then send it to the peer device by UART;

[0053] The duration of the timer is determined by the physical delay on the sending link;

[0054] Such as figure 2 , the use of UART for data transmission, specifically:

[0055] (1) The CPU application program is used as the source of data transmission, first configure the trans...

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 UART (universal asynchronous receiver / transmitter) serial port communication method based on GPIO (general purpose input / output) handshake and EDMA (enhanced direct memory access). According to the method, data migration from transmitting and receiving FIFO of UART to an external data buffer is completed automatically on the basis of an EDMA function, and frequent intervention of CPU (central processing unit) is not needed; a receiving terminal is informed through GPIO handshake signals to receive data packets, and the boundaries of the received data packets can be rapidly distinguished and an address of a next to-be-received data packet can be automatically updated; therefore, the efficiency of communication adopting UART serial ports is greatly improved, frequent interruption to CPU processing is reduced when the UART transmits and receives the data pockets, and the utilization rate of CPU resources can be increased. Meanwhile, according to the scheme, the GPIO signals are utilized to have an appointment with opposite terminal equipment, and convenience produced when the opposite terminal equipment uses the UART for receiving is improved to a certain degree, so that the work efficiency of communication adopting the UART serial ports is improved at the level of the overall system.

Description

technical field [0001] The invention relates to the field of serial port communication, in particular to a UART serial port communication method based on GPIO handshake and EDMA. Background technique [0002] UART is the abbreviation of Universal Asynchronous Receiver / Transmitter, that is, universal asynchronous receiving and sending. When it is used as the sending side of DSP, it can convert the parallel data to be sent by DSP into serial data and send it to the peripheral device of DSP. When it is used as DSP On the receiving side, the serial data sent by the DSP peripheral can be converted into parallel data and received. Because the UART hardware connection is simple and the communication protocol is easy to implement, it is widely used in embedded systems and industrial control systems. But the traditional serial port protocol has two defects: [0003] 1. Only one data symbol (5 to 8 data bits) is sent and received each time. If the CPU is required to intervene in pro...

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 Patents(China)
IPC IPC(8): G06F13/38
CPCG06F13/385
Inventor 刘玉珠窦小龙
Owner GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD