ICP DAS USA I-7540D Network Card User Manual


 
3.1.4 How to set the Acceptance Code and Mask
Acceptance Code (AC): The CAN ID bits that you want to get.
Acceptance Mask (AM): The CAN ID bits that you want to filter.
In the acceptance code, the bit value ‘1’ means that you want to get this CAN ID
bit. And in the acceptance mask, the bit value ‘0‘ means that you want to filter this
CAN ID bit.
For 11-bit ID Message:
Register bits of register Filter Target
AccCode[0] and AccMask[0] bit7~bit0 bit10 ~ bit3 of ID
AccCode[1] and AccMask[1] bit7~bit5 bit2 ~ bit0 of ID
AccCode[1] and AccMask[1] bit4 RTR
AccCode[1] and AccMask[1] bit3~bit0 no use
AccCode[2] and AccMask[2] bit7~bit0 bit7 ~ bit0 of 1st byte data
AccCode[3] and AccMask[3] bit7~bit0 bit7 ~ bit0 of 2nd byte data
For 29-bit ID Message:
Register bits of register Filter Target
AccCode[0] and AccMask[0] bit7~bit0 bit28 ~ bit21 of ID
AccCode[1] and AccMask[1] bit7~bit0 bit20 ~ bit13 of ID
AccCode[2] and AccMask[2] bit7~bit0 bit12 ~ bit5 of ID
AccCode[3] and AccMask[3] bit7~bit3 bit4 ~ bit0 of ID
AccCode[3] and AccMask[3] bit2 RTR
AccCode[3] and AccMask[3] bit1~bit0 no use
i-7540D CAN-Ethernet Gateway User’s Manual (Version 1.4, April/2008)
36