Issue with microseconds delay with timer
Hi,
we are using stm32f745xx and bellow are our configurations.
we are using total 6 timers, out of which we are using TIM6 to generate 50us interrupt.
htim6.Instance = TIM6;
htim6.Init.Prescaler = 1;
htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
htim6.Init.Period = 2250; // for 50 micro sec.
I got the above values from bellow equation.
period = 90000000 / ((1+prescaller) * (required delay))
system frequency is 180 Mhz, APB1 is 90MHz
Bellow is my queries
1) When generating delay of 50us, we are getting delay with some deviation. like (0.05%)
2) If we reduce the delay time below 50 us, then we are getting more deviation and fluctuation as well.
3) we are not able to generate timer of 1us or 5us.(board is getting reboot)
4) Please let me know the correct settings for prescaller and period.
Please help us with some solution. also please let me know if you need any other information.
Thanks