2018-03-22 05:08 AM
Hello everyone,
Just out of curiosity, is it possible to have some feature like Software Serial in STM32 controllers. If yes, how? Are any such libraries available?
2018-03-22 05:19 AM
Sure, it's software after all.
You're looking for bits at a prescribed periodicity, so either you're outputting bits via GPIO, or synchronize to edges and reading GPIO pin.
Presumes of course that you understand the signalling used by a serial bit stream.
2018-03-22 05:25 AM
See AN4655 and
JW
2018-03-22 05:43 AM
TI even has library modules for that purpose, in source code if I remember correctly.
For their line of Cortex M controllers, of course, but porting would not be too difficult.
However, the performance penalty for 'serious' baud rates (>4.8 kBaud) are considerable (and listed in TI's documents).
2018-03-22 08:22 AM
If yes, how?
In pretty much the same way as any other processor!
2018-03-22 09:15 AM
'
If yes, how?'basically the same as you would on other MCUs.
here is an example:
https://dannyelectronics.wordpress.com/2018/03/01/uart-for-all/
not difficult to extend it to your STM32.
2018-03-22 09:55 AM
If you are referring to Arduino, there are ways to the get at least some Arduino features in STM32F. But are they needed for UART, perhaps not. Uart works with these CPUs quite well, and you can choose what pin you want to use for serial communication.
2018-03-22 11:00 AM
It is indicative that those involved in the design need to sit down and seriously review the design choices made and the part selection.
2018-03-22 11:13 AM
Indeed - choose a part which has sufficient UARTs for your requirements!
2018-03-22 12:30 PM
That, and frankly at better grasp of the requirements that got you there. You're already at the end of a decision tree where you've burned all the lifeboats, and all you have left is an assortment of bad outcomes.