Skip to main content
Rroma.1
Associate
Apr 29, 2021 3:00 PM UTC
Solved

UART Transfer Complete ISR vs DMA Transfer Complete ISR for putting message to FreeRTOS MessageQueue

Hello everyone,

I would like to ask for some guidance on which Interrupt i should use for FreeRTOS message queue to help synchronize my state machine.

I am using UART to transmit data to device, and i would like to know if i have finished transmitting. Should I use DMA Transfer Complete or UART Transfer Complete?

Thanks!

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 29, 2021 3:03 PM UTC

TC on the USART indicates all the bits are over the wire, whereas TC on the DMA indicates all memory moved from that buffer into the pending shift register and buffers on the USART side.

TC on DMA will signal prior to data traversing the wire.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 29, 2021 3:03 PM UTC

TC on the USART indicates all the bits are over the wire, whereas TC on the DMA indicates all memory moved from that buffer into the pending shift register and buffers on the USART side.

TC on DMA will signal prior to data traversing the wire.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Rroma.1
Rroma.1Author
Associate
Apr 29, 2021 3:04 PM UTC

Thanks for your swift response!