cancel
Showing results for 
Search instead for 
Did you mean: 

UART interrupt

Posted on October 19, 2005 at 06:57

UART interrupt

2 REPLIES 2
Posted on October 19, 2005 at 06:06

Hello,

Do we need to clear the UART IT bit when returning from UART ISR to main() ?

With the standard library exemple UART_INT, nothing is done in main except init of uart and eic, so is it possible to exit the ISR ?

thx for your help,

Posted on October 19, 2005 at 06:57

Quote:

In the example in the standard libray uses the Tx Empty interrupt, this interrupt is diabled in the UART ISR. The UART interrupts flags are cleared

- Rx BufNotEmpty is cleared when you read one byte from the Rx bufer

that's what I missed

Thank tou for your help