STM32G474RE General purpose timer (TIM16)
Greetings,
I am trying to set TIM16 on 1us period but the smallest period I am able to achieve is 4us here is the values of my prescaler and auto-reload register(ARR). I am working with the HAL.
SysClk = 170MHz
PSC = 16 (+1 will be added)
ARR = 9 (+1 will be added)
So the counter period is: SysClk/(PSC + 1)(ARR+1) => 170Mhz/(16+1)(9+1) = 1Mhz
I am expected to be at the callback (HAL_TIM_PeriodElapsedCallback) function at this frequency but instead I am at 250Khz
I am pretty sure this timer should be able to go to 1us period and even smaller than that. What am I doing wrong????
