|
STM8L15x Standard Peripherals Drivers
|
Ultra Low Power mode configuration functions. More...
Functions | |
| void | PWR_FastWakeUpCmd (FunctionalState NewState) |
| Enables or disables the Fast WakeUp from Ultra Low Power mode. | |
| void | PWR_UltraLowPowerCmd (FunctionalState NewState) |
| Enables or disables the Ultra Low Power mode. | |
Detailed Description
Ultra Low Power mode configuration functions.
===============================================================================
Ultra Low Power mode configuration functions
===============================================================================
- The internal voltage reference consumption is not negligible, in particular
in Halt and Active Halt modes. To reduce power consumption, use the PWR_UltraLowPowerCmd()
function (ULP bit (Ultra low power) in the PWR_CSR2 register) to disable the
internal voltage reference. However, in this case, when exiting from the
Halt/Active Halt modes, the functions managed through the internal voltage reference
are not reliable during the internal voltage reference startup time (up to 3 ms).
To reduce the wakeup time, the device can exit from Halt/Active Halt modes without
waiting for the internal voltage reference startup time. This is performed
by using the PWR_FastWakeUpCmd() function (setting the FWU bit (Fast
wakeup) in the PWR_CSR2 register) before entering Halt/Active Halt mode.
Function Documentation
| void PWR_FastWakeUpCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Fast WakeUp from Ultra Low Power mode.
Definition at line 165 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR2_FWU.
| void PWR_UltraLowPowerCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Ultra Low Power mode.
Definition at line 188 of file stm8l15x_pwr.c.
References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR2_ULP.