01.08.2013 Views

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

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.

Functional Description www.ti.com<br />

On receive, the FIR receive state machine recovers the receive clock, removes the start flag, decodes the<br />

4PPM incoming data, and determines frame boundary with a reception of the stop flag. It also checks for<br />

errors such as an illegal symbol, a CRC error, and a frame-length error. At the end of a frame reception,<br />

the LH reads the line status register (LSR) to find out possible errors of the received frame.<br />

Data can be transferred both ways by the module but when the device is transmitting, the IR RX circuitry<br />

is automatically disabled by hardware. See bit 5 in Section <strong>19</strong>.5.1.26, Auxiliary Control Register, for a<br />

description of the logical operation. Note: This applies to all three modes of SIR, MIR, and FIR.<br />

<strong>19</strong>.3.8.2.4 IrDA Clock Generation: Baud Generator<br />

The IrDA function contains a programmable baud generator and a set of fixed dividers that divide the 48-<br />

MHz clock input down to the expected baud rate.<br />

Figure <strong>19</strong>-24 shows the baud rate generator and associated controls.<br />

14 bits divisor:<br />

1/(DLH,DLL)<br />

DLH DLL<br />

Figure <strong>19</strong>-24. Baud Rate Generator<br />

16x divisor (SIR)<br />

41x,42x (MIR)<br />

6x divisor<br />

77x divisor (1.6 ms<br />

on)<br />

341x divisor (7.1 ms<br />

off)<br />

SIR<br />

MIR<br />

MDR1[2:0]<br />

MODE_SELECT bit field<br />

CAUTION<br />

FIR<br />

RXIR SIR/MIR<br />

TXIR SIR/MIR<br />

TXIR FIR<br />

RXIR FIR<br />

1.6/7.1 ms<br />

SIP (MIR or FIR)<br />

or<br />

1.6 ms<br />

pulse (SIR)<br />

Before initializing or modifying clock parameter controls (<strong>UART</strong>i.<strong>UART</strong>_DLH,<br />

<strong>UART</strong>i.<strong>UART</strong>_DLL), MODE_SELECT=DISABLE (<strong>UART</strong>i.<strong>UART</strong>_MDR1[2:0])<br />

must be set to 0x7). Failure to observe this rule can result in unpredictable<br />

module behavior.<br />

<strong>19</strong>.3.8.2.5 Choosing the Appropriate Divisor Value<br />

Three divisor values are:<br />

3664 <strong>Universal</strong> <strong>Asynchronous</strong> <strong>Receiver</strong>/<strong>Transmitter</strong> (<strong>UART</strong>) SPRUH73E–October 2011–Revised May 2012<br />

Submit Documentation Feedback<br />

Copyright © 2011–2012, Texas Instruments Incorporated<br />

uart-033

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

Saved successfully!

Ooh no, something went wrong!