English
Language : 

LAN9313 Datasheet, PDF (105/398 Pages) SMSC Corporation – Three Port 10/100 Managed Ethernet Switch with MII
Three Port 10/100 Managed Ethernet Switch with MII
Datasheet
Figure 8.2 displays the various bus states of a typical I2C cycle.
EE_SDA
data
can
change
data
stable
data
can
change
data
can
change
data
stable
data
can
change
S
Sr
P
EE_SCL
Start Condition
Data Valid
or Ack
Re-Start
Condition
Figure 8.2 I2C Cycle
Data Valid
or Ack
Stop Condition
8.2.2.2
I2C EEPROM Device Addressing
The I2C EEPROM is addressed for a read or write operation by first sending a control byte followed
by the address byte or bytes. The control byte is preceded by a start condition. The control byte and
address byte(s) are each acknowledged by the EEPROM slave. If the EEPROM slave fails to send an
acknowledge, then the sequence is aborted and the EPC_TIMEOUT bit of the EEPROM Command
Register (E2P_CMD) is set.
The control byte consists of a 4-bit control code, 3-bits of chip/block select and one direction bit. The
control code is 1010b. For single byte addressing EEPROMs, the chip/block select bits are used for
address bits 10, 9, and 8. For double byte addressing EEPROMs, the chip/block select bits are set
low. The direction bit is set low to indicate the address is being written.
Figure 8.3 illustrates typical I2C EEPROM addressing bit order for single and double byte addressing.
Control Byte
Address Byte
S
1
0
1
0
A
1
0
A
9
A
8
0
A
C
K
A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
A
C
K
Control Byte
Address High
Byte
Address Low
Byte
S
1
0
1
0
0
0
0
0
A
C
K
A
1
5
A
1
4
A
1
3
A
1
2
A
1
1
A
1
0
A
9
A
8
A
C
K
A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
A
C
K
Chip / Block R/~W
Select Bits
Single Byte Addressing
Chip / Block R/~W
Select Bits
Double Byte Addressing
Figure 8.3 I2C EEPROM Addressing
SMSC LAN9313/LAN9313i
105
DATASHEET
Revision 1.2 (04-08-08)