Clock correction method based on asynchronous communication and electric energy meter

The invention discloses a clock correction method based on asynchronous communication and an electric energy meter. The correction method is used for correcting a clock error of an RC in an MCU, after the internal RC is started to serve as a clock source of the MCU, the MCU receives data sent by an...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: JIANG WENHAO, HE YAN, JIA BIN, YIN XIKE, LI HAIYAN, MA JINCHEN, XU QIN, LIU JUNLEI, QIN ZONGYA
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a clock correction method based on asynchronous communication and an electric energy meter. The correction method is used for correcting a clock error of an RC in an MCU, after the internal RC is started to serve as a clock source of the MCU, the MCU receives data sent by an external module in an asynchronous communication mode, the external module is internally provided with an independent clock source, the MCU calculates a deviation value of the internal RC according to the duration between high and low level change characteristics when the data is received, and the deviation value of the internal RC is calculated according to the deviation value. The internal RC is then corrected based on the deviation value. The method not only solves the problem that the internal RC cannot be corrected, but also has the advantages of few occupied resources, high correction efficiency, no need of extra energy consumption and the like. 本发明公开了一种基于异步通信的时钟校正方法及电能表。所述校正方法用于校正MCU内部RC的时钟误差,在启用内部RC作为MCU的时钟