Software Serial in STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-23 9:48 PM
Hello everyone,
I was curious if anyone has worked on something like Software Serial for STM32 and if there is any library made for it? If yes, please share.
#hal-uart #stm32- Labels:
-
STM32Cube MCU Packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-23 11:43 PM
THE PC side VCP (virtual com port) driver is here:
http://www.st.com/en/development-tools/stsw-stm32102.html
The other side CDC driver (to emulate VCP connection) can be found in the CubeMX examples. I used for F1 line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-24 12:42 AM
Seem to remember seeing an application note, but not a very efficient. One could emulate output with SPI or TIM
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-24 1:39 AM
The principles are going to be the same as for any microcontroller.
Always worth going to the Product Page for the chip concerned and looking at the list of Application Notes; eg,
Which is the one that
Turvey.Clive.002
‌ alluded to, andGolab.Bogdan
‌ linked.But why not just choose a variant with sufficient real UARTs ... ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-24 2:17 AM
I misunderstood the question.
Maybe this one:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-24 3:00 AM
Yes, software emulation is bad especially if you have so many resources as STM32 has.
Hardware resources offload CPU - you do not have to spend time on right timing (clock counting, etc).
