This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

read two input via usart without losing anything

Hello
In my project I should read two usart input ports without losing my input data.Each input should gets a string's length of 120 each 10ms.How can I handle both of them?

I think I can do with two thread such as this diagram
obrazki.elektroda.pl/7019832800_1473252743.png
(does it possible easily or not?)

Or can do it with a simple approach instead of using multi-threading?

Thanks

Parents
  • I am still far behind the skill level of our experts.

    Please don't put yourself down. Of the many posters here, your posts are ones I do look at. They frequently include interesting concepts and ideas. And you post in a positive way.

    I wish you good luck for the future.

Reply
  • I am still far behind the skill level of our experts.

    Please don't put yourself down. Of the many posters here, your posts are ones I do look at. They frequently include interesting concepts and ideas. And you post in a positive way.

    I wish you good luck for the future.

Children
  • Thanks a zillion Per Westermark for your help and good explanation
    I have tried to use USART IDLE interrupt to detect the end of transmission and by resetting DMA section to improve my system, instead of using timer to define a timeout(that it has mentioned in CD00256689.pdf document). So is it enough for any discontinuity during transmission or I don't consider some states with this approach?