cancel
Showing results for 
Search instead for 
Did you mean: 

Can you show me how to clear a UART interrupt?

michael
Associate II
Posted on April 09, 2008 at 11:08

Can you show me how to clear a UART interrupt?

1 REPLY 1
michael
Associate II
Posted on May 17, 2011 at 09:51

Hello,

Once my UART interrupts the processor (STR9), nothing else other than interrupt handling occurs! I tried it using a loopback and a simulation of input signals (I use Keil microvision) but still - the result is the same!

My ISR looks like this:

Code:

unsigned x = UART0->DR ;

UART_ClearITPendingBit(UART0, UART_IT_Receive) ;

VIC0->VAR = 0 ;

VIC1->VAR = 0 ;

}

How come do I keep on getting interrupted? Am I cleaning up inappropriately?