Receiving long data while Uart interrupts are disabled ends with error

albertmbt
Posts: 11
Joined: Thu Nov 09, 2017 11:15 am

Receiving long data while Uart interrupts are disabled ends with error

Postby albertmbt » Sat Jan 13, 2018 8:23 pm

Hi guys,
I made a simple CMD for my application using uart. In a determinate moment, I want to disable all uart interrupts for performing some tasks and then reactivate them. All received data while interrupts are disabled, are thrown.
The thing is that while interrupts are disabled, there could be an error or something and i could start receiving lot of chars (like a stucked key or something). And when this happens all seems to work as expected except for one thing, at this point every new data that i receive arrives one interrupt late.

illustrative example:

Send: "a"
Receive: (last command, unknown here)

Send: "b"
Receive: "a"

Send: "c"
Receive: "b"

and so on.

albertmbt
Posts: 11
Joined: Thu Nov 09, 2017 11:15 am

Re: Receiving long data while Uart interrupts are disabled ends with error

Postby albertmbt » Thu Jan 25, 2018 10:15 am

Ok, i saw you already solved

Who is online

Users browsing this forum: No registered users and 44 guests