Skip to main content
pa_it
Associate III
March 25, 2013
Question

How to implement usart rx timeout for dma?

  • March 25, 2013
  • 3 replies
  • 764 views
Posted on March 25, 2013 at 16:39

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    March 25, 2013
    Posted on March 25, 2013 at 17:34

    ModbusTimeOut has what value?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    pa_it
    pa_itAuthor
    Associate III
    March 25, 2013
    Posted on March 25, 2013 at 19:16

    ModbusTimeOut = 33. (@460800 Baud, 8data bits, 1 parity, 1 stop-bit)

    The Interrupt is executed ~75us after the stop-bit.

    This works (I've tested it with toggle a pin and an oscilloscop).

    If I select DMA_InitStructure.DMA_Mode = DMA_Mode_Normal; for the rx-stream, I have nothing in the buffer. If I select DMA_Mode_Circular the buffer is full, but like this: eeeeeeeelllllllllll... (sended string was ''hello world\r'').

    Btw. How could I insert here formated code? Whitch tags are this?

    Tesla DeLorean
    Guru
    March 25, 2013
    Posted on March 25, 2013 at 19:38

    Btw. How could I insert here formatted code? Which tags are this?

    Observe Paintbrush [<>] icon in top left corner of edit window. The mouse over say ''Format Code Block''. I'm not sure of the benefits of this retarded Word(tm) editor except it works practically nowhere, I've stopped even bothering on Android.

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