09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ethernet (ETH): media access control (MAC) with DMA controller <strong>RM0090</strong><br />

The interrupt register bits only indicate the block from which the event is reported. You have<br />

to read the corresponding status registers and other registers to clear the interrupt. For<br />

example, bit 3 of the Interrupt register, set high, indicates that the Magic packet or Wake-on-<br />

LAN frame is received in Power-down mode. You must read the ETH_MACPMTCSR<br />

Register to clear this interrupt event.<br />

Figure 340. MAC core interrupt masking scheme<br />

29.5.5 MAC filtering<br />

TSTS<br />

TSTIM<br />

PMTS<br />

PMTIM<br />

Address filtering<br />

Address filtering checks the destination and source addresses on all received frames and<br />

the address filtering status is reported accordingly. Address checking is based on different<br />

parameters (Frame filter register) chosen by the application. The filtered frame can also be<br />

identified: multicast or broadcast frame.<br />

Address filtering uses the station's physical (MAC) address and the Multicast Hash table for<br />

address checking purposes.<br />

Unicast destination address filter<br />

The MAC supports up to 4 MAC addresses for unicast perfect filtering. If perfect filtering is<br />

selected (HU bit in the Frame filter register is reset), the MAC compares all 48 bits of the<br />

received unicast address with the programmed MAC address for any match. Default<br />

MacAddr0 is always enabled, other addresses MacAddr1–MacAddr3 are selected with an<br />

individual enable bit. Each byte of these other addresses (MacAddr1–MacAddr3) can be<br />

masked during comparison with the corresponding received DA byte by setting the<br />

corresponding Mask Byte Control bit in the register. This helps group address filtering for the<br />

DA. In Hash filtering mode (when HU bit is set), the MAC performs imperfect filtering for<br />

unicast addresses using a 64-bit Hash table. For hash filtering, the MAC uses the 6 upper<br />

CRC (see note 1 below) bits of the received destination address to index the content of the<br />

Hash table. A value of 000000 selects bit 0 in the selected register, and a value of 111111<br />

selects bit 63 in the Hash Table register. If the corresponding bit (indicated by the 6-bit CRC)<br />

is set to 1, the unicast frame is said to have passed the Hash filter; otherwise, the frame has<br />

failed the Hash filter.<br />

Note: This CRC is a 32-bit value coded by the following polynomial (for more details refer to<br />

Section 29.5.3: MAC frame reception):<br />

AND<br />

AND<br />

927/1416 Doc ID 018909 Rev 3<br />

TSTI<br />

PMTI<br />

OR<br />

Interrupt<br />

ai15637<br />

Gx ( ) x 32<br />

x 26<br />

x 23<br />

x 22<br />

x 16<br />

x 12<br />

x 11<br />

x 10<br />

x 8<br />

x 7<br />

x 5<br />

x 4<br />

x 2<br />

=<br />

+ + + + + + + + + + + + + x+ 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!