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.
Receiving long data while Uart interrupts are disabled ends with error
Re: Receiving long data while Uart interrupts are disabled ends with error
Ok, i saw you already solved
Who is online
Users browsing this forum: No registered users and 53 guests