DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
268 of 313
23.1 How to read this chapter
The I2C-bus ROM API is available on all LPC800 parts.
23.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.
23.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 resends the message.
UM10601
Chapter 23: LPC800 I2C-bus ROM API
Rev. 1.0 — 7 November 2012
Preliminary user manual