Power saving functions.
More...
Power saving functions.
===============================================================================
##### Power saving functions #####
===============================================================================
[..] This section provides functions allowing to reduce power consumption.
[..] The two function must be combined to get the maximal benefits:
When the ADC frequency is higher than the CPU one, it is recommended to
(#) Enable the Auto Delayed Conversion mode :
==> using ADC_WaitModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState);
(#) Enable the power off in Delay phases :
==> using ADC_AutoPowerOffCmd(ADC_TypeDef* ADCx, FunctionalState NewState);
void ADC_AutoPowerOffCmd |
( |
ADC_TypeDef * |
ADCx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the ADC Power Off.
- Note
- ADC power-on and power-off can be managed by hardware to cut the consumption when the ADC is not converting.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC1 peripheral. |
- Note
- The ADC can be powered down:
- During the Auto delay phase: The ADC is powered on again at the end of the delay (until the previous data is read from the ADC data register).
- During the ADC is waiting for a trigger event: The ADC is powered up at the next trigger event (when the conversion is started).
- Parameters
-
NewState,: | new state of the ADCx power Off. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void ADC_WaitModeCmd |
( |
ADC_TypeDef * |
ADCx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the Wait conversion mode.
- Note
- When the CPU clock is not fast enough to manage the data rate, a Hardware delay can be introduced between ADC conversions to reduce this data rate.
-
The Hardware delay is inserted after each conversions and until the previous data is read from the ADC data register
-
This is a way to automatically adapt the speed of the ADC to the speed of the system which will read the data.
-
Any hardware triggers wich occur while a conversion is on going or while the automatic Delay is applied are ignored
- Parameters
-
ADCx,: | where x can be 1 to select the ADC1 peripheral. |
NewState,: | new state of the ADCx Auto-Delay. This parameter can be: ENABLE or DISABLE. |
- Return values
-