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

Serial communication baud rate identification method, device, microcontroller and system

A serial communication and microcontroller technology, applied in the field of serial communication, can solve problems such as calculation errors and data communication failures, and achieve the effect of improving reliability

Active Publication Date: 2017-02-22
BEIJING JINGWEI HIRAIN TECH CO INC
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a serial communication baud rate identification method and device to solve the risk of the adaptive baud rate identification method used in the prior art. When the data is disturbed, it will The technical solution for the problem that leads to calculation errors and data communication failures is as follows:

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
  • Serial communication baud rate identification method, device, microcontroller and system
  • Serial communication baud rate identification method, device, microcontroller and system
  • Serial communication baud rate identification method, device, microcontroller and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] see figure 1 , which is a schematic flow chart of a serial communication baud rate identification method provided by an embodiment of the present invention, the method is applied to a microcontroller, and the method may include:

[0052] Step S101: Obtain pulse width data.

[0053] Wherein, the pulse width data includes 8 pulse width times.

[0054] Step S102: Determine whether the pulse width data satisfies a first preset condition.

[0055] Wherein...

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 provides a serial communication baud rate identification method and device, a microcontroller and a system. The method comprises the steps of acquiring pulse width data which comprise eight pulse width time values, determining whether the pulse width data meet a first preset condition, determining the largest pulse width time value and the smallest pulse width time value from the pulse width data when the pulse width data meet the first preset condition, calculating the average pulse width time value of pulse width time values except the largest pulse width time value and the smallest pulse width time value, determining whether the pulse width data meet a second preset condition based on the average pulse width time value, and determining the serial communication baud rate through the average pulse width time value when the pulse width data meet the second preset condition. The serial communication baud rate identification method and device, the microcontroller and the system can solve the problem of baud rate error calculation caused by interference and can improve the reliability of serial communication.

Description

technical field [0001] The invention relates to the technical field of serial communication, in particular to a serial communication baud rate identification method, device, microcontroller and system. Background technique [0002] For serial communication, the correct transmission and reception of data can only be realized when the baud rate of both parties in communication is the same. And some systems always hope to achieve compatibility with various baud rates. The usual implementation method is to require the other party to send the specified characters or data first, and after the system receives the characters and data, calculate the baud rate of the other party to work with the baud rate of the other party. [0003] The inventor found in the process of realizing the invention that: most of the adaptive baud rate identification methods currently used are the calculation method of calculating the average value after measuring the pulse width. However, there is a risk ...

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
Inventor 台生斌吴晓东付宽曹海建
Owner BEIJING JINGWEI HIRAIN TECH CO INC