cancel
Showing results for 
Search instead for 
Did you mean: 

What is voltage scaling feature ?

RN
Senior
Posted on May 18, 2018 at 09:20

Hello , 

I am using TIM6 to generate 1 sec of delay and i am toggling LED gpio in the timer ISR

HCLK is 50MHz , prescalar = 999, and period = 49999

The issue is when i use below macro, i get close to 1sec. shown in the pic below

__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);

0690X0000060KpkQAE.png

and when the that macro is not used. there is a significant difference . I want to know how exactly that macro is affecting here. i can not able to connect the dots. please help 

without above macro output 

0690X0000060KpuQAE.png
2 REPLIES 2
Nesrine M_O
Lead II
Posted on May 18, 2018 at 10:39

Hi

balckiran

,

The voltage scaling allows optimizing the power consumption when the device is clocked below the maximum system frequency.

for more details please refer toPower controller (PWR) chapter , Voltage regulator paragraph in you reference manual and General operating conditions in your datasheet :

STM32F7 datasheet example:

0690X0000060BHWQA2.png

-Nesrine-

Posted on May 18, 2018 at 10:57

Very sorry , that doesnt answer my question . I want to know why i see difference in timing when scale 3 is used . Thank you .