2013-02-22 08:03 PM
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-usart2013-02-23 04:50 AM
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.