Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
2
Добавлен:
18.07.2023
Размер:
1.3 Mб
Скачать

ENC28J60

8.3Magic Packet™ Filter

The Magic Packet filter checks the destination address and data fields of all incoming packets. If the destination address matches the MAADR registers and the data field holds a valid Magic Packet pattern someplace

within it, then the packet will meet the Magic Packet filter criteria. The Magic Packet pattern consists of a sync pattern of six 0xFF bytes, followed by 16 repeats of the destination address. See Figure 8-4 for a sample Magic Packet.

FIGURE 8-4: SAMPLE MAGIC PACKET™ FORMAT

 

 

Received

 

 

 

 

 

 

 

 

Comments

 

 

Data

 

 

 

Field

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

22

33

44

55

66

 

 

DA

 

 

 

 

 

77

88

99

AA BB

CC

 

 

SA

 

 

 

 

 

00

FE

 

 

 

 

 

Type/Length

 

 

 

 

 

09

0A

0B

0C

0D

0E

 

 

 

 

 

 

 

 

FF

FF

FF

FF

FF

00

 

 

 

 

 

Sync Pattern

 

 

 

 

 

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

 

Data

 

 

 

 

 

 

 

 

 

 

 

11

22

33

44

55

66

 

 

 

Sixteen Repeats of

 

 

 

 

 

11

22

33

44

55

66

 

 

 

 

 

the Station Address

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

19

1A

1B

1C

1D

1E

 

 

 

 

 

 

 

 

EF

54

32

10

 

 

 

FCS

 

 

 

 

 

8.4Hash Table Filter

The Hash Table receive filter performs a CRC over the six destination address bytes in the packet. The CRC is then used as a pointer into the bits of the EHT registers. If the pointer points to a bit which is set, the packet meets the Hash Table filter criteria. For example, if the CRC is calculated to be 0x5, bit 5 in the Hash Table will be checked. If it is set, the Hash Table filter criteria will be met. If every bit is clear in the Hash Table, the filter criteria will never be met. Similarly, if every bit is set in the Hash Table, the filter criteria will always be met.

8.5Multicast Filter

The Multicast receive filter checks the destination address of all incoming packets. If the Least Significant bit of the first byte of the destination address is set, the packet will meet the Multicast filter criteria.

8.6Broadcast Filter

The Broadcast receive filter checks the destination address of all incoming packets. If the destination address is FF-FF-FF-FF-FF-FF, the packet will meet the Broadcast filter criteria.

DS39662E-page 52

.

2006-2012 Microchip Technology Inc.