MK02 UART in single-wire mode

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

MK02 UART in single-wire mode

754 Views
bruceweyrauch
Contributor I

I want to use the MK02 UART in single-wire mode.  I think understand that this means setting the UART TX PCR  pin registeras a UART Tx pin, and setting the LOOPS and RSRC bits in the UART.  Should the pullups be enabled on the Tx pin?  Is this bit automatically configured as open drain?

0 Kudos
1 Reply

548 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Bruce

Yes, you are correct. You need to set UART TX PCR to UART function. And enable single wire operation by setting C1[LOOPS] and the receiver source field,

C1[RSRC]. Setting C1[LOOPS] disables the path from the unsynchronized receiver input signal to the receiver. Setting C1[RSRC] connects the receiver input to the output of the TXD pin driver. Both the transmitter and receiver must be enabled (C2[TE] = 1 and C2[RE] = 1).

It is no need to set TX pin pull-up and open drain.

Best Regards

Paul

0 Kudos