SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 100
Version 1.1
11.5.4 WATCHDOG TIMER
Watchdog timer clear routine of SN8P2604 is setting WDTR register 0x5A. S8KD-2 ICE is not. SN8IDE provides
“@RST_WDT” macro to make watchdog timer function correctly.
Example: Reset watchdog timer by setting WDTR as 0x5A.
CHIP SN8P2604
.DATA
ICE_MODE EQU
0
INCLUDESTD SN8P2X_ICE.H
.CODE
User
program…
MOV
A, #5Ah
; Reset watchdog timer.
B0MOV
WDTR,
A
…
Note: This way can’t be emulated in S8KD-2 ICE. Using following routine to replace it.
Example: Reset watchdog timer by “@RST_WDT”.
CHIP SN8P2604
.DATA
ICE_MODE EQU
0
INCLUDESTD SN8P2X_ICE.H
.CODE
User
program…
@RST_WDT
; Reset watchdog timer by macro.
…