Microcontrol unit MCU clock calibration method and related equipment
Embodiments of the present application provide a microcontrol unit MCU clock calibration method and related equipment for improving the accuracy and stability of the MCU clock. A method for an embodiment of that present application include determining a target time period use a reference source cloc...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Embodiments of the present application provide a microcontrol unit MCU clock calibration method and related equipment for improving the accuracy and stability of the MCU clock. A method for an embodiment of that present application include determining a target time period use a reference source clock; calculating the number of counts in the target time period using the frequency of the MCU clock,and recording the number of counts as a first value; Using the frequency of the reference source clock to calculate the number of counts in the target time period, recorded as a second value; Adjusting a frequency of the MCU clock according to the first value and the second value. Therefore, adjusting the frequency of the MCU clock by the first value and the second value, that is, calibrating theMCU clock using the reference source clock as a reference clock for calibrating the MCU clock, can improve the accuracy and stability of the MCU clock.
本申请实施例提供了种微控制单元MCU时钟校准方法及相关设备,用于提高MCU时钟的精准度和稳定性。本申请实施例方法包括:利用基准源时钟确定目标时间段; |
---|