SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 71
Version 1.1
Example: An operation of watchdog timer is as following. To clear the watchdog timer counter in the top
of the main routine of the program.
Main:
MOV
A, #5AH
; Clear the watchdog timer.
B0MOV WDTR,
A
…
…
CALL
SUB1
CALL
SUB2
…
…
JMP
MAIN
Example: Clear watchdog timer by @RST_WDT macro.
Main:
@RST_WDT
; Clear the watchdog timer.
…
…
CALL
SUB1
CALL
SUB2
…
…
JMP
MAIN