Specifications
Acceptance Filters
5-39
using decimal numbers. You can use the MATLAB function ‘hex2dec’ to also
define hexadecimal numbers in the dialog box entry.
Lets assume a CAN application where messages with the following identifiers
(standard) are crossing the CAN network:
2-30, 48-122 (decimal)
Additionally, only incoming messages 4-29 have to be processed by the target
application. Ideally, all messages not having identifier 4-29 would be filtered
out, but the mask and code parameters don’t allow this exact scheme. The
closest we can achieve here, is filtering out all messages with identifiers above
31 by using value 2047-31=2016 for the mask parameter and value 0 for the
code parameter. The messages with identifier 0,1,2, and 3 cannot be filtered
out and will be returned by the FIFO read driver block, even if they have not
to be processed by the target application.