Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 231366

Forum Post: RE: Interrupt Clearing - Repeated execution of ISR

$
0
0

[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.


Viewing all articles
Browse latest Browse all 231366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>