Philips Semiconductors
UM10139
Volume 1
Chapter 25: Supplementary information
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
342
continued >>
UART1 baudrate calculation . . . . . . . . . . . . . 117
UART1 Interrupt Enable Register (U1IER -
0xE001 0004, when DLAB = 0) . . . . . . . . . . 118
UART1 Line Control Register (U1LCR -
0xE001 000C). . . . . . . . . . . . . . . . . . . . . . . . 122
UART1 Modem Control Register (U1MCR -
0xE001 0010), LPC2144/6/8 only . . . . . . . . 123
UART1 Line Status Register (U1LSR -
0xE001 0014, Read Only) . . . . . . . . . . . . . . 125
UART1 Modem Status Register (U1MSR -
0xE001 0018), LPC2144/6/8 only . . . . . . . . 127
UART1 Scratch pad register (U1SCR -
0xE001 001C) . . . . . . . . . . . . . . . . . . . . . . . 127
Auto-baud. . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Auto-baud Modes. . . . . . . . . . . . . . . . . . . . . 129
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 131
C interfaces I
2
C0 and I
2
C1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 134
C operating modes . . . . . . . . . . . . . . . . . . . 134
Master Transmitter mode . . . . . . . . . . . . . . . 134
Master Receiver mode . . . . . . . . . . . . . . . . . 135
Slave Receiver mode . . . . . . . . . . . . . . . . . . 136
Slave Transmitter mode . . . . . . . . . . . . . . . . 137
C Implementation and operation . . . . . . . . 138
Input filters and output stages . . . . . . . . . . . 138
Address Register, I2ADDR . . . . . . . . . . . . . . 140
Comparator. . . . . . . . . . . . . . . . . . . . . . . . . . 140
Shift register, I2DAT . . . . . . . . . . . . . . . . . . . 140
Arbitration and synchronization logic . . . . . . 140
Serial clock generator . . . . . . . . . . . . . . . . . . 141
Timing and control . . . . . . . . . . . . . . . . . . . . 141
Control register, I2CONSET and I2CONCLR 141
Status decoder and Status register . . . . . . . 142
Register description . . . . . . . . . . . . . . . . . . . 142
C Control Set register (I2CONSET: I2C0,
I2C0CONSET - 0xE001 C000 and I2C1,
I2C1CONSET - 0xE005 C000) . . . . . . . . . . . 143
C Control Clear register (I2CONCLR: I2C0,
I2C0CONCLR - 0xE001 C018 and I2C1,
I2C1CONCLR - 0xE005 C018). . . . . . . . . . . 144
C Status register (I2STAT: I2C0, I2C0STAT -
0xE001 C004 and I2C1, I2C1STAT -
0xE005 C004). . . . . . . . . . . . . . . . . . . . . . . . 145
C Data register (I2DAT:
I2C0, I2C0DAT - 0xE001 C008 and
I2C1, I2C1DAT - 0xE005 C008) . . . . . . . . . . 145
C Slave Address register (I2ADR: I2C0,
I2C0ADR - 0xE001 C00C and I2C1, I2C1ADR -
address 0xE005 C00C) . . . . . . . . . . . . . . . . 146
C SCL High duty cycle register (I2SCLH: I2C0,
I2C0SCLH - 0xE001 C010 and I2C1, I2C1SCLH -
0xE0015 C010) . . . . . . . . . . . . . . . . . . . . . . 146
C SCL Low duty cycle register (I2SCLL: I2C0 -
I2C0SCLL: 0xE001 C014; I2C1 - I2C1SCLL:
0xE0015 C014) . . . . . . . . . . . . . . . . . . . . . . 146
2
C data rate and duty
cycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
C operating modes . . . . . . . . . . 147
Master Transmitter mode . . . . . . . . . . . . . . . 148
Master Receiver mode . . . . . . . . . . . . . . . . . 148
Slave Receiver mode . . . . . . . . . . . . . . . . . . 149
Slave Transmitter mode . . . . . . . . . . . . . . . . 153
Miscellaneous States . . . . . . . . . . . . . . . . . . 159
I2STAT = 0xF8 . . . . . . . . . . . . . . . . . . . . . . . 159
I2STAT = 0x00 . . . . . . . . . . . . . . . . . . . . . . . 159
Some special cases . . . . . . . . . . . . . . . . . . . 160
Data transfer after loss of arbitration . . . . . . 160
2
C-bus. . . . . . . . . . . . 160
C-bus obstructed by a low level on
SCL or SDA . . . . . . . . . . . . . . . . . . . . . . . . . 161
Bus error . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
C State service routines . . . . . . . . . . . . . . 162
Initialization . . . . . . . . . . . . . . . . . . . . . . . . . 163
C interrupt service . . . . . . . . . . . . . . . . . . . 163
The State service routines . . . . . . . . . . . . . . 163
Adapting State services to an application . . 163
Software example . . . . . . . . . . . . . . . . . . . . . 163
Initialization routine . . . . . . . . . . . . . . . . . . . 163