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.

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

Table 165. Source address filtering<br />

Frame type PM SAIF SAF SA filter operation<br />

Unicast<br />

29.5.6 MAC loopback mode<br />

1 X X Pass all frames<br />

0 0 0<br />

Pass status on perfect/Group filter match but do not drop<br />

frames that fail<br />

0 1 0 Fail status on perfect/group filter match but do not drop frame<br />

0 0 1 Pass on perfect/group filter match and drop frames that fail<br />

0 1 1 Fail on perfect/group filter match and drop frames that fail<br />

The MAC supports loopback of transmitted frames onto its receiver. By default, the MAC<br />

loopback function is disabled, but this feature can be enabled by programming the Loopback<br />

bit in the MAC ETH_MACCR register.<br />

29.5.7 MAC management counters: MMC<br />

The MAC management counters (MMC) maintain a set of registers for gathering statistics<br />

on the received and transmitted frames. These include a control register for controlling the<br />

behavior of the registers, two 32-bit registers containing generated interrupts (receive and<br />

transmit), and two 32-bit registers containing masks for the Interrupt register (receive and<br />

transmit). These registers are accessible from the application. Each register is 32 bits wide.<br />

Section 29.8: Ethernet register descriptions describes the various counters and lists the<br />

addresses of each of the statistics counters. This address is used for read/write accesses to<br />

the desired transmit/receive counter.<br />

The Receive MMC counters are updated for frames that pass address filtering. Dropped<br />

frames statistics are not updated unless the dropped frames are runt frames of less than 6<br />

bytes (DA bytes are not received fully).<br />

Good transmitted and received frames<br />

Transmitted frames are considered “good” if transmitted successfully. In other words, a<br />

transmitted frame is good if the frame transmission is not aborted due to any of the following<br />

errors:<br />

+ Jabber Timeout<br />

+ No Carrier/Loss of Carrier<br />

+ Late Collision<br />

+ Frame Underflow<br />

+ Excessive Deferral<br />

+ Excessive Collision<br />

Doc ID 018909 Rev 3 930/1416

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

Saved successfully!

Ooh no, something went wrong!