
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
364 of 368
NXP Semiconductors
UM10375
Chapter 23: LPC13xx Supplementary information
Clocking and power control . . . . . . . . . . . . . 181
Register description . . . . . . . . . . . . . . . . . . . 181
UART Receiver Buffer Register (U0RBR -
0x4000 8000, when DLAB = 0, Read Only) . 183
UART Transmitter Holding Register (U0THR -
0x4000 8000 when DLAB = 0, Write Only) . . 183
UART Interrupt Enable Register (U0IER -
0x4000 8004, when DLAB = 0). . . . . . . . . . . 184
Identification Register (U0IIR -
0x4004 8008, Read Only). . . . . . . . . . . . . . . 185
UART FIFO Control Register (U0FCR -
0x4000 8008, Write Only) . . . . . . . . . . . . . . . 187
UART Line Control Register (U0LCR -
0x4000 800C) . . . . . . . . . . . . . . . . . . . . . . . . 188
UART Modem Control Register . . . . . . . . . . 189
12.6.8.1 Auto-flow control . . . . . . . . . . . . . . . . . . . . . . 190
12.6.8.1.1 Auto-RTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
12.6.8.1.2 Auto-CTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
12.6.9
UART Line Status Register (U0LSR -
0x4000 8014, Read Only). . . . . . . . . . . . . . . 192
UART Modem Status Register . . . . . . . . . . . 194
UART Scratch Pad Register (U0SCR -
0x4000 801C) . . . . . . . . . . . . . . . . . . . . . . . . 194
Auto-baud . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Auto-baud modes. . . . . . . . . . . . . . . . . . . . . 196
12.6.15.1 Baud rate calculation . . . . . . . . . . . . . . . . . . 199
12.6.15.1.1 Example 1: UART_PCLK = 14.7456 MHz, BR =
9600 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
12.6.15.1.2 Example 2: UART_PCLK = 12 MHz, BR =
115200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
UART RS485 Address Match register
(U0RS485ADRMATCH - 0x4000 8050) . . . . 203
UART1 RS485 Delay value register
(U0RS485DLY - 0x4000 8054) . . . . . . . . . . 203
RS-485/EIA-485 modes of operation . . . . . . 203
RS-485/EIA-485 Normal Multidrop Mode
(NMM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
RS-485/EIA-485 Auto Address Detection (AAD)
mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
RS-485/EIA-485 Auto Direction Control. . . . . 204
RS485/EIA-485 driver delay time. . . . . . . . . . 205
RS485/EIA-485 output inversion . . . . . . . . . . 205
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Chapter 13: LPC13xx I2C-bus controller
How to read this chapter . . . . . . . . . . . . . . . . 207
Basic configuration . . . . . . . . . . . . . . . . . . . . 207
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 207
General description . . . . . . . . . . . . . . . . . . . . 207
C Fast-mode Plus . . . . . . . . . . . . . . . . . . . 208
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 209
Clocking and power control . . . . . . . . . . . . . 209
Register description . . . . . . . . . . . . . . . . . . . 209
C Control Set register (I2C0CONSET -
0x4000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 210
C Status register (I2C0STAT - 0x4000 0004) . . .
212
C Data register (I2C0DAT - 0x4000 0008) . 212
C Slave Address register 0 (I2C0ADR0-
0x4000 000C) . . . . . . . . . . . . . . . . . . . . . . . . 212
C SCL HIGH and LOW duty cycle registers
(I2C0SCLH - 0x4000 0010 and I2C0SCLL-
0x4000 0014) . . . . . . . . . . . . . . . . . . . . . . . . 213
13.8.5.1 Selecting the appropriate I
2
C data rate and duty
cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
C Control Clear register (I2C0CONCLR -
0x4000 0018) . . . . . . . . . . . . . . . . . . . . . . . . 214
C Monitor mode control register (I2C0MMCTRL
- 0x4000 001C) . . . . . . . . . . . . . . . . . . . . . . . 214
13.8.7.1 Interrupt in Monitor mode . . . . . . . . . . . . . . . 215
13.8.7.2 Loss of arbitration in Monitor mode . . . . . . . 216
13.8.8 I
2
C Slave Address registers (I2C0ADR[1, 2, 3]-
0x4000 00[20, 24, 28]) . . . . . . . . . . . . . . . . . 216
2
C Data buffer register (I2C0DATA_BUFFER -
0x4000 002C) . . . . . . . . . . . . . . . . . . . . . . . 216
2
C Mask registers (I2C0MASK[0, 1, 2, 3] -
0x4000 00[30, 34, 38, 3C]) . . . . . . . . . . . . . 217
2
C operating modes . . . . . . . . . . . . . . . . . . . 217
. . . . . . . . . . . . . . 217
Master Receiver mode. . . . . . . . . . . . . . . . . 218
Slave Receiver mode. . . . . . . . . . . . . . . . . . 219
Slave Transmitter mode . . . . . . . . . . . . . . . . 220
2
C implementation and operation . . . . . . . . 220
Input filters and output stages . . . . . . . . . . . 221
Address Registers, I2ADDR0 to I2ADDR3 . 222
I2MASK3 . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 222
Shift register, I2DAT . . . . . . . . . . . . . . . . . . . 222
Arbitration and synchronization logic . . . . . . 222
Serial clock generator . . . . . . . . . . . . . . . . . 223
Timing and control . . . . . . . . . . . . . . . . . . . . 224
Control register, I2CONSET and I2CONCLR 224
13.10.10 Status decoder and status register. . . . . . . . 224
2
C operating modes . . . . . . . . . . 224