Skip to main content
This topic has been closed for replies.

2 replies

e239955_stm1_stmicro_com
Associate III
October 19, 2005
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,

e239955_stm1_stmicro_com
Associate III
October 19, 2005
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