Datasheet

ENC28J60
DS39662E-page 70 . 2006-2012 Microchip Technology Inc.
12.2 Wake-On-LAN/Remote Wake-up
Wake-On-LAN or Remote Wake-up is useful in conserv-
ing system power. The host controller and other
subsystems can be put in Low-Power mode and be
woken up by the ENC28J60 when a wake-up packet is
received from a remote station. The ENC28J60 must not
be in Power-Save mode and the transmit and receive
modules must be enabled in order to receive a wake-up
packet. The ENC28J60 wakes up the host controller via
the INT
signal when the Interrupt Mask registers are
properly configured. The receive filter can also be set up
to only receive a specific wake-up packet (see
Register 8-1 for available options). Section 12.2.1
“Setup Steps for Waking Up on a Magic Packet
shows the steps necessary in configuring the ENC28J60
to send an interrupt signal to the host controller upon the
reception of a Magic Packet.
12.2.1 SETUP STEPS FOR WAKING UP ON
A MAGIC PACKET
1. Set ERXFCON.CRCEN and ERXFCON.MPEN.
2. Service all pending packets.
3. Set EIE.PKTIE and EIE.INTIE.
4. Set up the host controller to wake-up on an
external interrupt INT signal.
5. Put the host controller and other subsystems to
Sleep to save power.
Once a Magic Packet is received, the EPKTCNT is
incremented to ‘1’, which causes the EIR.PKTIF bit to
set. In turn, the ESTAT.INT bit is set and the INT
signal
is driven low, causing the host to wake-up.