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

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

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

656 Views
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 Kudos
Reply
3 Replies

616 Views
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 Kudos
Reply

591 Views
496387703
Contributor I

hi Edwin:

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

0 Kudos
Reply

645 Views
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 Kudos
Reply