Datasheet
2016 Microchip Technology Inc. DS00002246A-page 79
KSZ8895MQX/RQX/FQX/MLX
4.6 Dynamic MAC Address Table
Table 4-10 is read-only. The contents are maintained only by the KSZ8895MQX/RQX/FQX/MLX.
Examples:
1. Dynamic MAC Address Table Read (read the 1st entry), and retrieve the MAC table size
Write to Register 110 with 0x18 (read dynamic table selected)
Write to Register 111 with 0x0 (trigger the read operation) and then
Read Register 112 (71-64)
Read Register 113 (63-56); // the above two registers show # of entries
Read Register 114 (55-48) // if bit 55 is 1, restart (reread) from this register
Read Register 115 (47-40)
Read Register 116 (39-32)
Read Register 117 (31-24)
Read Register 118 (23-16)
Read Register 119 (15-8)
Read Register 120 (7-0)
2. Dynamic MAC Address Table Read (read the 257th entry), without retrieving # of entries information
Write to Register 110 with 0x19 (read dynamic table selected)
Write to Register 111 with 0x1 (trigger the read operation) and then
Read Register 112 (71-64)
Read Register 113 (63-56)
Read Register 114 (55-48) // if bit 55 is 1, restart (reread) from this register
Read Register 115 (47-40)
Read Register 116 (39-32)
Read Register 117 (31-24)
Read Register 118 (23-16)
TABLE 4-10: DYNAMIC MAC ADDRESS TABLE
Address Name Description Mode Default
Format of Dynamic MAC Address Table (1K entries)
71 MAC Empty
1, there is no valid entry in the table.
0, there are valid entries in the table.
RO 1
70 - 61
Number of
Valid Entries
Indicates how many valid entries in the table.
0x3ff means 1K entries
0x1 and bit 71 = 0: means 2 entries
0x0 and bit 71 = 0: means 1 entry
0x0 and bit 71 = 1: means 0 entry
RO 0
60 - 59 Time Stamp 2-bit counters for internal aging RO —
58 - 56 Source Port
The source port where FID+MAC is learned.
000 Port 1
001 Port 2
010 Port 3
011 Port 4
100 Port 5
RO 0x0
55 Data Ready
1, The entry is not ready, retry until this bit is set to 0.
0, The entry is ready.
RO —
54 - 48 FID Filter ID. RO 0x0
47 - 0
MAC
Address
48-bit MAC address. RO 0x0