Question
Usart DMA Rx and timer input capture reset
Posted on December 22, 2015 at 13:57
Hello,
I configured my STM32F4 like in the AN3109 where USART uses DMA forreception
and RX pin is connected to a timer (input capture reset mode) because I do not know the size of incoming messages (modbus).So far so good, it works.But in the example of AN3109, timer is disabled (in the interrupt) after the timeout and I do not see how it activates again.It's a bit my problem:-If I do not disable the timer after timeout there will be a multitude of interrupt in case of long period without message.-If I disable the timer I do not see how to reactivate it for the begin of the next frame.Any ideas?Thank you.