cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F100 UART Transmission with Interrupt mode

mahapushpa
Associate II
Posted on February 23, 2013 at 05:03

I am using STM32F100CB in my application. I am also using the example code

of UART Interrupt. The Receiver section is OK. For Transmission by interrupt.

I do not understand how to start 1st byte. (In 8051, used like prepare the buffer for tx, set all the pointers and index etc), either set the TI bit or copy the 1st byte in SBUF to start the transmission, in end of TX interrupt, ignore the tx interrupt).

Can you some hint similar manner for STM32F.

#stm32-uart-usart
1 REPLY 1
Posted on February 23, 2013 at 13:50

With the STM32 you need to turn the TXE interrupt off if you have no data to send, otherwise it will continue to assert. When you have some data in your buffer, enable the TXE interrupt, and then service it with the buffered data when the interrupt occurs.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..