Half-duplex serial comms #6791
Replies: 1 comment
-
Posted at 2024-10-28 by @gfwilliams Hi, I'm afraid it's not something that I is exposed - but presumably you could just attach a signal diode (so only 0.3v drop) between the STM32 TX pin and the serial line, so it's only ever capable of pulling the signal down? You could take a look at https://www.espruino.com/STM32+Peripherals though as it may be you can set the STM32 up as normal and then just Posted at 2024-10-30 by user157904 Hi Gordon, Thanks for your response. I managed to activate half duplex mode by poking the correct register as you suggested and all seems to work as expected. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-10-26 by user157904
Is there a way to enable half-duplex UART on Espruino Pico? I have a device that I communicate with using standard serial over one wire, however I am using an NPN and PNP transistor to toggle between rx/tx. I believe that STM32’s have half duplex UART capability but I’m not sure if/how this can be enabled in Espruino. It would be nice to connect the directly to the pico instead of needing additional transistors.
Beta Was this translation helpful? Give feedback.
All reactions