29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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<br />

RM0008<br />

Table 193.<br />

Bit 18:<br />

Ethernet frame<br />

Frame statuses<br />

Bit 27: Header<br />

checksum error<br />

Bit 28: Payload<br />

checksum error<br />

Frame status<br />

0 0 0<br />

1 0 0<br />

1 0 1<br />

1 1 0<br />

1 1 1<br />

0 0 1<br />

0 1 1<br />

0 1 0 Reserved<br />

The frame is an IEEE 802.3 frame (Length<br />

field value is less than 0x0600).<br />

IPv4/IPv6 Type frame in which no checksum<br />

error is detected.<br />

IPv4/IPv6 Type frame in which a payload<br />

checksum error (as described for PCE) is<br />

detected<br />

IPv4/IPv6 Type frame in which IP header<br />

checksum error (as described for IPCO HCE)<br />

is detected.<br />

IPv4/IPv6 Type frame in which both PCE <strong>and</strong><br />

IPCO HCE are detected.<br />

IPv4/IPv6 Type frame in which there is no IP<br />

HCE <strong>and</strong> the payload check is bypassed due<br />

to unsupported payload.<br />

Type frame which is neither IPv4 or IPv6<br />

(checksum offload bypasses the checksum<br />

check completely)<br />

Receive frame controller<br />

If the RA bit is reset in the MAC CSR frame filter register, the MAC performs frame filtering<br />

based on the destination/source address (the application still needs to perform another level<br />

of filtering if it decides not to receive any bad frames like runt, CRC error frames, etc.). On<br />

detecting a filter-fail, the frame is dropped <strong>and</strong> not transferred to the application. When the<br />

filtering parameters are changed dynamically, <strong>and</strong> in case of (DA-SA) filter-fail, the rest of<br />

the frame is dropped <strong>and</strong> the Rx Status Word is immediately updated (with zero frame<br />

length, CRC error <strong>and</strong> Runt Error bits set), indicating the filter fail. In Ethernet power down<br />

mode, all received frames are dropped, <strong>and</strong> are not forwarded to the application.<br />

Receive flow control<br />

The MAC detects the receiving Pause frame <strong>and</strong> pauses the frame transmission for the<br />

delay specified within the received Pause frame (only in Full-duplex mode). The Pause<br />

frame detection function can be enabled or disabled with the RFCE bit in ETH_MACFCR.<br />

Once receive flow control has been enabled, the received frame destination address begins<br />

to be monitored for any match with the multicast address of the control frame<br />

(0x0180 C200 0001). If a match is detected (the destination address of the received frame<br />

matches the reserved control frame destination address), the MAC then decides whether or<br />

not to transfer the received control frame to the application, based on the level of the PCF bit<br />

in ETH_MACFFR.<br />

The MAC also decodes the type, opcode, <strong>and</strong> Pause Timer fields of the receiving control<br />

frame. If the byte count of the status indicates 64 bytes, <strong>and</strong> if there is no CRC error, the<br />

MAC transmitter pauses the transmission of any data frame for the duration of the decoded<br />

Pause time value, multiplied by the slot time (64 byte times for both 10/100 Mbit/s modes).<br />

862/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!