RM0444 Rev 5 125/1390
RM0444 Power control (PWR)
159
For more details on the brown-out reset thresholds, refer to the electrical characteristics
section in the datasheet.
4.2.2 Programmable voltage detector (PVD)
The PVD can be used to monitor the V
DD
power supply by comparing it to the thresholds
selected through PVDRT[2:0] bits (rising thresholds) and PVDFT[2:0] bits (falling
thresholds) in the Power control register 2 (PWR_CR2).
V
PVDFx
should always be set to a
lower voltage level than
V
PVDRx
.
The PVD is enabled by setting the PVDE bit.
A PVDO flag is available in the Power status register 2 (PWR_SR2). It indicates if V
DD
is
higher or lower than the PVD threshold. This event is internally connected to the EXTI line16
and can generate an interrupt if enabled through the EXTI registers. The PVD output
interrupt can be generated when V
DD
drops below the PVD threshold and/or when V
DD
rises above the PVD threshold depending on EXTI line16 rising/falling edge configuration.
As an example, the service routine could perform emergency shutdown tasks.
Figure 7. PVD thresholds
MSv45390V2
V
DD
PVD output
V
PVDRx
V
PVDFx
Configurable
hysteresis