Skip to main content
michaelmccartyeng
Associate III
March 17, 2014
Question

Can I use usart2 DMA for RX and TX at the same time ?

  • March 17, 2014
  • 2 replies
  • 500 views
Posted on March 17, 2014 at 23:01

Previously I was using usart2 dma TX and had an int and isr that would handle the RX data.

Can I have the dma enabled for both tx and rx for usart 2 ? It seems weird them both pointing at the same DR ?

I've figured out the streams to use and about to start test/modifying, just wanted to check that what I'm doing is possible.

Thanks
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    March 17, 2014
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    michaelmccartyeng
    Associate III
    March 18, 2014
    Posted on March 18, 2014 at 03:50

    Thanks Clive, great examples. I've replaced my interrupt based circular buffer with a dma circular buffer. I still use the interrupt but just to calculate the size, I have a wrapper that has helper functions and such to deal with the dmabuffer, perform crc and find other buffers within that buffer.