BAT32G1x9 user manual | Chapter 31 Voltage detection circuit
1095 / 1149
Rev.1.02
31.3.2
Voltage Sense Level Register (LVIS).
This is the register that sets the voltage sense level.
Set the LVIS registers via the 8-bit memory manipulation instructions. After generating a reset signal, the
value of this register changes to "00H/01H/81H"
Note
1
.
Figure 30-3 Format of the Voltage Sense Level Register (LVIS).
Address: FFFAAH
After reset:
00H/01H/81H
Note
1
R/W
symbol
LVIS
LVIMD
Note
2
Operating mode for voltage detection
0
Break mode
1
Reset mode
LVILV
Note
2
LVD detects the level
0
High voltage sense level (V
LVDH
).
1
Low voltage sense level (V
LVDL
or
V
LVD
).
Note
1
The reset value varies depending on the setting of the reset source and option bytes. When an
LVD
reset
occurs, this register is not cleared
to "00H".
When a reset other than LVD occurs, the values of this register are as follows:
• Option bytes for
LVIMDS1,
LVIMDS0=1,
0:
00H
• Option bytes for
LVIMDS1,
LVIMDS0=1,
1:
81H
• Option bytes for
LVIMDS1,
LVIMDS0=0,
1:
01H
2. Write "0" only if interrupt & reset mode is selected (LVIMDS1 bit and LVIMDS0 bits for option bytes are "1" and "0"
respectively). In other cases, it cannot be set. In interrupt
& reset mode, value substitution is performed
automatically by generating a reset or interrupt.
Note 1
To rewrite the LVIS registers, it must be done in accordance with the steps in Figures 30-7 and 30-8.
2. Select
the
operating mode of LVD and the detection voltage of each mode (VLVDH, VLVDL, V) by option byte 000C1H
LVD) . The format of the user option bytes (000C1H/010C1H) is shown in Table 30-1. For details on option bytes, refer to
Chapter 33 Option Bytes.
7
6
5
4
3
2
1
0
LWeMD
note2
0
0
0
0
0
0
LVILV
note2