A method and device for calibrating a clock using uart communication
A clock and communication technology, applied in the computer and communication fields, can solve problems such as increased cost, abnormal baud rate of UART communication, failure to apply, etc., and achieve the normal effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0035] The present invention will be further described below in conjunction with the accompanying drawings.
[0036] refer to figure 1 and figure 2 , a kind of method utilizing UART communication calibration clock, comprises the steps:
[0037] Step 01: Detect the falling edge signal of UART RXD, if the falling edge is detected, execute step 2 to start the automatic calibration process;
[0038] Step 02: Start the counter to count the output clock of the internal oscillator;
[0039] Step 03: Wait for the UART RXD signal to become high, and check whether it is timed out at the same time. If the UART RXD does not become high and does not time out, continue to wait until the UART RXD becomes high or timeout, and then perform step 04;
[0040] Step 04: Determine whether it is timed out, if it is timed out, exit the automatic calibration process, and execute step 01 again; if it does not time out, execute step 05;
[0041] Step 05: Obtain the counter value, which is M;
[00...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

