2013-07-28 04:31 PM
I'm using UART for comunication with PC and I want to implement some interrupts. It seems to me that USART_IT_TXE and USART_IT_TC are the same. Can someone explane me what is the difference between them?
#stm32-uart-interrupts2013-07-28 05:25 PM
TC infers the last bit hit the wire, which presumably would be a stop bit or two. TXE on the other hand indicates that the holding register (not the shifting register) is empty, you'll likely see this around the time the first bit of the previous content of the holding register hits the wire.
Waiting on TC being the least efficient way to utilize the serial port, and potentially having larger inter-symbol gaps.