Philips LPC213 Series User Manual page 116

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
11.6.2 Address Register, I2ADDR
This register may be loaded with the 7-bit slave address (7 most significant bits) to which
the I
(GC) is used to enable general call address (0x00) recognition.
11.6.3 Comparator
The comparator compares the received 7-bit slave address with its own slave address (7
most significant bits in I2ADR). It also compares the first received 8-bit byte with the
general call address (0x00). If an equality is found, the appropriate status bits are set and
an interrupt is requested.
11.6.4 Shift register, I2DAT
This 8-bit register contains a byte of serial data to be transmitted or a byte which has just
been received. Data in I2DAT is always shifted from right to left; the first bit to be
transmitted is the MSB (bit 7) and, after a byte has been received, the first bit of received
data is located at the MSB of I2DAT. While data is being shifted out, data on the bus is
simultaneously being shifted in; I2DAT always contains the last byte present on the bus.
Thus, in the event of lost arbitration, the transition from master transmitter to slave receiver
is made with the correct data in I2DAT.
11.6.5 Arbitration and synchronization logic
In the master transmitter mode, the arbitration logic checks that every transmitted logic 1
actually appears as a logic 1 on the I
1 and pulls the SDA line low, arbitration is lost, and the I
from master transmitter to slave receiver. The I
(on SCL) until transmission of the current serial byte is complete.
Arbitration may also be lost in the master receiver mode. Loss of arbitration in this mode
can only occur while the I
Arbitration is lost when another device on the bus pulls this signal LOW. Since this can
occur only at the end of a serial byte, the I
Figure 27
User manual
2
C block will respond when programmed as a slave transmitter or receiver. The LSB
shows the arbitration procedure.
SDA Line
SCL Line
1. Another device transmits identical serial data.
2. Another device overrules a logic (dotted line) transmitted this I
Arbitration is lost and this I
3. This I
2
C is in Slave Receiver mode, but still generates clock pulses until the current byte has been
transmitted. This I
2
C will not generate clock pulses for the next byte. Data on SDA originates from the new
master once it has won arbitration.
Fig 27. Arbitration procedure
Rev. 01 — 24 June 2005
2
C-bus. If another device on the bus overrules a logic
2
C block will continue to output clock pulses
2
C block is returning a "not acknowledge: (logic 1) to the bus.
2
C block generates no further clock pulses.
(1)
(1)
(2)
1
2
3
4
2
C master, by pulling the SDA line low.
2
C enters Slave Receiver mode.
UM10120
2
Chapter 11: I
C interfaces
2
C block immediately changes
(3)
8
9
ACK
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
116

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents