
CHAPTER 23 LOW-VOLTAGE DETECTOR
User’s Manual U19780EJ2V0UD
570
Figure 23-2. Format of Low-Voltage Detection Register (LVIM)
<0>
LVIF
<1>
LVIMD
<2>
LVISEL
3
0
4
0
5
0
6
0
<7>
LVION
Symbol
LVIM
Address: FFBEH After reset: 00H
Note 1
R/W
Note 2
LVION
Notes 3, 4
Enables low-voltage detection operation
0 Disables
operation
1 Enables
operation
LVISEL
Note 3
Voltage detection selection
0
Detects level of supply voltage (V
DD
)
1
Detects level of input voltage from external input pin (EXLVI)
LVIMD
Note 3
Low-voltage detection operation mode (interrupt/reset) selection
0
•
LVISEL = 0: Generates an internal interrupt signal when the supply voltage (V
DD
) drops
lower than the detection voltage (V
LVI
) (V
DD
< V
LVI
) or when V
DD
becomes
V
LVI
or higher (V
DD
≥
V
LVI
).
•
LVISEL = 1: Generates an interrupt signal when the input voltage from an external
input pin (EXLVI) drops lower than the detection voltage (V
EXLVI
) (EXLVI <
V
EXLVI
) or when EXLVI becomes V
EXLVI
or higher (EXLVI
≥
V
EXLVI
).
1
•
LVISEL = 0: Generates an internal reset signal when the supply voltage (V
DD
) <
detection voltage (V
LVI
) and releases the reset signal when V
DD
≥
V
LVI
.
•
LVISEL = 1: Generates an internal reset signal when the input voltage from an
external input pin (EXLVI) < detection voltage (V
EXLVI
) and releases the
reset signal when EXLVI
≥
V
EXLVI
.
LVIF
Low-voltage detection flag
0
•
LVISEL = 0: Supply voltage (V
DD
)
≥
detection voltage (V
LVI
), or when operation is
disabled
•
LVISEL = 1: Input voltage from external input pin (EXLVI)
≥
detection voltage (V
EXLVI
),
or when operation is disabled
1
•
LVISEL = 0: Supply voltage (V
DD
) < detection voltage (V
LVI
)
•
LVISEL = 1: Input voltage from external input pin (EXLVI) < detection voltage (V
EXLVI
)
Notes 1.
This bit is cleared to 00H upon a reset other than an LVI reset.
2.
Bit 0 is read-only.
3.
LVION, LVIMD, and LVISEL are cleared to 0 in the case of a reset other than an LVI reset.
These are not cleared to 0 in the case of an LVI reset.
4.
When LVION is set to 1, operation of the comparator in the LVI circuit is started. Use
software to wait for an operation stabilization time (10
μ
s (MIN.)) from when LVION is set to 1
until operation is stabilized. After operation has stabilized, the external input of 200
μ
s (MIN.)
(Minimum pulse width: 200
μ
s (MIN.)) is required from when a state below LVI detection
voltage has been entered, until LVIF is set (1).
Cautions 1. To stop LVI, follow either of the procedures below.
•
When using 8-bit memory manipulation instruction: Write 00H to LVIM.
•
When using 1-bit memory manipulation instruction: Clear LVION to 0.
2. Input voltage from external input pin (EXLVI) must be EXLVI < V
DD
.
3. When using LVI as an interrupt, if LVION is cleared (0) in a state below the LVI
detection voltage, an INTLVI signal is generated and LVIIF becomes 1.