
BAT32G1x9 user manual | Chapter 31 Voltage detection circuit
1094 / 1149
Rev.1.02
31.3 Control Registers of the voltage detection circuit
The voltage detection circuit is controlled by the following registers.
• Voltage Sense Register (LVIM).
• Voltage Sense Level Register (LVIS).
31.3.1
Voltage Sense Register (LVIM).
This register setting enable or disables the overriding of the voltage sense level register (LVIS)
and confirms the shielding status of the LVD output. Set the LVIM registers via the 8-bit memory
manipulation instructions.
After generating a reset signal, the value of this register changes to "00H".
Figure 31-2 Format of the Voltage Sense Register (LVIM).
Address: 40020441H
reset value:
00H
Note
1
R/W
Note
2
symbol
LVIM
LVISEN
Note
3
Enable/disable override settings
for the
Voltage Sense Level Register
(
LVIS
).
0
Rewriting of the LVIS registers (LVIOMSK=0 (LVD output masking is invalid)) is prohibited.
1
Rewriting of LVIS registers is allowed (LVIOMSK=1 (LVD output masking is valid)).
LVIOMSK
Mask status flag for LVD output
0
LvD output masking is invalid.
1
LVD output mask valid
note
4
.
LVIF
Voltage detection flag
0
The supply voltage (V
DD
) ≥ sense voltage (V
LVD
) or
LVD
is
OFF.
1
Supply voltage (V
DD
) < detect voltage (V
LVD
)
Note 1 The reset value varies depending on the reset source.
When the LVD is reset, the value of the LVIM register is not reset and the original value is maintained; During other
resets, clear LVISEN to "0".
2. Bit0 and bit1 are read-only bits.
3. It can only be set when the interrupt & reset mode is selected (lvIMDS1 bits and LVIMDS0 bits of the option bytes are
"1" and "0" respectively), the initial value cannot be changed in other modes.
4. Only when the interrupt & reset mode is selected (the LVIMDS1 bit and LVIMDS0 bits of the option byte are "1" and
"0" respectively). The LVIOMSK bit automatically changes to "1" during the following periods, masking the reset or
interrupt generated by LVD.
• Period of LVISEN=1
• Wait time from the time of the occurrence of an LVD interrupt until the LVD sense voltage stabilizes
• Wait time from changing the value of the LVILV bit until the LVD sense voltage stabilizes
7
6
5
4
3
2
1
0
LVISEN
note3
0
0
0
0
0
LWeOTBSP
LVIF