Single-bus asynchronous serial port communication system and communication method thereof

An asynchronous serial port and communication system technology, applied in the field of communication, can solve the problems of low implementation efficiency and complex interface lines, achieve the effects of fast and accurate automatic detection, reduce complexity, and save chip costs

Active Publication Date: 2017-03-22
北京中科银河芯科技有限公司
View PDF5 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing universal asynchronous serial communication system has the problem that the interface line is too complicated, and the baud rate needs to be adjusted for normal communication when serial communication between different devices
Although there are many technologies for automatic baud rate detection, they are all based on software configuration or table lookup for baud rate matching, and the implementation efficiency is not high enough.

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
  • Single-bus asynchronous serial port communication system and communication method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] see figure 1 , in order to comply with a single-bus asynchronous serial communication system described in this embodiment, including: a master device and a slave device, the master device and the slave device are connected through a data bus, and the slave device has a built-in There is a serial port communication interface circuit, which realizes automatic detection and adjustment of the baud rate of the master device, accepts control commands and data from the master device, and returns corresponding response data.

[0026] Preferably, the serial port communication interface circuit includes: a rising edge detection module, a falling edge detection module, a pulse width counter, a receiving counter, a shift register, a misalignment comparator, a receiving data buffer, and a word counter, wherein the rising edge detection module, the falling edge detection module, and the shift register are all connected to the data bus for receiving data sent by the data bus; the risi...

Embodiment 2

[0031] A communication method based on the single-bus asynchronous serial port communication system described in embodiment 1, comprising the steps of:

[0032] Baud rate automatic detection steps: After power-on, the master device sends OX01 data to the slave device, and the slave device calculates the current communication baud rate by detecting the width between the first falling edge and the first rising edge on the data bus; Specifically, a pulse width counter is used to start counting from the falling edge and stop when the rising edge comes. The clock of the counter comes from the reference clock signal inside the circuit, and the frequency of the clock signal is much higher than the baud rate. The data recorded by the pulse width counter represents the current baud rate, and the pulse width counter will be locked after the first count, and will not be triggered by the falling edge of the data line to count again, unless the system is reset or the host sends baud rate ...

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 single-bus asynchronous serial port communication system and a communication method thereof. The single-bus asynchronous serial port communication system comprises master equipment and slave equipment, wherein the master equipment is connected with the slave equipment through a data bus; and a serial port communication interface circuit is arranged in the slave equipment, and the slave equipment realizes Baud rate detection and adjustment of the master equipment, receives a control command and data of the master equipment and returns corresponding response data. The single-bus asynchronous serial port communication system transmits data through a single bus, and automatic Baud rate detection is realized by adopting a bit width counting and comparing technology; namely, the slave equipment can transmit data to the master equipment only via one data bus, so that the complexity of a communication interface is greatly reduced; by the adoption of the special bit width counting and comparing technology, the communication Baud rate can be automatically detected quickly and accurately through the automatic Baud rate detection; and the number of adopted integrated circuit transistors is small, and the chip cost is reduced.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a single-bus asynchronous serial port communication system and a communication method thereof. Background technique [0002] Universal asynchronous serial communication has the characteristics of simple protocol, low power consumption and long transmission distance, and is widely used in various low-speed digital communication interfaces. In a standard asynchronous serial transceiver system, four wires need to be connected between the master device and the slave device, which are the serial data transmission line (TX), the serial data reception line (RX), the send data request line (RTS), and the clear-to-send line (CTS). The existing universal asynchronous serial communication system has the problem that the interface lines are too complicated, and the baud rate needs to be adjusted for normal communication when serial communication is performed between different devices....

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/40G06F13/42
CPCG06F13/4068G06F13/4291
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