Holtek HT8 MCU Watchdog Timer (WDT) Application – Crash Prevention

Manual for Holtek HT8 MCU's Watchdog Timer to prevent system crashes from software errors or electrical noise.


Holtek HT8 MCU Watchdog Timer (WDT) Application – Crash Prevention - cover page
Brand
Holtek
Document type
User Manual
Language
Chinese
Pages
12
File format
PDF
File size
1 MB
Published
23 November, 2026
Updated
23 November, 2026
Model
HT8
MD5 checksum
03D1871790F6A0D77EA3D17479A79EA2

About this manual

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.

What's inside

  • Introduction
  • Functional Description
  • Operating Principles
  • Watchdog Timer Control Register
  • Watchdog Timer Operation
  • Typical Application
  • Hardware Description
  • Software Description

Specifications

Reset MechanismAutomatic MCU reset on timer overflow
Clear InstructionSingle 'CLR WDT' instruction

Frequently asked questions

How does the Watchdog Timer prevent system crashes?

The WDT resets the MCU if the timer overflows, which happens when the 'CLR WDT' instruction is not executed at the correct time.

What happens when the WDT overflows during sleep mode?

In sleep mode, a WDT timeout sets the TO bit high and wakes up the system, resetting only the Program Counter and Stack Pointer.

Download PDF (1 MB)

More Holtek Manuals


View all Holtek manuals →