09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Figure 341. Wakeup frame filter register<br />

Wakeup frame filter reg0<br />

Wakeup frame filter reg1<br />

Wakeup frame filter reg2<br />

Wakeup frame filter reg3<br />

Wakeup frame filter reg4<br />

Wakeup frame filter reg5<br />

Wakeup frame filter reg6<br />

Wakeup frame filter reg7<br />

RSVD<br />

Filter 3<br />

Command<br />

● Filter i Byte Mask<br />

This register defines which bytes of the frame are examined by filter i (0, 1, 2, and 3) in<br />

order to determine whether or not the frame is a wakeup frame. The MSB (thirty-first<br />

bit) must be zero. Bit j [30:0] is the Byte Mask. If bit j (byte number) of the Byte Mask is<br />

set, then Filter i Offset + j of the incoming frame is processed by the CRC block;<br />

otherwise Filter i Offset + j is ignored.<br />

● Filter i Command<br />

This 4-bit command controls the filter i operation. Bit 3 specifies the address type,<br />

defining the pattern’s destination address type. When the bit is set, the pattern applies<br />

to only multicast frames. When the bit is reset, the pattern applies only to unicast<br />

frames. Bit 2 and bit 1 are reserved. Bit 0 is the enable bit for filter i; if bit 0 is not set,<br />

filter i is disabled.<br />

● Filter i Offset<br />

This register defines the offset (within the frame) from which the frames are examined<br />

by filter i. This 8-bit pattern offset is the offset for the filter i first byte to be examined.<br />

The minimum allowed is 12, which refers to the 13th byte of the frame (offset value 0<br />

refers to the first byte of the frame).<br />

● Filter i CRC-16<br />

This register contains the CRC_16 value calculated from the pattern, as well as the<br />

byte mask programmed to the wakeup filter register block.<br />

Remote wakeup frame detection<br />

RSVD<br />

Filter 0 Byte Mask<br />

Filter 1 Byte Mask<br />

Filter 2 Byte Mask<br />

Filter 3 Byte Mask<br />

Filter 2<br />

Command<br />

When the MAC is in sleep mode and the remote wakeup bit is enabled in the<br />

ETH_MACPMTCSR register, normal operation is resumed after receiving a remote wakeup<br />

frame. The application writes all eight wakeup filter registers, by performing a sequential<br />

write to the wakeup frame filter register address. The application enables remote wakeup by<br />

writing a 1 to bit 2 in the ETH_MACPMTCSR register. PMT supports four programmable<br />

filters that provide different receive frame patterns. If the incoming frame passes the address<br />

filtering of Filter Command, and if Filter CRC-16 matches the incoming examined pattern,<br />

then the wakeup frame is received. Filter_offset (minimum value 12, which refers to the 13th<br />

byte of the frame) determines the offset from which the frame is to be examined. Filter Byte<br />

Mask determines which bytes of the frame must be examined. The thirty-first bit of Byte<br />

Mask must be set to zero. The wakeup frame is checked only for length error, FCS error,<br />

dribble bit error, MII error, collision, and to ensure that it is not a runt frame. Even if the<br />

RSVD<br />

Filter 1<br />

Command<br />

RSVD<br />

Filter 0<br />

Command<br />

Filter 3 Offset Filter 2 Offset Filter 1 Offset Filter 0 Offset<br />

Filter 1 CRC - 16 Filter 0 CRC - 16<br />

Filter 3 CRC - 16 Filter 2 CRC - 16<br />

ai15647<br />

Doc ID 018909 Rev 3 932/1416

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

Saved successfully!

Ooh no, something went wrong!