C State Service Routines; Initialization; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
2
11.8.14 I
This section provides examples of operations that must be performed by various I
service routines. This includes:

11.8.15 Initialization

In the initialization example, the I
each mode, a buffer is used for transmission and reception. The initialization routine
performs the following functions:

User manual

STA flag
STO flag
SDA line
SCL line
Fig 37. Forced access to a busy I
STA flag
SDA line
SCL line
(1) Unsuccessful attempt to send a start condition.
(2) SDA line is released.
(3) Successful attempt to send a start condition. State 08H is entered.
Fig 38. Recovering from a bus obstruction caused by a LOW level on SDA

C state service routines

2
Initialization of the I
C block after a Reset.
2
I
C Interrupt Service
The 26 state service routines providing support for all four I
I2ADR is loaded with the part's own slave address and the general call bit (GC)
2
The I
C interrupt enable and interrupt priority bits are set
The slave mode is enabled by simultaneously setting the I2EN and AA bits in I2CON
and the serial clock frequency (for master modes) is defined by loading CR0 and CR1
in I2CON. The master routines must be started in the main program.
Rev. 01 — 12 January 2006
time limit
2
C-bus
(1)
(1)
2
C block is enabled for both master and slave modes. For
UM10161
Chapter 11: I
start
condition
(2)
(3)
start
condition
2
C operating modes.
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
2
C interfaces
2
C state
148

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents