Question
clear USART TC flag
Posted on November 27, 2014 at 21:20
Hi
I am using USART in Interrupt mode in Tx and Rx. Rx is working fine But in Tx I keep getting interrupt. I just need to get the interrupt once when the data is sent. but I keep getting the interrupt again and again. When I check the USART->ISR register I found that TC and TXE flags are always set. I tried to clear them from flags and inerrupt register but they are not responding to clear instructions.USART_ClearFlag() & USART_ClearITPendingBit() What should I do? Salam Hossam Alzomor #usart-interrupt-tx-tc-txe