This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294KCPDT: Can we use BOTH transmitter and receiver for uDMA operation in UART

Part Number: TM4C1294KCPDT

I am using TM4C1294KCPDT Microcontroller. My doubt is can i use uDMA for both UART transmitter and Receiver together. ? 

  • I need the answer as early as possible. I will be send about 20 bytes of UART data and also will be receiving 20 bytes of burst data. Can i use uDMA for TX and RX together?
  • Yes, but they are two separate uDMA channels.
  • 1. for transmitting the uDMA will copy the data from memory to UART_O_DR. and while receiving it will copy what ever present in UART_O_DR to memory. So my doubt is whether both can happen simultaneously? Like uDMA is copying the memory data to UART_O_DR and at the same time UART receiver is receiving something and that time uDMA will copy UART_O_DR to memory lactaion.
    2. what if transmitting uDMA data is interpreted as received data by othe uDMA channel?
  • While technically not simultaneous, the two transactions can happen very close in time.  The TX and RX on the UART are very much independent. You can be transmitting and receiving at the same time. Both the transmit and the receive side have FIFOs. The receive FIFO will hold the received data until the uDMA can grab it. Even at the fastest baudrate the uDMA can read a byte received and load another byte to transfer before a second byte can be received.

    Bharath Raj said:
    what if transmitting uDMA data is interpreted as received data by othe uDMA channel?

    There are separate request signals for TX and RX that go to different uDMA channels.

  • Hi Bob,

      Thanks for the detailed explanation. I will try with my code and check. Will confirm it if that can be done.