DM9000A
APPLICATION NOTES
Preliminary 34
Version: DM9000A-AN-V121
November 27, 2007
(1) Magic Packet
If the DM9000A receives a broadcast packet which content is "FF:FF:FF:FF:FF:FF"+"16 times
of the Node address", then the wake-up pin
will be activated. Please note that the Node
address must be the same as the Physical address in the PAR REG. 10H~REG. 15H.
For example:
#define NCR
0x00
#define WCR
0x0F
iow ( WCR , ior ( WCR ) | 0x08 ); /* Magic Packet event enable */
iow ( NCR , ior ( NCR ) | 0x40 ); /* Wake-up remote enable */
/* If a physical address in DM9000A PAR REG. 10H ~ REG. 15H is 00:60:6e:90:00:01 */
/* DM9000A WOL would be active, while received the Magic packet as follows, */
/* FF FF FF FF FF FF 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 */
/* 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 */
/* 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 */
/* 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 00 60 6E 90 00 01 */
/* 00 60 6E 90 00 01 (+ another DM9000A TX auto 4-byte CRC appends)
*/
(2) Link Change
If the link status of the internal PHY has been changed, the wake-up pin will be active.
For example,
#define NCR
0x00
#define WCR
0x0F
iow ( WCR , ior ( WCR ) | 0x20 ); /* Link Change event enable */
iow ( NCR , ior ( NCR ) | 0x40 ); /* Wake-up function enable */
(3) Sample Frame
The Sample Frame would be made up of 6 packets and the maximum size of each packet
can be 2048-byte. The wake-up pin will be active if the DM9000A receives only one set of the
sample frames. The following description will show how to set the Sample Frame in detail.
z
Firstly close the DM9000A receiver function and set the Bit [0] in RCR REG. 05 to "0".
z
Stop the self recover function. Set the Bit [7] PAR in IMR REG. FFH to be "0".