2021-06-18 08:05 AM
I am using TIM1 in the STM32WB55. I used CubeIDE and HAL to set everything up. Based on a button push I would like to update the counter period to a value in an array. I prefer not to
htim1.Init.Period = period[flag];
HAL_TIM_Base_Init(&htim1);
as it seems silly to go through all the macros to re-init just for a register. Can someone tell me what is the syntax to just update the register itself?
Thanks
Steve
Solved! Go to Solution.
2021-06-18 08:24 AM
2021-06-18 08:24 AM
Maybe TIM1->ARR = Period;
will do the job.
2021-06-18 09:19 AM
Thanks Mike...
I believe that seems to work
Steve