NEC 78K0S/KU1+ User Manual page 207

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KU1+:
Table of Contents

Advertisement

Figure 14-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
Reset
Initialization
processing <1>
Setting LVI
Setting 8-bit timer H1
(50 ms
is measured)
Clears WDT
Detection voltage or more
(LVIF = 0 ?)
No
LVIF = 0
Restarting the timaer H1
(TMHE1 = 0 TMHE1 = 1)
No
50 ms has passed?
(TMIFH1 = 1?)
Yes
Initialization
processing <2>
Note
A flowchart is shown on the next page.
CHAPTER 14 LOW-VOLTAGE DETECTOR
; Check reset source
Initialization of ports
Setting WDT
LVI reset
; The detection level is set with LVIS.
The low-voltage detector is operated (LVION = 1)
; f
= High-speed internal oscillation clock (8.4 MHz (MAX.)) /2
XP
Source : f
Timer starts (TMHE1 = 1)
Yes
; Clear low-voltage detection flag.
; Clear timaer counter and timer starts.
;
Specify the division ratio of the system clock,
setting Timaer, setting A/D Converter, etc.
User's Manual U18172EJ2V0UD
Note
(2.1 MHz (MAX.)) /2
12
,
RL
51 ms when the compare value is 25
2
(default value)
207

Advertisement

Table of Contents
loading

Table of Contents