![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 621](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782621.webp)
GD32A50x User Manual
621
EMPTY, FULL, and OVERRUN will be searched:
-
When IDERTR_RMF bit in CAN_CTL2 register is 0, it means the IDE field will be
compared and RTR field will not be compared (regardless of bit 30 and bit 31 in
related filter register). The ID field will be compared, using bit 0 to bit 28 filter data
configurations in related filter register.
-
When IDERTR_RMF bit in CAN_CTL2 register is 1, it means all the IDE, RTR and
ID fields will be compared, using bit 0 to bit 28, bit 30, bit 31 filter data configurations
in related filter register.
When the frame in Rx shift buffer is a remote frame (RTR field is 1):
-
If RRFRMS bit in CAN_CTL2 register is 0, it indicates that the Rx mailbox with CODE
RANSWER will be searched, and the IDE, ID field will be compared, using bit 0 to
bit 28, bit 30 filter data configurations in related filter register.
-
If RRFRMS bit in CAN_CTL2 register is 1, it indicates that the matching process is
the same as a data frame, so Rx mailbox with CODE EMPTY, FULL, and OVERRUN
will be searched:
When IDERTR_RMF bit in CAN_CTL2 register is 0, it means the IDE field will be
compared and RTR field will not be compared (regardless of bit 30 and bit 31 in
related filter register). The ID field will be compared, using bit 0 to bit 28 filter data
configurations in related filter register.
When IDERTR_RMF bit in CAN_CTL2 register is 1, it means all the IDE, RTR and
ID fields will be compared, using bit 0 to bit 28, bit 30, bit 31 filter data configurations
in related filter register.
Table 23-9.
Rx mailbox matching
Received
bit
Configuration bit
Field in mailbox descriptor for matching
RTR
IDERTR_RMF
(in CAN_CTL2
register)
RRFRMS (in
CAN_CTL2
register)
IDE
RTR
ID
CODE
0
0
-
Compared
(1)
Never
(2)
Filtered
(3)
EMPTY / FULL /
OVERRUN
1
Filtered
EMPTY / FULL /
OVERRUN
1
-
0
Compared
Never Compared
RANSWER
0
1
Compared
Never
Filtered
EMPTY / FULL /
OVERRUN
1
Filtered
EMPTY / FULL /
OVERRUN
1.
Compared: This field in Rx mailbox descriptor is always compared with the received bit,
regardless of the filter data configurations in related filter register.
2.
Never: This field in Rx mailbox descriptor is not compared with the received bit,
regardless of the filter data configurations in related filter register.
3.
Filtered: This field in Rx mailbox descriptor is compared with the received bit, using the