UART interrupts STM32
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-28 4:31 PM
Posted on July 29, 2013 at 01:31
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-interrupts
Labels:
- Labels:
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-28 5:25 PM
Posted on July 29, 2013 at 02:25
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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
