cancel
Showing results for 
Search instead for 
Did you mean: 

How To Set PVD

dobs
Associate II

Hey, I want enabling and set PVD Level, but I still cannot enable PVDE bit on CR2 (PWR Register), Anyone can help me ?

Thankyou

G​

1 REPLY 1
dobs
Associate II

Heres my code

PWR_PVDTypeDef PVDStruct = {0};

PVDStruct.PVDLevel = PWR_PVDLEVEL_6;

PVDStruct.Mode      = PWR_PVD_MODE_IT_RISING;

HAL_PWR_ConfigPVD(&PVDStruct);

 HAL_PWR_EnablePVD();