2013-09-13 01:40 AM
Hi Folks
I been looking for information on the power scale modes of the STM32F4 and I've not been able to find any information on them - is there a good doc out there that explans them?? Thanks CS #pwr #stm32f4-main-power-regulator2013-09-13 04:11 AM
Well there's the reference manual and the examples.
You can dynamically change the processor speed which is quite impactful, and also spinning in WFI loops rather than grinding in regular code.Other modes involve turning off clocks and power, which can be quite difficult to handle, and slow to exit. STANDBY exits via a RESET, so you have to be prepared to catch that case and initialize things appropriately.2013-09-13 06:50 AM
A simple way to reduce power with minimal impact is to use sleep mode when idle. Sleep mode stops the CPU clock but retains SRAM and peripheral settings, so the CPU recovers quickly from sleep mode. Look at sleep mode and WFI instruction.
If your app is interrupt/event driven then sleep is a cheap power saver. I use it as the idle task in FreeRTOS. Jack Peacock2013-09-13 07:16 AM
If you are looking at how does/do the VOS bit/bits in PWR_CR impact the maximum clock/consumption, RM0090 refers you to the individual datasheets.
For example, for STM32F405/407, from Tab14 and its footnote follows, that setting VOS=0 requires maximum frequency to be 144MHz, and yields around 10% gain in power consumption. JW