English
Language : 

LAN9313 Datasheet, PDF (102/398 Pages) SMSC Corporation – Three Port 10/100 Managed Ethernet Switch with MII
8.2.1
Three Port 10/100 Managed Ethernet Switch with MII
Datasheet
EEPROM Controller Operation
I2C and Microwire master EEPROM operations are performed using the EEPROM Command Register
(E2P_CMD) and EEPROM Data Register (E2P_DATA).
In Microwire EEPROM mode, the following operations are supported:
„ ERASE (Erase Location)
„ ERAL (Erase All)
„ EWDS (Erase/Write Disable)
„ EWEN (Erase/Write Enable)
„ READ (Read Location)
„ WRITE (Write Location)
„ WRAL (Write All)
„ RELOAD (EEPROM Loader Reload - See Section 8.2.4, "EEPROM Loader")
Note: In I2C EEPROM mode, only a sub-set of the above commands (READ, WRITE, and RELOAD)
are supported.
Note: The EEPROM Loader uses the READ command only.
The supported commands of each mode are detailed in Section 13.1.3.1, "EEPROM Command
Register (E2P_CMD)," on page 160. Details specific to each EEPROM controller mode (I2C and
Microwire) are explained in Section 8.2.2, "I2C EEPROM" and Section 8.2.3, "Microwire EEPROM"
respectively.
When issuing a WRITE, or WRAL command, the desired data must first be written into the EEPROM
Data Register (E2P_DATA). The WRITE or WRAL command may then be issued by setting the
EPC_COMMAND field of the EEPROM Command Register (E2P_CMD) to the desired command
value. If the operation is a WRITE, the EPC_ADDRESS field in the EEPROM Command Register
(E2P_CMD) must also be set to the desired location. The command is executed when the EPC_BUSY
bit of the EEPROM Command Register (E2P_CMD) is set. The completion of the operation is indicated
when the EPC_BUSY bit is cleared.
When issuing a READ command, the EPC_COMMAND and EPC_ADDRESS fields of the EEPROM
Command Register (E2P_CMD) must be configured with the desired command value and the read
address, respectively. The READ command is executed by setting the EPC_BUSY bit of the EEPROM
Command Register (E2P_CMD). The completion of the operation is indicated when the EPC_BUSY
bit is cleared, at which time the data from the EEPROM may be read from the EEPROM Data Register
(E2P_DATA).
Other EEPROM operations (EWDS, EWEN, ERASE, ERAL, RELOAD) are performed by writing the
appropriate command into the EPC_COMMAND field of the EEPROM Command Register
(E2P_CMD). The command is executed by setting the EPC_BUSY bit of the EEPROM Command
Register (E2P_CMD). In all cases, the software must wait for the EPC_BUSY bit to clear before
modifying the EEPROM Command Register (E2P_CMD).
Note: The EEPROM device powers-up in the erase/write disabled state. To modify the contents of
the EEPROM, the EWEN command must first be issued.
If an operation is attempted and the EEPROM device does not respond within 30mS, the
LAN9313/LAN9313i will time-out, and the EPC_TIMEOUT bit of the EEPROM Command Register
(E2P_CMD) will be set.
Revision 1.2 (04-08-08)
102
DATASHEET
SMSC LAN9313/LAN9313i