30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

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.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 11: LPC2300 Ethernet<br />

The magic packet detection unit analyzes the Ethernet packets, extracts the packet<br />

address and checks the payload for the Magic Packet pattern. The address from the<br />

packet is used for matching the pattern (not the address in the SA0/1/2 registers.) A magic<br />

packet only sets the wake-up interrupt status bit if the packet passes the receive filter as<br />

illustrated in Figure 11–25: the result of the receive filter is ANDed with the magic packet<br />

filter result to produce the result.<br />

Magic Packet filtering is enabled by setting the MagicPacketEnWoL bit of the RxFilterCtrl<br />

register. Note that when doing Magic Packet WoL, the RxFilterEnWoL bit in the<br />

RxFilterCtrl register should be 0. Setting the RxFilterEnWoL bit to 1 would accept all<br />

packets for a matching address, not just the Magic Packets i.e. WoL using Magic Packets<br />

is more strict.<br />

When a magic packet is detected, apart from the WakeupInt bit in the IntStatus register,<br />

the MagicPacketWoL bit is set in the RxFilterWoLStatus register. Software can reset the<br />

bit writing a 1 to the corresponding bit of the RxFilterWoLClear register.<br />

Example: An example of a Magic Packet with station address 0x11 0x22 0x33 0x44 0x55<br />

0x66 is the following (MISC indicates miscellaneous additional data bytes in the packet):<br />

<br />

FF FF FF FF FF FF<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

11 22 33 44 55 66 11 22 33 44 55 66<br />

<br />

16.13 Enabling and disabling receive and transmit<br />

Enabling and disabling reception<br />

After reset, the receive function of the Ethernet block is disabled. The receive function can<br />

be enabled by the device driver setting the RxEnable bit in the Command register and the<br />

“RECEIVE ENABLE’ bit in the MAC1 configuration register (in that order).<br />

The status of the receive datapath can be monitored by the device driver by reading the<br />

RxStatus bit of the Status register. Figure 11–26 illustrates the state machine for the<br />

generation of the RxStatus bit.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 194 of 613

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

Saved successfully!

Ooh no, something went wrong!