DO0281R00
33 / 58
Filtering by IP4 and setting the
external output
Example:
You want to filter by protocol type IPv4 and set the external output if a
frame with protocol type IPv4 arrives.
Protocol type IPv4 corresponds to 0x0800.
Set the following filter registers:
Register
Parameter
Function
SegFilter1:
x07
00 00 00 03 Word offset of protocol type
x08
00 00 00 08 IPv4 protocol type
x09
00 00 FF FF Mask on 2 bytes
Filter 1
x55
00 00 00 00 No negation of SegFilter1
x56
00 00 00 01 Filter1 consists of SegFilter1
Uplink
x65
00 00 00 00 Do not invert output
x66
00 00 00 00 Frame is output at the uplink port if filter 1 applies.
External output
x67
00 00 00 00 No negation of ext. out
x68
00 00 00 01 Set external output if filter 1 applies
ConfigReg
401
xx xx xx xE Activate filter for CON A port (1110)
extOut_ConfigReg
402
00 00 01 01 Port Con A active, reset via a timer
extOutTimerReg
403
01 31 2D 00 Timer resets the value every 200 ms
Filtering by CRC error
Example:
You want to filter all frames that report a CRC error.
Set the following filter registers:
Register
Parameter
Function
State:
x05
08 00 00 00 CRC Error Statusbit
x06
FF 00 00 00 Mask on 1 byte
Filter 1
x55
00 00 00 00 No negation of StateFilter
x56
80 00 00 00 Filter1 consists of state filter
Uplink
x65
00 00 00 00 Do not invert output
x66
00 00 00 01 Frame is output at the uplink port if filter 1 applies.
ConfigReg
401
xx xx xx xE Activate filter for CON A port (1110)
Filters