2022-12-30 10:26 PM
2022-12-31 12:13 AM
The closest example I see is https://github.com/STMicroelectronics/STM32CubeL0/tree/master/Projects/NUCLEO-L031K6/Examples/PWR/PWR_PVD.
hth
KnarfB
2022-12-31 12:13 AM
The closest example I see is https://github.com/STMicroelectronics/STM32CubeL0/tree/master/Projects/NUCLEO-L031K6/Examples/PWR/PWR_PVD.
hth
KnarfB
2022-12-31 12:25 AM
Read the description of PWR module, PVD section. Write 5 lines of code/simple C instructions: set 2 registers (PWR->CR, EXTI->IMR), wait for PVDO, if needed - enable PVD interrupt in EXTI, then in NVIC. That's all.