
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
229 of 487
15.1 How to read this chapter
Four I2C interfaces are available on all parts depending on the switch matrix
configuration.
Read this chapter if you want to understand the I2C operation and the software interface
and want to learn how to use the I2C for wake-up from reduced power modes.
The LPC82x provides an on-chip ROM-based I2C API to configure and operate the I2C.
15.2 Features
•
Independent Master, Slave, and Monitor functions.
•
Supports both Multi-master and Multi-master with Slave functions.
•
Multiple I
2
C slave addresses supported in hardware.
•
One slave address can be selectively qualified with a bit mask or an address range in
order to respond to multiple I
2
C bus addresses.
•
10-bit addressing supported with software assist.
•
Supports SMBus.
•
Supports the I
2
C-bus specification up to Fast-mode Plus (up to 1 MHz).
15.3 Basic configuration
Configure the I2C interfaces using the following registers:
•
In the SYSAHBCLKCTRL register, set the corresponding bits to enable the clocks to
the register interfaces. See
•
Clear the I2C peripheral resets using the PRESETCTRL register (
•
Enable/disable the I2C interrupt in interrupt slots #7, 8, 21, 22 in the NVIC. See
.
•
Configure the I2C pin functions through the switch matrix. See
•
The peripheral clock for the I2C is the system clock (see
UM10800
Chapter 15: LPC82x I2C0/1/2/3
Rev. 1.2 — 5 October 2016
User manual