Serial communication using one wire mode (half duplex)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Serial communication using one wire mode (half duplex)

跳至解决方案
823 次查看
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 项奖励
回复
1 解答
809 次查看
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

在原帖中查看解决方案

1 回复
810 次查看
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