Baud rate self-adaption method based on input capture function of singlechip
Patent Information
- Authority / Receiving Office
- CN ยท China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGBO SANXING MEDICAL & ELECTRIC CO LTD
- Publication Date
- 2012-01-04
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of serial communication, in particular to a baud rate adaptive method based on the input capture function of a single-chip microcomputer. Background technique
[0002] RS485 communication is the same as serial port communication, sending and receiving byte data bit by bit. Although slower than byte-wise parallel communication, a serial port can send data on one wire while receiving data on the other. There is no synchronous clock line between them, which requires the sending and receiving parties to ensure that the communication rate is the same, otherwise there will be an error code. The most important parameters of serial communication are baud rate, data bits, stop bits and parity. These parameters must match for both ports to pass through. The realization of baud rate self-adaptation is to judge the uplink baud rate to adjust its own communication baud rate to realize the matching of communication rate. [000...