[quote user="mil meh"]
try this:
if(ulStatus & UART_INT_RX || ulStatus & UART_INT_RT) {
while (MAP_UARTCharsAvail(UART0_BASE) {
data[i] = (char)MAP_UARTCharGetNonBlocking(UART0_BASE); // Read a character
}
}
[/quote]
I dont want to read a char just yet, I just want to increment the counter and leave the ISR.
If i use the 'UARTCharGetNonBlocking' its working fine, if i remove it repeatedly enters the ISR.
For the time being i left the function 'UARTCharGetNonBlocking' in the code. But i just didnt understand what am i doing wrong.