RT1172 lpuart use Single-wire operation mode can not transmitter data

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

RT1172 lpuart use Single-wire operation mode can not transmitter data

609 次查看
496387703
Contributor I

hi all:

when I use lpuart Single-wire operation mode. Unable to send data.

CTRL[LOOPS] = 1, CTRL[RSRC] = 1.  enable TX and RX. setBaudRate 9600

CTRL[TXDIR] = 1;

LPUART_WriteBlocking(LPUART4, 0xF0,1 )

But no data measured using an oscilloscope.

TX pin external pull-up resistor(4.7K)

How to send data correctly?Please indicate any areas that need attention.

Regards

 

 

0 项奖励
回复
3 回复数

569 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @496387703,

Please make sure you are adequately following the description seen in Section "71.3.6.4 Single-wire operation" of the Reference Manual. You can also base your code from the following post: https://community.nxp.com/t5/Kinetis-Microcontrollers/Issue-with-LPUART-single-wire-mode-on-KL17/m-p...

BR,
Edwin.

0 项奖励
回复

544 次查看
496387703
Contributor I

hi Edwin:

But, it`s also cannot work. Unable to receive data。

0 项奖励
回复

598 次查看
496387703
Contributor I

so sorry, send data is ok

but,when I use LPUART_ReadBlocking(),the base->STAT is error,Unable to receive data

0 项奖励
回复