English
Language : 

LAN9311 Datasheet, PDF (120/461 Pages) SMSC Corporation – Two Port 10/100 Managed Ethernet Switch with 16-Bit Non-PCI CPU Interface
Two Port 10/100 Managed Ethernet Switch with 16-Bit Non-PCI CPU Interface
Datasheet
For example, if the Host MAC address is 00h 11h 22h 33h 44h 55h, then the MAC scans for the
following data sequence in an Ethernet frame:
Destination Address Source Address ……………FF FF FF FF FF FF
00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55
00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55
00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55
00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55 00 11 22 33 44 55
…CRC
Note: The switch fabric must be configured to pass magic packets to the Host MAC for this function
to operate properly.
9.6
Host MAC Address
The Host MAC address is configured via the Host MAC Address Low Register (HMAC_ADDRL) and
Host MAC Address High Register (HMAC_ADDRH). These registers contain the 48-bit physical
address of the Host MAC. The contents of these registers may be loaded directly by the host, or
optionally, by the EEPROM Loader from EEPROM at power-on (if a programmed EEPROM is
detected). The MAC address value loaded by the EEPROM Loader into the Host MAC address
registers (for host packet unicast qualification), is also loaded into the Switch Fabric MAC address
registers (for pause packet / flow control): Switch Fabric MAC Address Low Register
(SWITCH_MAC_ADDRL) and Switch Fabric MAC Address High Register (SWITCH_MAC_ADDRH).
These two sets of registers are loaded simultaneously via the same EEPROM byte addresses.
Table 9.7 below illustrates the byte ordering of the HMAC_ADDRL/SWITCH_MAC_ADDRL and
HMAC_ADDRH/SWITCH_MAC_ADDRH registers with respect to the reception of the Ethernet
physical address. Also shown is the correlation between the EEPROM addresses and
HMAC_ADDRL/SWITCH_MAC_ADDRL and HMAC_ADDRH/SWITCH_MAC_ADDRH registers.
Table 9.7 EEPROM Byte Ordering and Register Correlation
EEPROM Address
01h
02h
03h
04h
05h
06h
Register Locations Written
HMAC_ADDRL[7:0]
SWITCH_MAC_ADDRL[7:0]
HMAC_ADDRL[15:8]
SWITCH_MAC_ADDRL[15:8]
HMAC_ADDRL[23:16]
SWITCH_MAC_ADDRL[23:16]
HMAC_ADDRL[31:24]
SWITCH_MAC_ADDRL[31:24]
HMAC_ADDRH[7:0]
SWITCH_MAC_ADDRH[7:0]
HMAC_ADDRH[15:8]
SWITCH_MAC_ADDRH[15:8]
Order of Reception on Ethernet
1st
2nd
3rd
4th
5th
6th
For example, if the desired Ethernet physical address is 12-34-56-78-9A-BC, the HMAC_ADDRL and
HMAC_ADDRH registers would be programmed as shown in Figure 9.2. The values required to
automatically load this configuration from the EEPROM are also shown.
Revision 2.0 (02-14-13)
120
DATASHEET
SMSC LAN9311/LAN9311i