2024-02-11 10:06 PM
We are using interrupt of timer function.
Currently, Period and Prescaler are set in the initial settings (MX_TIM6_Init), but what should I do if I want to dynamically change Period and Prescaler?
[IDE]STM32CubeIDE 1.14.0
[board] STM32F412 Discovery kit
Solved! Go to Solution.
2024-02-19 04:14 PM
Thank you for your response.
Close because your perfect answer helped me to solve the problem.
2024-02-11 11:15 PM
Just write new values to PSC and ARR register. Make sure that ARR preload option is turned on.
2024-02-19 04:14 PM
Thank you for your response.
Close because your perfect answer helped me to solve the problem.