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

Create successful ePaper yourself

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

Functional Description www.ti.com<br />

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

Two divisor values are:<br />

• <strong>UART</strong> 16x mode: Divisor value = Operating frequency/(16x baud rate)<br />

• <strong>UART</strong> 13x mode: Divisor value = Operating frequency/(13x baud rate)<br />

Table <strong>19</strong>-25 describes the <strong>UART</strong> baud rate settings.<br />

Table <strong>19</strong>-25. <strong>UART</strong> Baud Rate Settings (48-MHz Clock)<br />

Baud Rate Baud Multiple DLH,DLL (Decimal) DLH,DLL (Hex) Actual Baud Rate Error (%)<br />

0.3 kbps 16x 10000 0x27, 0x10 0.3 kbps 0<br />

0.6 kbps 16x 5000 0x13, 0x88 0.6 kbps 0<br />

1.2 kbps 16x 2500 0x09, 0xC4 1.2 kbps 0<br />

2.4 kbps 16x 1250 0x04, 0xE2 2.4 kbps 0<br />

4.8 kbps 16x 625 0x02, 0x71 4.8 kbps 0<br />

9.6 kbps 16x 312 0x01, 0x38 9.6153 kbps +0.16<br />

14.4 kbps 16x 208 0x00, 0xD0 14.423 kbps +0.16<br />

<strong>19</strong>.2 kbps 16x 156 0x00, 0x9C <strong>19</strong>.231 kbps +0.16<br />

28.8 kbps 16x 104 0x00, 0x68 28.846 kbps +0.16<br />

38.4 kbps 16x 78 0x00, 0x4E 38.462 kbps +0.16<br />

57.6 kbps 16x 52 0x00, 0x34 57.692 kbps +0.16<br />

115.2 kbps 16x 26 0x00, 0x1A 115.38 kbps +0.16<br />

230.4 kbps 16x 13 0x00, 0x0D 230.77 kbps +0.16<br />

460.8 kbps 13x 8 0x00, 0x08 461.54 kbps +0.16<br />

921.6 kbps 13x 4 0x00, 0x04 923.08 kbps +0.16<br />

1.843 Mbps 13x 2 0x00, 0x02 1.846 Mbps +0.16<br />

3.6884 Mbps 13x 1 0x00, 0x01 3.6923 Mbps +0.16<br />

<strong>19</strong>.3.8.1.3 <strong>UART</strong> Data Formatting<br />

The <strong>UART</strong> can use hardware flow control to manage transmission and reception. Hardware flow control<br />

significantly reduces software overhead and increases system efficiency by automatically controlling serial<br />

data flow using the RTS output and CTS input signals.<br />

The <strong>UART</strong> is enhanced with the autobauding function. In control mode, autobauding lets the speed, the<br />

number of bits per character, and the parity selected be set automatically.<br />

<strong>19</strong>.3.8.1.3.1 Frame Formatting<br />

When autobauding is not used, frame format attributes must be defined in the <strong>UART</strong>i.<strong>UART</strong>_LCR register.<br />

Character length is specified using the <strong>UART</strong>i.<strong>UART</strong>_LCR[1:0] CHAR_LENGTH bit field.<br />

The number of stop-bits is specified using the <strong>UART</strong>i.<strong>UART</strong>_LCR[2] NB_STOP bit.<br />

The parity bit is programmed using the <strong>UART</strong>i.<strong>UART</strong>_LCR[5:3] PARITY_EN, PARITY_TYPE_1, and<br />

PARITY_TYPE_2 bit fields (see Table <strong>19</strong>-26).<br />

Table <strong>19</strong>-26. <strong>UART</strong> Parity Bit Encoding<br />

PARITY_EN PARITY_TYPE_1 PARITY_TYPE_2 Parity<br />

0 N/A N/A No parity<br />

1 0 0 Odd parity<br />

1 1 0 Even parity<br />

1 0 1 Forced 1<br />

1 1 1 Forced 0<br />

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

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

Saved successfully!

Ooh no, something went wrong!