28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Serial Communications Interface Modules (SCI1 and SCI2)<br />

Loop Operation<br />

Enable single-wire operation by setting the LOOPS bit and the RSRC bit<br />

in SCICR1. Setting the LOOPS bit disables the path from the RXD pin to<br />

the receiver. Setting the RSRC bit connects the receiver input to the<br />

output of the TXD pin driver. Both the transmitter and receiver must be<br />

enabled (TE = 1 and RE = 1).<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

16.14 Loop Operation<br />

The WOMS bit in the SCICR1 register configures the TXD pin for full<br />

CMOS drive or for open-drain drive. WOMS controls the TXD pin in both<br />

normal operation and in single-wire operation. When WOMS is set, the<br />

DDR bit for the TXD pin does not have to be cleared for transmitter to<br />

receive data.<br />

In loop mode (LOOPS = 1, RSRC = 0), the transmitter output goes to the<br />

receiver input. The RXD pin is disconnected from the SCI and is<br />

available as a general-purpose I/O pin.<br />

Setting the DDR bit for the TXD pin connects the transmitter output to the<br />

TXD pin. Clearing the data direction bit disconnects the transmitter<br />

output from the TXD pin.<br />

TXD SCIDDR<br />

BIT = 1<br />

TXD SCIDDR<br />

BIT = 0<br />

TRANSMITTER<br />

RECEIVER<br />

TRANSMITTER<br />

RECEIVER<br />

H<br />

WOMS<br />

WOMS<br />

TXD<br />

RXD<br />

TXD<br />

RXD<br />

GENERAL-PURPOSE I/O<br />

GENERAL-PURPOSE I/O<br />

Figure 16-26. Loop Operation (LOOPS = 1, RSRC = 0)<br />

<strong>MMC2107</strong> – Rev. 2.0<br />

Technical Data<br />

MOTOROLA Serial Communications Interface Modules (SCI1 and SCI2) 367<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!