![background image](http://html1.mh-extra.com/html/national-semiconductor/macphyter-ii-dp83816/macphyter-ii-dp83816_manual_3402840062.webp)
61
www.national.com
4.0 Register Set
(Continued)
DP83816
Example:
Pattern match on the following destination addresses:
02-00-03-01-04-02
12-10-13-11-14-12
22-20-23-21-24-22
32-30-33-31-34-32
set $PATBUF01 = 280
set $PATBUF23 = 300
# write counts
iow l $RFCR (0006)
# pattern count registers 1, 0
iow l $RFDR (0406)
# count 1 = 4, count 0= 6
iow l $RFCR (0008)
# pattern count registers 3, 2
iow l $RFDR (0406)
# count 3 = 4, count 2 = 6
# write data pattern into buffer 0
iow l $RFCR ($PATBUF01)
iow l $RFDR (0002)
iow l $RFCR ($PA 4)
iow l $RFDR (0103)
iow l $RFCR ($PA 8)
iow l $RFDR (0204)
# write data pattern into buffer 1
iow l $RFCR ($PA 2)
iow l $RFDR (1012)
iow l $RFCR ($PA 6)
iow l $RFDR (1113)
iow l $RFCR ($PA a)
iow l $RFDR (1214)
# write data pattern into buffer 2
iow l $RFCR ($PATBUF23)
iow l $RFDR (2022)
iow l $RFCR ($PA 4)
iow l $RFDR (2123)
iow l $RFCR ($PA 8)
iow l $RFDR (2224)
# write data pattern into buffer 3
iow l $RFCR ($PA2)
iow l $RFDR (3032)
iow l $RFCR ($PA 6)
iow l $RFDR (3133)
iow l $RFCR ($PA a)
iow l $RFDR (3234)
#enable receive filter on all patterns
iow l $RFCR ($RFEN|$APAT0|$APAT1|$APAT2|$APAT3)
Example
of how to mask out a byte in a pattern:
# write data pattern into buffer 0
iow l $RFCR ($PATBUF01)
iow l $RFDR (10002)
#mask byte 0 (value = 02)
iow l $RFCR ($PA 4)
iow l $RFDR (20103)
#mask byte 1 (value = 01)
iow l $RFCR ($PA 8)
iow l $RFDR (30204)
#mask byte 0 and 1
Summary of Contents for MacPHYTER-II DP83816
Page 106: ...105 www national com DP83816 Notes...