Remote controller MCU crystal oscillator detection method
The invention discloses a remote controller MCU crystal oscillator detection method comprising the following steps: configuring an MCU built-in RC oscillator of a remote controller as a clock source of an internal timer, counting according to a first timing interruption, using an external crystal os...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a remote controller MCU crystal oscillator detection method comprising the following steps: configuring an MCU built-in RC oscillator of a remote controller as a clock source of an internal timer, counting according to a first timing interruption, using an external crystal oscillator as a clock source of an RTC clock module, and counting according to a second timing interruption; enabling the internal timer and the RTC clock module, and reading internal timing counting register data and RTC timing counting register data at a third time interval; obtaining crystal oscillator counting deviation of the remote controller MCU according to the internal timing counting register data and the RTC timing counting register data; and comparing the crystal oscillator counting deviation with a preset allowable deviation threshold to obtain a crystal oscillator detection result. Only the external crystal oscillator needs to be additionally arranged, timing interruption counting of the external crysta |
---|