BAT32G1x9 user manual | Chapter 31 Voltage detection circuit
1107 / 1149
Rev.1.02
If you set the interrupt & reset mode (LVIMDS1, LVIMDS0=1, 0), it is required just after the LVD reset
(LVIRF=1) is lifted Voltage detection settling wait time for 400 us or 5 f
IL
clocks. The LVIMD bit must be
initialized with a clearance of "0" after waiting for the voltage detection to stabilize. During the counting of
voltage detection stabilization wait times and when rewriting the LVIMD bit, the LVISEN position "1" must be
used to shield the reset or interrupt generated by the LVD.
The initial setup steps for interrupt & reset mode are shown in Figure 30-8.
Figure 30-8 Initial setup steps for interrupt & reset mode
power supply voltage arise
confirm reset source
LVIRF= 1
?
LVISEN = 1
wait time of voltage detection
stablization
Yes
No
refer to diagram 28-5 reset source
confirmation steps
set LVISEN bit to "1",mask voltage
detection(LVIOMSK=1).
set LVIMD bit to "0", configure
interrupt mode
confirm LVD circuit generates internal reset
LVIMD = 0
LVISEN = 0
normal operation
set LVISEN bit to "0", enable
voltage detection
perform 400us or 5 fIL clock cycle counting
via software
Note f
IL
: Low-speed internal oscillator clock frequency