Dear Sir,
My requirement is that, adc program should run all the time giving result without the intervention of the main program and if adc value goes below a particular limit, some action should be performed in background.
At the same time uart sending, receiving and other tasks should run as main program ie. at the front. Even if, mcu waits for a character/string input, if adc goes below a particular value, some tasks must be done.
How can we handle interrupts in this situation??