STM32G071 : TIMER (TIM6) Immediate Update of Reload Value (ARR)
Hi,
I am using STM32G071RB MCU 64-PIN TQFP and using Timer TIM6.
The ARR Register in not updated Immediate and It updated on Next Transistion.
Please understand below situation .
1) I have set below in STMCube.
2) As as Per calculation.
3) When I write ARR = 10 and after ARR = 90. .
a) The Timer first generate delay according 90.
b) Then according to ARR = 10.
I am Reload as below function.
void TimerReload(Reload Value)
{
TIM6->PSC = 6350 ;
TIM6->ARR = ReloadValue ;
HAL_TIM_Base_Start_IT(&htim6) ;
}
Is my Timer reloading method is correct or not ?
Anybody please reply..
Thanks in advance..
--
Karan
