28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

The SCI sets the TDRE flag every time it transfers data from SCIDRH<br />

and SCIDRL to the transmit shift register. TDRE indicates that SCIDRH<br />

and SCIDRL can accept new data. If the TIE bit is set, TDRE generates<br />

an interrupt request.<br />

NOTE:<br />

SCIDRH and SCIDRL transfer data to the transmit shift register and sets<br />

TDRE 9/16ths of a bit time after the previous frame’s stop bit starts to<br />

shift out.<br />

nc...<br />

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

Hardware supports odd or even parity. When parity is enabled, the most<br />

significant data bit is the parity bit.<br />

When the transmit shift register is not transmitting a frame, the TXD pin<br />

goes to the idle condition, logic 1. Clearing the TE bit while the<br />

transmitter is idle will return control of the TXD pin to the SCI data<br />

direction (SCIDDR) and SCI port (SCIPORT) registers.<br />

If the TE bit is cleared while a transmission is in progress (while TC = 0),<br />

the frame in the transmit shift register continues to shift out. Then the<br />

TXD pin reverts to being a general-purpose I/O pin even if there is data<br />

pending in the SCI data register. To avoid accidentally cutting off a<br />

message, always wait until TDRE is set after the last frame before<br />

clearing TE.<br />

To separate messages with preambles with minimum idle line time, use<br />

this sequence between messages:<br />

1. Write the last byte of the first message to SCIDRH and SCIDRL.<br />

2. Wait until the TDRE flag is set, indicating the transfer of the last<br />

frame to the transmit shift register.<br />

3. Queue a preamble by clearing and then setting the TE bit.<br />

4. Write the first byte of the second message to SCIDRH and<br />

SCIDRL.<br />

When the SCI relinquishes the TXD pin, the SCIPORT and SCIDDR<br />

registers control the TXD pin.<br />

To force TXD high when turning off the transmitter, set bit 1 of the SCI<br />

port register (SCIPORT) and bit 1 of the SCI data direction register<br />

(SCIDDR). The TXD pin goes high as soon as the SCI relinquishes<br />

control of it.<br />

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

354 Serial Communications Interface Modules (SCI1 and SCI2) MOTOROLA<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!