CHAPTER 16 LOW-VOLTAGE DETECTOR
Preliminary User’s Manual U16898EJ1V0UD
256
Figure 16-6. Example of Software Processing After Release of Reset (2/2)
•
Checking reset source
Yes
No
Yes
No
Check reset source
Power-on-clear/external
reset generated
Reset processing by
watchdog timer
Reset processing by
low-voltage detector
WDTRF of RESF
register = 1?
LVIRF of RESF
register = 1?
(2) When used as interrupt
Check that “supply voltage (V
DD
) > detection voltage (V
LVI
)” in the servicing routine of the LVI interrupt by using bit
0 (LVIF) of the low-voltage detection register (LVIM). Clear bit 1 (LVIIF) of interrupt request flag register 0 (IF0) to
0 and enable interrupts (EI).
In a system where the supply voltage fluctuation period is long in the vicinity of the LVI detection voltage, wait for
the supply voltage fluctuation period, check that “supply voltage (V
DD
) > detection voltage (V
LVI
)” using the LVIF
flag, and then enable interrupts (EI).
www.DataSheet4U.com
www.DataSheet4U.com