Skip to main content
michael
Associate III
April 9, 2008
Question

Can you show me how to clear a UART interrupt?

  • April 9, 2008
  • 1 reply
  • 526 views
Posted on April 09, 2008 at 11:08

Can you show me how to clear a UART interrupt?

This topic has been closed for replies.

1 reply

michael
michaelAuthor
Associate III
May 17, 2011
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?