Introduction

R

Figure 4 shows the format of the data transfer of two bytes on the IIC bus, beginning with the START (S) condition and ending with the STOP (P) condition, bounded by an idle IIC (F) bus. After a START condition, an eight bit field is transmitted containing a 7 bit address and a single Read/Write (R/W) bit. This 8 bit address/direction field is followed by an Acknowledge bit. After the address/data field, an eight bit data field is followed by an acknowledge bit (A). The last 8- bit data field is followed by a not acknowledge bit (A). This is followed by the STOP condition

(P).

A single message can contain multiple start conditions, or a repeated start, without intervening STOP conditions.

In this data transfer, there are two acknowledge bits and one Not Acknowledge on the IIC bus. The distinction between a Not Acknowledge and a No Acknowledge is that Not Acknowledge occurs after a master has read a byte from a slave and a No Acknowledge occurs after a master has written a byte to a slave.

A synchronized SCL is generated with its LOW period determined by the device with the longest low period and its HIGH period determined by the device with the shortest HIGH period.

F

S

Slave

R/W

A

Data

A

Data

 

 

 

P

F

 

A

Address

 

 

 

 

 

 

 

 

 

 

 

 

 

SDA

SCL

X979_04_012907

Figure 4: Data Transfer on the IIC Bus

Figure 5 shows the data transfer on the IIC bus, beginning with the START condition and ending with the STOP condition.

SDA

 

 

 

 

 

 

 

MSB

 

 

Acknowledgment

 

 

 

 

 

 

 

 

 

 

signal from slave

 

 

 

 

 

Byte complete;

 

 

 

 

interrupt within slave

SCL S

1

2

7

8

9

 

or

 

 

 

 

ACK

SR

START or

repeated START

condition

 

 

 

 

P

 

 

Acknowledgment

Sr

 

 

signal from receiver

 

Clock lines held low while

 

interrupts are serviced

 

 

1

2

3 - 8

9

Sr

 

 

 

ACK

or

P

STOP or

repeated START

condition

X979_05_022307

Figure 5: Generic Data Transer on the IIC Bus

XAPP979 (v1.0) February 26, 2007

www.xilinx.com

3

Page 3
Image 3
Xilinx ML403 specifications Data Transfer on the IIC Bus