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
已解决! 转到解答。
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
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