Associate II
June 19, 2017
Solved
HTIM UIF clear from capture callback
- June 19, 2017
- 2 replies
- 1067 views
Posted on June 19, 2017 at 15:26
On a STM32 F777 I am configuring TIM4 to read Hall sensors (HAL_TIMEx_HallSensor_Init).
I have enabled capture interrupt and in capture callback (which is triggered at every Hall event as expected) I am clearing UIF flag (i.e. timer overflow flag).
The issue is that everytime the capture callback is triggered UIF flag is always found to be one even if I measure Hall events faster than timer overflow (which is expected every 32.7 ms). With reference to the attached figure: code never breaks in line 282.
Any hint appreciated.
#callback #tim #clear #uif