This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM: How can I handle two interrupts at a time without loosing data??

Part Number: TM4C123GH6PM

Currently I'm working on the TM4C123GH6PMI controller. I'm working on the project in which
i am expecting the data at the (UART1) port from the other processor, in which data is time and status.
So time will be send by the processor at every second and the status will be send at every 4 seconds, also whenever the
data arriving at the UART1 port, of the controller by using interrupt I'm receiving. After receiving data
i want to send the data to the LCD panel so cannot afford loosing data while handling two interrupts at a time.

Lets consider following scenario,
 1st second -> date
 2nd second -> date
 3rd second -> date
 4th second -> date
 5th second -> date,status
 
in this scenario on the fifth second I'm receiving the both the interrupts at a time on the same port (UART1).
so my question is how i can receive both the interrupts at a time without loosing any data??

  • HI,

      Please note that there is only one interrupt vector for each UART module. In another word, all interrupt events to the UART1 need to be handled in the same UART1 ISR. I don't see any other way. I don't think your date and status will come at the same time. The other processor will still need to send them one after another, meaning they don't come in parallel. The UART has internal FIFO to store both the date and status. In your UART ISR, you will just need to process the date and status separately. 

  • Thank you so much for the reply now my doubt is cleared.

    Regards

    Omkar