Manual for Holtek HT8 MCU's Watchdog Timer to prevent system crashes from software errors or electrical noise.
This document explains how to configure and use the Watchdog Timer (WDT) in Holtek HT8 MCUs to prevent system crashes caused by software errors or electrical noise. It covers clock source selection, reset mechanisms, and configuration registers. The WDT can be cleared using a single 'CLR WDT' instruction, and its timeout period can be adjusted via the WDTC register. The document includes application examples and hardware/software descriptions for practical implementation.
The WDT operates by resetting the MCU if the timer overflows, which happens when the 'CLR WDT' instruction is not executed at the correct time. It supports different clock sources including fLXT, fLIRC, fSYS, and fSYS/4, with timeout periods configurable from 7.8ms to 1 second depending on the division ratio and clock source. This manual is written in Chinese.
| Reset Mechanism | Automatic MCU reset on timer overflow |
|---|---|
| Clear Instruction | Single 'CLR WDT' instruction |
The WDT resets the MCU if the timer overflows, which happens when the 'CLR WDT' instruction is not executed at the correct time.
In sleep mode, a WDT timeout sets the TO bit high and wakes up the system, resetting only the Program Counter and Stack Pointer.