Datasheet

78K0/Ix2 CHAPTER 22 LOW-VOLTAGE DETECTOR
R01UH0010EJ0500 Rev.5.00 642
Feb 28, 2012
Figure 22-8. Example of Software Processing After Reset Release (1/2)
If supply voltage fluctuation is 50 ms or less in vicinity of LVI detection voltage
; Check the reset source
Note
; Setting of detection level by LVIS.
The low-voltage detector operates (LVION = 1).
Reset
Initialization
processing <1>
Initialization
processing <2>
Yes
No
Setting LVI
Clearing WDT
Detection
voltage or higher
(LVIF = 0?)
Yes
No
; The timer counter is cleared and the timer is started.
LVI reset
;f
PRS
= Internal high-speed oscillation clock (default)
Set the count clock and compare value so that
INTTMH1 occurs after 50 ms have elapsed.
Timer starts (TMHE1 = 1).
Setting 8-bit timer H1
(to measure 50 ms)
Restarting timer H1
(TMHE1 = 0 TMHE1 = 1)
50 ms has passed?
(TMIFH1 = 1?)
; Initial setting for ports,
setting of division ratio of system clock,
such as setting of timer or A/D converter.
Note A flowchart is shown on the next page.