Figure 231. Filter Bank Scale Configuration - Register Organization - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

RM0090

Figure 231. Filter bank scale configuration - register organization

Mapping
Mapping
Mapping
Mapping
Filter match index
Once a message has been received in the FIFO it is available to the application. Typically,
application data is copied into SRAM locations. To copy the data to the right location the
application has to identify the data by means of the identifier. To avoid this, and to ease the
access to the SRAM locations, the CAN controller provides a Filter Match Index.
This index is stored in the mailbox together with the message according to the filter priority
rules. Thus each received message has its associated filter match index.
The Filter Match index can be used in two ways:
Compare the Filter Match index with a list of expected values.
Use the Filter Match Index as an index on an array to access the data destination
location.
For nonmasked filters, the software no longer has to compare the identifier.
If the filter is masked the software reduces the comparison to the masked bits only.
The index value of the filter number does not take into account the activation state of the
filter banks. In addition, two independent numbering schemes are used, one for each FIFO.
Refer to
One 32-Bit Filter - Identifier Mask
ID
CAN_FxR1[31:24]
Mask
CAN_FxR2[31:24]
STID[10:3]
Two 32-Bit Filters - Identifier List
ID
CAN_FxR1[31:24]
ID
CAN_FxR2[31:24]
STID[10:3]
Two 16-Bit Filters - Identifier Mask
ID
CAN_FxR1[15:8]
Mask
CAN_FxR1[31:24]
ID
CAN_FxR2[15:8]
Mask
CAN_FxR2[31:24]
STID[10:3]
Four 16-Bit Filters - Identifier List
ID
CAN_FxR1[15:8]
ID
CAN_FxR1[31:24]
ID
CAN_FxR2[15:8]
ID
CAN_FxR2[31:24]
STID[10:3]
Figure 232
for an example.
Doc ID 018909 Rev 4
CAN_FxR1[23:16]
CAN_FxR1[15:8]
CAN_FxR2[23:16]
CAN_FxR2[15:8]
STID[2:0]
EXID[17:13]
CAN_FxR1[23:16]
CAN_FxR1[15:8]
CAN_FxR2[23:16]
CAN_FxR2[15:8]
STID[2:0]
EXID[17:13]
CAN_FxR1[7:0]
CAN_FxR1[23:16]
CAN_FxR2[7:0]
CAN_FxR2[23:16]
STID[2:0] RTR IDE EXID[17:15]
CAN_FxR1[7:0]
CAN_FxR1[23:16]
CAN_FxR2[7:0]
CAN_FxR2[23:16]
STID[2:0] RTR IDE EXID[17:15]
x = filter bank number
ID=Identifier
1
These bits are located in the CAN_FS1R register
2
These bits are located in the CAN_FM1R register
Controller area network (bxCAN)
CAN_FxR1[7:0]
CAN_FxR2[7:0]
EXID[12:5]
EXID[4:0]
IDE
CAN_FxR1[7:0]
CAN_FxR2[7:0]
EXID[12:5]
EXID[4:0]
IDE
Filter
Num.
n
RTR
0
n
n+1
RTR
0
n
n+1
n
n+1
n+2
n+3
676/1422

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F40 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF