Nxp Semiconductors UM10237 User Manual

Page of 792
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008 
271 of 792
NXP Semiconductors
UM10237
Chapter 11: LPC24XX Ethernet
The magic packet detection unit analyzes the Ethernet packets, extracts the packet 
address and checks the payload for the Magic Packet pattern. The address from the 
packet is used for matching the pattern (not the address in the SA0/1/2 registers.) A magic 
packet only sets the wake-up interrupt status bit if the packet passes the receive filter as 
illustrated in 
: the result of the receive filter is ANDed with the magic packet 
filter result to produce the result.
Magic Packet filtering is enabled by setting the MagicPacketEnWoL bit of the RxFilterCtrl 
register. Note that when doing Magic Packet WoL, the RxFilterEnWoL bit in the 
RxFilterCtrl register should be 0. Setting the RxFilterEnWoL bit to 1 would accept all 
packets for a matching address, not just the Magic Packets i.e. WoL using Magic Packets 
is more strict.
When a magic packet is detected, apart from the WakeupInt bit in the IntStatus register, 
the MagicPacketWoL bit is set in the RxFilterWoLStatus register. Software can reset the 
bit writing a 1 to the corresponding bit of the RxFilterWoLClear register.
Example: An example of a Magic Packet with station address 0x11 0x22 0x33 0x44 0x55 
0x66 is the following (MISC indicates miscellaneous additional data bytes in the packet):
<DESTINATION> <SOURCE> <MISC>
FF FF FF FF FF FF
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
11 22 33 44 55 66 11 22 33 44 55 66
<MISC> <CRC>
9.16 Enabling and disabling receive and transmit
Enabling and disabling reception
After reset, the receive function of the Ethernet block is disabled. The receive function can 
be enabled by the device driver setting the RxEnable bit in the Command register and the 
“RECEIVE ENABLE’ bit in the MAC1 configuration register (in that order).
The status of the receive datapath can be monitored by the device driver by reading the 
RxStatus bit of the Status register. 
 illustrates the state machine for the 
generation of the RxStatus bit.