cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement usart rx timeout for dma?

pa
Associate II
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.
3 REPLIES 3
Posted on March 25, 2013 at 17:34

ModbusTimeOut has what value?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
pa
Associate II
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?

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
Up vote any posts that you find helpful, it shows what's working..