Reputation: 1
I am using two interrupts in ARM7 lpc2378:
During the execution of the External-Interrupt ISR, data from UART1 is lost since interrupts are disabled.
How should I collect or save the UART1 data when some other ISR is being executed?
What measures should be taken in order to ensure that data from UART1 does not get lost?
Upvotes: 0
Views: 202
Reputation: 92384
I don't know the details of this particular microcontroller, but usually you should spend as few time in ISR as possible: do not do any expensive processing there. For example, in your ISR, read the important informations, write them to some variables, leave the ISR. In your app's main loop, react to the variable changes (there are several ways to achieve this so I'm describing this in a very generic way).
Upvotes: 1