STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
PVD configuration functions

PVD configuration functions. More...

Functions

void PWR_PVDLevelConfig (uint32_t PWR_PVDLevel)
 Configures the voltage threshold detected by the Power Voltage Detector(PVD). More...
 
void PWR_PVDCmd (FunctionalState NewState)
 Enables or disables the Power Voltage Detector(PVD). More...
 

Detailed Description

PVD configuration functions.

 ===============================================================================
                           PVD configuration functions
 ===============================================================================  

 - The PVD is used to monitor the VDD power supply by comparing it to a threshold
   selected by the PVD Level (PLS[2:0] bits in the PWR_CR).
 - A PVDO flag is available to indicate if VDD/VDDA 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 is stopped in Standby mode.

Function Documentation

void PWR_PVDCmd ( FunctionalState  NewState)

Enables or disables the Power Voltage Detector(PVD).

Parameters
NewState,:new state of the PVD. This parameter can be: ENABLE or DISABLE.
Return values
None
void PWR_PVDLevelConfig ( uint32_t  PWR_PVDLevel)

Configures the voltage threshold detected by the Power Voltage Detector(PVD).

Parameters
PWR_PVDLevel,:specifies the PVD detection level This parameter can be one of the following values:
  • PWR_PVDLevel_0
  • PWR_PVDLevel_1
  • PWR_PVDLevel_2
  • PWR_PVDLevel_3
  • PWR_PVDLevel_4
  • PWR_PVDLevel_5
  • PWR_PVDLevel_6
  • PWR_PVDLevel_7
Note
Refer to the electrical characteristics of your device datasheet for more details about the voltage threshold corresponding to each detection level.
Return values
None