UM10208_2
© NXP B.V. 2007. All rights reserved.
User manual
Rev. 02 — 1 June 2007
199 of 362
NXP Semiconductors
UM10208
Chapter 16: LPC2800 I
2
C
6.4 I
2
C Control Register (I2CTL - 0x8002 0808)
6.5 I
2
C Clock Divisor High Register (I2CLKHI - 0x8002 080C)
Table 219. I
2
C Control Register (I2CON - 0x8002 0808)
Bit
Symbol
Description
Reset
value
0
OCIE
A 1 in this bit enables an interrupt request when the Operation
Complete (OCI) bit in I2STS is 1.
0
1
AFIE
A 1 in this bit enables an interrupt request when the Arbitration Failure
(AFI) bit in I2STS is 1.
0
2
NAIE
A 1 in this bit enables an interrupt request when the No Acknowledge
(NAI) bit in I2STS is 1.
0
3
DRMIE
A 1 in this bit enables an interrupt request when the Master Data
Request (DRMI) bit in I2STS is 1.
0
4
DRSIE
A 1 in this bit enables an interrupt request when the Slave Data Request
(DRSI) bit in I2STS is 1.
0
5
RFFE
A 1 in this bit enables an interrupt request when the Receive FIFO Full
(RFF) bit in I2STS is 1.
0
6
RFNEE
A 1 in this bit enables an interrupt request when the Receive FIFO
Empty (RFE) bit in I2STS is 0.
0
7
TFNFE
A 1 in this bit enables an interrupt request when the Transmit FIFO Full
(TFF) bit in I2STS is 0.
0
8
I2RES
Software controlling the I
2
C interface should use a hardware or software
timer to detect an erroneous timeout condition on the I
2
C bus, and in
such a state write a 1 to this bit to reset the I
2
C interface. This flushes
all I
2
C FIFOs, clears the STS register to its reset states, and reinitializes
internal state machines, but does not change the Clock Divisor nor
Slave Address registers. Another situation in which this bit is useful is
when no slave acknowledges an address/direction byte sent in master
mode.
0
9
-
Reserved, user software should not write ones to reserved bits. The
value read from a reserved bit is not defined.
-
10
TFNFSE
A 1 in this bit enables an interrupt request when the Slave Transmit
FIFO Full (TFFS) bit in I2STS is 0.
0
31:11 -
Reserved, user software should not write ones to reserved bits. The
value read from a reserved bit is not defined.
-
Table 220. I
2
C Clock Divisor High Register (I2CLKHI - 0x8002 080C)
Bits
Description
Reset
value
14:0
Clock Divisor High:
when the I
2
C interface is operating in master mode, it waits
this number of cycles of APB1 PCLK after it detects SCL high, before it drives
SCL low again for the next bit. (It aborts this waiting if it detects SCL low from
another master.)
0x752E
31:15 Reserved, user software should not write ones to reserved bits. The value read
from a reserved bit is not defined.
-