CHAPTER 17 LOW-VOLTAGE DETECTOR
User’s Manual U17446EJ3V1UD
264
Figure 17-6. Example of Software Processing After Release of Reset (1/2)
•
If supply voltage fluctuation is 50 ms or less in vicinity of LVI detection voltage
Yes
No
Setting LVI
Detection voltage or more
(LVIF = 0 ?)
Yes
LVIF = 0
Restarting the timer H1
(TMHE1 = 0
→
TMHE1 = 1)
No
LVI reset
; Check reset source
Note
Initialization of ports
Setting WDT
Reset
Initialization
processing <1>
Setting 8-bit timer H1
(50 ms is measured)
Source: f
XP
(2.1 MHz (MAX.))/2
12
,
51 ms when the compare value is 25
Timer starts (TMHE1 = 1)
Clears WDT
50 ms has passed?
(TMIFH1 = 1?)
Initialization
processing <2>
; Setting the division ratio of the system clock,
timer, A/D converter, etc.
The low-voltage detector is operated (LVION = 1)
; The detection level is set with LVIS.
; Clear low-voltage detection flag.
; Clear timer counter and timer starts.
; f
XP
= High-speed internal oscillation clock (8.4 MHz (MAX.))/2
2
(default value)
Note
A flowchart is shown on the next page.
Содержание 78K0S/KB1+
Страница 2: ...User s Manual U17446EJ3V1UD 2 MEMO ...