UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
320 of 464
NXP Semiconductors
UM10850
Chapter 23: LPC5410x I2C-bus interfaces (I2C0/1/2)
23.6.6 Clock Divider register
The CLKDIV register divides down the Peripheral Clock (PCLK) to produce the I
2
C
function clock that is used to time various aspects of the I
2
C interface. The I
2
C function
clock is used for some internal operations in the I
2
C block and to generate the timing
required by the I
2
C bus specification, some of which are user configured in the MSTTIME
register for Master operation. Slave operation uses CLKDIV for some timing functions.
Section 23.7.1.1 “Rate calculations”
for details on bus rate setup.
23.6.7 Interrupt Status register
The INTSTAT register provides register provides a view of those interrupt flags that are
currently enabled. This can simplify software handling of interrupts. See
detailed descriptions of the interrupt flags.
Table 353. Address map CLDIV register
Peripheral
Base address
Offset
Increment
Dimension
I2C0
0x4009 4000
0x014
-
1
I2C1
0x4009 8000
0x014
-
1
I2C2
0x4009 C000
0x014
-
1
Table 354. I
2
C Clock Divider register (CLKDIV, offset 0x14) bit description
Bit
Symbol
Description
Reset value
15:0
DIVVAL
This field controls how the clock (PCLK) is used by the I
2
C functions that need an internal
clock in order to operate.
0x0000 = PCLK is used directly by the I
2
C.
0x0001 = PCLK is divided by 2 before use.
0x0002 = PCLK is divided by 3 before use.
...
0xFFFF = PCLK is divided by 65,536 before use.
0
31:16
-
Reserved. Read value is undefined, only zero should be written.
NA
Table 355. Address map INTSTAT register
Peripheral
Base address
Offset
Increment
Dimension
I2C0
0x4009 4000
0x018
-
1
I2C1
0x4009 8000
0x018
-
1
I2C2
0x4009 C000
0x018
-
1
Table 356. I
2
C Interrupt Status register (INTSTAT, address offset 0x018) bit description
Bit
Symbol
Description
Reset value
0
MSTPENDING
Master Pending.
1
3:1
-
Reserved.
4
MSTARBLOSS
Master Arbitration Loss flag.
0
5
-
Reserved. Read value is undefined, only zero should be written.
NA
6
MSTSTSTPERR
Master Start/Stop Error flag.
0
7
-
Reserved. Read value is undefined, only zero should be written.
NA
8
SLVPENDING
Slave Pending.
0