English
Language : 

PNX1502E Datasheet, PDF (755/819 Pages) NXP Semiconductors – Connected Media Processor
Philips Semiconductors
Volume 1 of 1
PNX15xx Series
Chapter 25: I2C Interface
Master Transmitter Mode
Serial data is output through SDA while SCL outputs the serial clock. The first byte
transmitted contains the slave address of the receiving device (7-bit SLA) and the
data direction bit as in Figure 1. In this case the data direction bit (R/W) will be a logic
‘0’ (W). Serial data is transmitted 8 bits at a time. After each byte is transmitted, an
acknowledge bit is received. START and STOP conditions are output to indicate the
beginning and end of a serial transfer.
7-Bit SLA
R/W
7
Figure 1: SDA First Transmitted Byte
1
0
In the master transmitter mode, a number of data bytes can be transmitted to the
slave receiver. Before the master transmitter mode can be entered, the
IIC_CONTROL register must be initialized with the EN bit set and the STA and STO
bits reset. EN must be set to enable the IIC module interface. If the AA bit is reset, the
IIC module will not acknowledge its own slave address or the general call address if
they are present on the bus. This will prevent the IIC module interface from entering a
slave mode.
The master transmitter mode may now be entered by setting the STA bit. The IIC
module will then test the I2C bus and generate a start condition as soon as the bus
becomes free. When a START condition is transmitted, the status code in the status
register (STA) will be 0x08. This status code must be used to vector to an interrupt
service routine that loads IIC_DAT with the slave address and the data direction bit
(SLA+W).
When the slave address and direction bit have been transmitted and an
acknowledgment bit has been received, a number of status codes in STA are
possible. The appropriate action to be taken for any of the status codes is detailed in
Table 5 on page 25-11. After a repeated start condition (state 0x10), the IIC module
may switch to the master receiver mode by loading IIC_DAT with SLA+R.
Master Receiver Mode
The first byte transmitted contains the slave address of the transmitting device (7-bit
SLA) and the data direction bit. In this case, the data direction bit (R/W) will be logic 1
(R). Serial data is received via SDA while SCL outputs the serial clock. Serial data is
received 8 bits at a time. After each byte is received, an acknowledge bit is
transmitted. START and STOP conditions are output to indicate the beginning and
end of a serial transfer.
In the master receiver mode, a number of data bytes are received from a slave
transmitter. The transfer is initialized as in the master transmitter mode. When the
START condition has been transmitted, the interrupt service routine must load
IIC_DAT with the 7-bit slave address and the data direction bit (SLA+R).
12NC 9397 750 14321
Product data sheet
Rev. 2 — 1 December 2004
© Koninklijke Philips Electronics N.V. 2002-2003-2004. All rights reserved.
25-5