![MORNSUN TD3USPCAN Скачать руководство пользователя страница 43](http://html1.mh-extra.com/html/mornsun/td3uspcan/td3uspcan_application-notes_1834434043.webp)
第 43 页 共 60 页
5. Receiving filtering mode
This option is divided into extended frame filtering and standard frame filtering. If you only want to
receive CAN frames in extended frame format, you should choose extended frame filtering. If you only want
to receive CAN frames in standard frame format, you should choose standard frame filtering.
6. Masking code
The mask code is used to manage the "acceptance code", which is managed according to bits. When
a bit of the mask code has a value of 1, the acceptance code corresponding to this bit will be enabled. Only
when the enabled acceptance code is the same as the Frame ID of the CAN frame to be received by the
product will the CAN frame be received in the receiving buffer. When the bit value of "mask code" is 0, the
acceptance code does not work, and the frame identification of the corresponding bit is that any value can
be received. The padding data format is hexadecimal, and each 8-bit byte is separated by a "space
character".
7. Acceptance code
Acceptance codes include acceptance code 0~ acceptance code 5, totally 6 groups.
The comparison value when the CAN "frame ID" is accepted corresponds to the "mask code" according
to the bit relationship. When the mask code is set to 1, the frame data will be received in the receiving buffer
only when the receiving frame ID and the receiving code are the same, otherwise it will not be received.
The padding data format is hexadecimal, and each 8-bit byte is separated by a "space character".
Table 4.1 shows the true value relationship between mask bit and acceptance bit filter frame ID.
Table 4.1 Truth Table of Filtering and Masking Codes
Mask bit
Acceptance
position
Frame ID
Receive or reject
bit
0
X
X
receive
1
0
0
receive
1
0
1
reject
1
1
0
reject
1
1
1
receive