UART Interrupt Issue and Interrupt Generating
Hi, I am using UART receiver in interrupt mode. After couple of hours it stops working(Only the UART Receiver Interrupt stops working, TX and Main loop keeps working). The handler function is too big and this is probably why it happens. If I were to post the code in here you would say that I shouldn't use it like that. I can set some flags and try to make it work in main loop but the thing is I have a routine that needs to be triggered in a couple of seconds and it is not more important than uart interrupt routines.
Is there any way that I can trigger an interrupt manually and make it's interrupt priority less than UART interrupt so that it can be done after UART handler function.
If there is can you suggest me resources that I should be following
Example :
while(1)
{
Least important routine;
}
UART_Interrupt_Handler(void)
{
Parsel Data;
when complete -> Order_Flag = 1;
Restart UART interrupt reception mode
}
Order_Flag_Interrupt_Handler(void)
{
Process that needs to be done according to order.
Restart Order_Flag_Interrupt reception mode (Order_Flag = 0);
}
