Serial communication using one wire mode (half duplex)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Serial communication using one wire mode (half duplex)

Jump to solution
708 Views
Hellspread41
Contributor II

Hello all, just wondering if someone has an exemple on how to setup a serial com in half duplex mode. according the datasheet of imxrt 1062 it is possible to do it but don't really know how to make it work ? thx

0 Kudos
1 Solution
694 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Hellspread41 

  You can check the RT1062 LPSPI module, half-duplex function,.

  You also can check the LPUART, chapter 49.3.6.4 Single-wire operation

 

49.3.6.4 Single-wire operation
When CTRL[LOOPS] is set, the CTRL[RSRC] bit chooses between loop mode
(CTRL[RSRC] = 0) or single-wire mode (CTRL[RSRC] = 1). Single-wire mode
implements a half-duplex serial connection. The receiver is internally connected to the
transmitter output and to the TXD pin (the RXD pin is not used).
In single-wire mode, the CTRL[TXDIR] bit controls the direction of serial data on the
TXD pin. When CTRL[TXDIR] is cleared, the TXD pin is an input to the receiver and
the transmitter is temporarily disconnected from the TXD pin so an external device can
send serial data to the receiver. When CTRL[TXDIR] is set, the TXD pin is an output
driven by the transmitter, the internal loop back connection is disabled, and as a result the
receiver cannot receive characters that are sent out by the transmitter.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

View solution in original post

1 Reply
695 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Hellspread41 

  You can check the RT1062 LPSPI module, half-duplex function,.

  You also can check the LPUART, chapter 49.3.6.4 Single-wire operation

 

49.3.6.4 Single-wire operation
When CTRL[LOOPS] is set, the CTRL[RSRC] bit chooses between loop mode
(CTRL[RSRC] = 0) or single-wire mode (CTRL[RSRC] = 1). Single-wire mode
implements a half-duplex serial connection. The receiver is internally connected to the
transmitter output and to the TXD pin (the RXD pin is not used).
In single-wire mode, the CTRL[TXDIR] bit controls the direction of serial data on the
TXD pin. When CTRL[TXDIR] is cleared, the TXD pin is an input to the receiver and
the transmitter is temporarily disconnected from the TXD pin so an external device can
send serial data to the receiver. When CTRL[TXDIR] is set, the TXD pin is an output
driven by the transmitter, the internal loop back connection is disabled, and as a result the
receiver cannot receive characters that are sent out by the transmitter.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry