Uart Rx/tx

jkhax0r
Posts: 7
Joined: Mon Jan 23, 2017 6:54 am

Uart Rx/tx

Postby jkhax0r » Wed Feb 01, 2017 7:48 pm

Does anyone know if it would be possible to configure the same pin for both UART TX and UART RX simultaneously?

I have seen this feature in certain other micros and it can be used, for example, on a LIN bus or rs485 where there is a single wire/signal bus and extra error checking is not required.

I'm just running out of pins and saw this as an opportunity to save one. Thanks

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Uart Rx/tx

Postby WiFive » Thu Feb 02, 2017 3:36 am

Sure if its half duplex you just have to switch the pin to input/output during RX/tx assuming rx output of the transceiver can be tri-stated (usually with enable line).

jesseb
Posts: 29
Joined: Tue Jan 10, 2017 5:36 pm

Re: Uart Rx/tx

Postby jesseb » Thu May 03, 2018 9:35 pm

@WiFive I tried running serial UART by using a single wire but was unsuccessful by just changing direction of pin. Are there any examples on this?

michcfr
Posts: 30
Joined: Mon Jan 29, 2018 5:55 pm

Re: Uart Rx/tx

Postby michcfr » Sat Oct 23, 2021 8:57 pm

Hello
Did someone succeed in running serial UART by using a single wire?
Hardware and software examples are welcomed.

regards

Who is online

Users browsing this forum: 40Below and 49 guests