cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103 software uart

kosan
Associate II
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
15 REPLIES 15
AvaTar
Lead
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.

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

Khouloud GARSI
Lead II
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

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 ...

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

Posted on February 28, 2017 at 15:35

IMHO understandable for low baud rates.

But with sound oversampling, one hits the (core) performance wall quite quickly.

Posted on February 28, 2017 at 15:58

Oversampling is often not needed, e.g. when you link on-board or in-box devices.

But it's not worth more words than that; I just wanted to explain the 'I don't get the motivation' :)

Jan

Posted on February 28, 2017 at 16:40

That wasn't the question

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on March 01, 2017 at 09:52

garsi.khouloud

‌ i know there are examples in CubeMX repository but there isn't anything about software uart .