Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Full-duplex asynchronous serial communication method

An asynchronous serial communication, full-duplex technology, applied in the field of electrical communication, can solve problems such as sampling confusion, system crash, serial communication signal offset, etc., to improve work efficiency, serial communication stability, and reduce clock offset. shift effect

Inactive Publication Date: 2014-02-12
HARBIN INST OF TECH SHENZHEN GRADUATE SCHOOL
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are generally two ways to realize serial communication between two different microprocessors. One is that two microprocessors perform asynchronous serial communication through their respective CPUs and asynchronous serial ports; the other is to use an external serial port. Line communication chip, this method is relatively simple to program, but increases the hardware cost and design cost, so the first simple communication method has been widely used, but as the microprocessor handles more and more tasks, The speed is getting faster and faster. This simple asynchronous serial port communication requires CPU processing for each byte processing, which seriously affects the efficiency of the microprocessor. Moreover, the current microprocessor clocks are all high-speed clocks, crystal oscillators There are more or less errors, plus some other physical factors, such as the delay of the signal line and the drawing board, etc. After frequency division or frequency multiplication, the precise synchronization of serial communication cannot be guaranteed, which may easily cause errors in serial communication. Signal offset and clock offset have a cumulative effect, the consequence is that the sampling is confused, and more seriously, it will cause the system to crash

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
  • Full-duplex asynchronous serial communication method
  • Full-duplex asynchronous serial communication method
  • Full-duplex asynchronous serial communication method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0032] Such as figure 1 As shown, the present invention is realized in this way, a kind of efficient and stable full-duplex asynchronous serial communication method: in simple terms, utilize McBSP (multi-channel buffered serial port) and DMA (direct memory access) to directly realize asynchronous serial communication Communication, and then oversample the received data stream and limit the clock skew within a certain range, making the serial communication more stable and CPU efficient.

[0033] During serial communication, first initialize the two microprocessors, the data sent and received by the microprocessors are stored in the data memory, in order to realize high-speed processing, reduce the number of interrupts that the CPU responds to the McBSP data register. The data transmission between sending and receiving data and McBSP sending and...

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 relates to the field of communication, in particular to a full-duplex asynchronous serial communication method. The method comprises the following steps of the step 1, carrying out pre-communication on two microprocessors to carry out first clock detection, the step 2, initializing the two microprocessor in serial communication, storing data sent and received by the two microprocessors into a data storer and finishing the data transmission between the sent and received data and a transmitting register DXR of an McBSP and data transmission between the sent and received data and a receiving register DDR through a DMA channel, the step 3, sending data and packing characters to be sent into data formats received by serial communication when the data are sent, and the step 4, receiving the data and sampling and correcting the received data flow to carry out second clock detection. On the premise without increasing hardware cost, the full-duplex asynchronous serial communication method improves the work efficiency of a CPU, reduces clock skew between signals and enables serial communication to be more stable, efficient, low in cost and simple and easy to achieve.

Description

technical field [0001] The invention relates to the technical field of electrical communication, in particular to a full-duplex asynchronous serial communication method. Background technique [0002] With the wide application of multi-microcomputer systems and the popularization of computer network technology, the communication between microprocessors is becoming more and more important. There are two ways of communication, parallel communication and serial communication. In multi-microcomputer systems and modern measurement and control systems The exchange of information in the computer mostly adopts serial communication. [0003] At present, there are generally two ways to realize serial communication between two different microprocessors. One is that two microprocessors perform asynchronous serial communication through their respective CPUs and asynchronous serial ports; the other is to use an external serial port. Line communication chip, this method is relatively simpl...

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): G06F15/163G06F9/38H04L5/14
Inventor 杨军超周中华张驹鹏林镇葵王明江
Owner HARBIN INST OF TECH SHENZHEN GRADUATE SCHOOL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products