Skip to main content
kosan
Associate II
February 28, 2017
Question

stm32f103 software uart

  • February 28, 2017
  • 15 replies
  • 3806 views
Posted on February 28, 2017 at 13:10

how can i configure stm32f103 for software uart implementation, are there any documents, reference manual or source code?

thanks in advance.

#uart #stm32f103c8t6 #software-uart
This topic has been closed for replies.

15 replies

AvaTar
Senior III
February 28, 2017
Posted on February 28, 2017 at 13:24

Not that I know of.

TI has such implementations for it's TM4C controllers, perhaps you can use that as a starting point.

I view such a software implementation as counter-productive.

waclawek.jan
Super User
February 28, 2017
Posted on February 28, 2017 at 13:30

AN4655 for general description

AN4457 / STSW-STM32156 - it's for 'F4, but it's Cube and I was told by ST that the main reason for Cube is portability.

JW

AvaTar
Senior III
February 28, 2017
Posted on February 28, 2017 at 13:41

Interesting to know.

But I don't get the motivation for considering a software UART, for a MCU with 5 USART peripherals ...

waclawek.jan
Super User
February 28, 2017
Posted on February 28, 2017 at 15:25

But I don't get the motivation for considering a software UART, for a MCU with 5 USART peripherals ...   

This sort of depends on the particular application.

For example we have application with 6+ UARTS, and also those with non-standard UART requirements.

JW

Khouloud GARSI
ST Employee
February 28, 2017
Posted on February 28, 2017 at 13:37

Hi

sevim.samet

,

Pleaserefer to section 'Universal synchronous asynchronous receiver transmitter (USART)' in

http://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171pdf/files/CD00171pdf/jcr:content/translations/en.CD00171pdf

related to your device.

Also, I'd highly recommend you to refer to UART examples provided when downloading the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef1.html

package. You can use those examples as a reference to develop your own project.Theyare found under the path below: 'STM32Cube_FW_F1_V1.4.0\Projects\STM32F103RB-Nucleo\Examples\UART'.

Khouloud

Tesla DeLorean
Guru
February 28, 2017
Posted on February 28, 2017 at 16:40

That wasn't the question

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
March 7, 2017
Posted on March 07, 2017 at 19:19

Technically, a decent and not high perf TIMER Capture (RX) and Compare (TX) channels should be able to implement a UART with limited baudrate.