2023-05-25 07:41 PM
STM32L072CZTx
PVD is configured to trigger INT16 and wake up the MCU.
It is working with the MCU in Sleep mode.
However, when the MCU is in Stop mode the interrupt does not trigger.
After reading RM0376 I am unsure if PVD is supposed to work in Stop mode or not?
Thank you
2023-05-26 03:38 AM
Hello @helioz, welcome to ST Community,
Yes, PVD is supposed to work in Stop mode.
Table 37 of RM0376 lists the details on how to exit Stop mode, where the PVD through EXTI line is configured as interrupt mode (table 55), the PVD is only stopped in standby mode.
BR
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-05-26 08:25 PM
Thanks for clarifying @Sarra.S
I have discovered the reason for PVD not working in stop mode - it was due to the ULP mode being enabled which shuts down VREFINT and therefore disables the PVD and any other functions which rely on VREFINT.
After disabling ULP mode the power consumption went from 5uA to 20uA in stop mode which is still very low for my application.