English
Language : 

4559 Datasheet, PDF (42/148 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4559 Group
When the watchdog timer is used, clear the WDF1 flag at the
period of 65534 machine cycles or less with the WRST
instruction.
When the watchdog timer is not used, execute the DWDT
instruction and the WRST instruction continuously (refer to
Figure 41).
The watchdog timer is not stopped with only the DWDT
instruction.
The contents of WDF1 flag and timer WDT are initialized at the
power down mode.
When using the watchdog timer and the power down mode,
initialize the WDF1 flag with the WRST instruction just before
the microcomputer enters the power down mode. Also, set the
NOP instruction after the WRST instruction, for the case when a
skip is performed with the WRST instruction (refer to Figure 42).
•••
WRST
•••
DI
DWDT
WRST
•••
; WDF1 flag cleared
; Watchdog timer function enabled/disabled
; WEF and WDF1 flags cleared
Fig 41. Program example to start/stop watchdog timer
•••
WRST
NOP
DI
EPOF
POF2
↓
; WDF1 flag cleared
; Interrupt disabled
; POF instruction enabled
; RAM back-up mode
Oscillation stop
•••
Fig 42. Program example when using the watchdog
timer
Rev.1.04 Aug 23, 2007 Page 42 of 146
REJ03B0188-0104