
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
414 of 487
29.1 How to read this chapter
The I2C-bus ROM API is available on all LPC82x parts.
29.2 Features
•
Simple I2C drivers to send and receive data on the I2C-bus.
•
Polled and interrupt-driven receive and transmit functions for master and slave
modes.
29.3 General description
The drivers are callable for use by any application program to send or receive data on the
I2C bus. With the I2C drivers it is easy to produce working projects using the I2C
interface.
The ROM routines allow the user to operate the I2C interface as a Master or a Slave. The
software routines do not implement arbitration to make a Master switch to a Slave mode in
the midst of a transmission.
Although multi-master arbitration is not implemented in these I2C drivers, it is possible to
use them in a system design with more than one master. If the flag returned from the
driver indicates that the message was not successful due to loss of arbitration, the
application just re-sends the message.
UM10800
Chapter 29: LPC82x ROM API I2C driver routines
Rev. 1.2 — 5 October 2016
User manual