Concept Flow - UART interrupt-driven communication
UART Initialized
Enable UART Interrupt
Wait for Data
Interrupt Occurs
Interrupt Service Routine (ISR)
Read Data
Process/Store Data
Clear Interrupt Flag
Return to Main Program
Repeat Waiting for Data
The UART is set up and interrupts enabled. When data arrives, an interrupt triggers the ISR, which reads and processes the data, then returns control to the main program.