Chapter 17: lpc24xx uart1, Basic configuration, Features – NXP Semiconductors LPC24XX UM10237 User Manual
Page 443
![background image](/manuals/190592/443/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
443 of 792
1.
Basic configuration
The UART1 peripheral is configured using the following registers:
1. Power: In the PCONP register (
), set bits PCUART1.
Remark: On reset, UART1 is enabled (PCUART1 = 1).
2. Peripheral clock: In the PCLK_SEL0 register (
), select PCLK_UART1.
3. Baud rate: In register U1LCR (
), set bit DLAB =1. This enables access
to registers DLL (
) and DLM (
) for setting the baud rate.
Also, if needed, set the fractional baud rate in the fractional divider register
(
4. UART FIFO: Use bit FIFO enable (bit 0) in register U0FCR (
) to enable
FIFO.
5. Pins: Select UART pins and pin modes in registers PINSELn and PINMODEn (see
).
Remark: UART receive pins should not have pull-down resistors enabled.
6. Interrupts: To enable UART interrupts set bit DLAB =0 in register U1LCR
). This enables access to U1IER (
). Interrupts are enabled
in the VIC using the VICIntEnable register (
2.
Features
•
UART1 is identical to UART0/2/3, with the addition of a modem interface.
•
16 byte Receive and Transmit FIFOs.
•
Register locations conform to ‘550 industry standard.
•
Receiver FIFO trigger points at 1, 4, 8, and 14 bytes.
•
Built-in baud rate generator.
•
Standard modem interface signals included (CTS, DCD, DTS, DTR, RI, RTS).
•
LPC2400 UART1 allows for implementation of either software or hardware flow
control.
UM10237
Chapter 17: LPC24XX UART1
Rev. 04 — 26 August 2009
User manual