Address Register, I2Addr; Comparator; Shift Register, I2Dat; Arbitration And Synchronization Logic - Philips LPC2101 User Manual

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 30

User manual

2
C block will respond when programmed as a slave transmitter or receiver. The LSB
shows the arbitration procedure.
(1)
SDA line
SCL line
1
(1) Another device transmits serial data.
(2) Another device overrules a logic (dotted line) transmitted this I
line low. Arbitration is lost, and this I
2
(3) This I
C is in Slave Receiver mode but still generates clock pulses until the current byte has
been transmitted. This I
originates from the new master once it has won arbitration.
Fig 30. Arbitration procedure
Rev. 01 — 12 January 2006
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)
(2)
2
3
4
2
C enters Slave Receiver mode.
2
C will not generate clock pulses for the next byte. Data on SDA
UM10161
2
Chapter 11: I
C interfaces
2
C block immediately changes
(3)
8
9
ACK
2
C master by pulling the SDA
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
125

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents