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 />

Reset<br />

16.16 Reset<br />

Reset initializes the SCI registers to a known startup state as described<br />

in 16.7 Memory Map and Registers.<br />

16.17 Interrupts<br />

Table 16-10 lists the five interrupt requests associated with each SCI<br />

module.<br />

nc...<br />

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

16.17.1 Transmit Data Register Empty<br />

16.17.2 Transmission Complete<br />

Table 16-10. SCI Interrupt Request Sources<br />

Source Flag Enable Bit<br />

Transmitter<br />

Receiver<br />

TDRE<br />

TC<br />

RDRF<br />

OR<br />

IDLE<br />

The TDRE flag is set when the transmit shift register receives a byte from<br />

the SCI data register. It signals that SCIDRH and SCIDRL are empty and<br />

can receive new data to transmit. If the TIE bit in SCICR2 is also set,<br />

TDRE generates an interrupt request. Clear TDRE by reading SCISR1<br />

and then writing to SCIDRL. Reset sets TDRE.<br />

The TC flag is set when TDRE = 1 and no data, preamble, or break<br />

frame is being transmitted. It signals that no transmission is in progress.<br />

If the TCIE bit is set in SCICR2, TC generates an interrupt request.<br />

When TC is set, the TXD pin is idle (logic 1). TC is cleared automatically<br />

when a data, preamble, or break frame is queued. Clear TC by reading<br />

SCISR1 with TC set and then writing to the SCIDRL register. TC cannot<br />

be cleared while a transmission is in progress.<br />

TIE<br />

TCIE<br />

RIE<br />

RIE<br />

ILIE<br />

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

Technical Data<br />

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