Xilinx ML403 specifications Data Transfer on the IIC Bus

Page 3

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

Image 3
Contents Included Systems SummaryIntroduction IIC PrimerIntroduction Data Transfer on the IIC Bus Reference System Specifics Reference System SpecificsOPB IIC Control Register Bits Name Description ML403 XC4VFX12 Address MapOPB IIC Registers OPB IIC Registers AddressStatus Register SR Status Register Bit Definitions Contd Microchip 24LC04 Configuring the OPB IIC Core24LC04 Control Byte Allocation ML40x Schematic for IIC ConnectionsML40x Resistors Expansion Header Fpga IIC Pins TotalPhase Aardvark AdapterAardvark Control Center Software Projects Executing the Reference System from EDKProjects interfacing to Aardvark Adapter Running the Applications Running the ApplicationsProject HyperTerminal Parameters Using ChipScope with OPB IIC Invoke XPS. Run Hardware → Generate NetlistRun Start → Programs → ChipScope Pro → ChipScope Inserter Start → Programs → ChipScope Pro → ChipScope Pro Analyzer Making Net Connections in ChipScope InserterSetting Up the Chipscope Trigger Linux Kernel Linux KernelBSP Settings Connected Peripherals Simulation SimulationOPB IIC Simulation Signal Name FunctionalityComplete Simulation Arbitrartion Lost Test Simulation Arbitration Lost Test Code Simulation with iicAA as Master Test code with iicAA as Master X97934012907 Test Code for Simulation with iic20 as Master Revision RevisionHistory References