Timeouts in micro seconds
Hi All,
I'm using:
STM32H7xx
TIM4
HAL_TIM_PWM_ConfigChannel
HAL_TIM_PWM_Start_IT
HAL_TIM_PWM_Init
I'm tring to use the general timer and its channels to generate 4 sources for timeouts.
The timer is feed by a 200MHz clock and the resolution I need is in micro seconds, so the 'Prescaler' field is set to 200.
I set the period parameter to 0xFFFF tring to get an interrupt on each channel depending on the 'Pulse' field value.
for some reason the interrupt callback 'HAL_TIM_PWM_PulseFinishedCallback' is called at the end of the period and not at the end of the pulse meaning after 65m seconds.
Does anyone have an idea what I'm doing wrong or suggest me a different method to achieve my goal with this timer and its channels?
Thanks,
David