Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
emulated uart through gpio pins
Hi,
since i have all rs232 pins already occupied i wanted to emulate rs232 through gpio. Is there any mbed library i can use for it that works with Nucleo-F401RE
Thanks
1 Answer
8 years, 3 months ago.
Hi Anteo,
Thanks for the question :)
Have you looked at possibly expanding UART through use of SPI I2C controllers. MAX3100, SC16IS752
Or perhaps maybe using MUX to control the use of the RS232?
Regards,
Andrea, team mbed
Hi Andrea,
thanks for your reply. What you mention is using extra hw. But i cant add extra hw, i just need to use the gpio pins and i thought maybe mbed has some library simulating rs232 through software using the gpio pins. Is that possible?
Thnx
posted by 09 Sep 2016Anteo,
Look into the technique called 'bit-banging' this is what you describe.
You should be able to find mbed versions of this.
posted by 09 Sep 2016Hi Andrea,
can i also use these libs for this purpose (just mapping two gpio pins to rx and tx would be enough for me) https://developer.mbed.org/users/Sissors/code/SoftSerial/ or https://developer.mbed.org/users/Sissors/code/BufferedSoftSerial/ created from
@Erik Olieman (https://developer.mbed.org/users/Sissors/)
posted by 13 Sep 2016