MCP2515
DS21801F-page 32
2010 Microchip Technology Inc.
4.5
Message Acceptance Filters and
Masks
The message acceptance filters and masks are used to
determine if a message in the message assembly buf-
fer should be loaded into either of the receive buffers
(see Figure 4-5). Once a valid message has been
received into the MAB, the identifier fields of the mes-
sage are compared to the filter values. If there is a
match, that message will be loaded into the appropriate
receive buffer.
4.5.1
DATA BYTE FILTERING
When receiving standard data frames (11-bit identifier),
the MCP2515 automatically applies 16 bits of masks
and
filters
normally
associated
with
extended
identifiers to the first 16 bits of the data field (data bytes
0 and 1). Figure 4-4 illustrates how masks and filters
apply to extended and standard data frames.
Data byte filtering reduces the load on the MCU when
implementing Higher Layer Protocols (HLPs) that filter
on the first data byte (e.g., DeviceNet).
4.5.2
FILTER MATCHING
The filter masks (see Register 4-14 through Register 4-
17) are used to determine which bits in the identifier are
examined with the filters. A truth table is shown in
Table 4-2 that indicates how each bit in the identifier is
compared to the masks and filters to determine if the
message should be loaded into a receive buffer. The
mask essentially determines which bits to apply the
acceptance filters to. If any mask bit is set to a zero,
that bit will automatically be accepted, regardless of the
filter bit.
TABLE 4-2:
FILTER/MASK TRUTH TABLE
As shown in the receive buffers block diagram
(Figure 4-2), acceptance filters RXF0 and RXF1 (and
filter mask RXM0) are associated with RXB0. Filters
RXF2, RXF3, RXF4, RXF5 and mask RXM1 are
associated with RXB1.
FIGURE 4-4:
MASKS AND FILTERS APPLY TO CAN FRAMES
Mask Bit n
Filter Bit n
Message
Identifier
bit
Accept or
Reject bit n
0X
X
Accept
10
0
Accept
10
1
Reject
11
0
Reject
11
1
Accept
Note:
X
= don’t care
Extended Frame
Standard Data Frame
ID10
ID0 EID17
EID0
Masks and Filters apply to the entire 29-bit ID field
ID10
ID0
Data Byte 0
Data Byte 1
11-bit ID Standard frame
*
16-bit data filtering *
* The two MSb (EID17 and EID16) mask and filter bits are not used.
相关PDF资料
PIC18LF2580T-I/SO IC PIC MCU FLASH 16KX16 28SOIC
DSPIC30F3010T-20I/ML IC DSPIC MCU/DSP 24K 44QFN
DSPIC30F3010T-20I/SO IC DSPIC MCU/DSP 24K 28SOIC
PIC18F2431T-I/MM IC PIC MCU FLASH 8KX16 28QFN
PIC18LF6410T-I/PT IC PIC MCU FLASH 8KX16 64TQFP
DSPIC33FJ16GP101-I/SO IC DSC 16BIT 16KB 18SOIC
PIC24FJ16MC101-I/SS IC MCU 16BIT 16KB FLASH 20SSOP
PIC18F13K50-I/SO IC PIC MCU FLASH 8K 1.8V 20-SOIC
相关代理商/技术参数
PIC18LF2580T-I/SO 功能描述:8位微控制器 -MCU 32 KB FL 1536 RAM 25 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2585-I/SO 功能描述:8位微控制器 -MCU 48KB 3328 RAM w/ECAN RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2585-I/SP 功能描述:8位微控制器 -MCU 48KB 3328 RAM w/ECAN RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2585T-I/SO 功能描述:8位微控制器 -MCU 48KB 3328 RAM w/ECAN RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF258-I/SO 功能描述:8位微控制器 -MCU 32KB 1536 RAM 23I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF258-I/SOG 功能描述:8位微控制器 -MCU 32KB 1536 RAM 23I/O Lead Free Package RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF258-I/SP 功能描述:8位微控制器 -MCU 32KB 1536 RAM 23I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF258-I/SP 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 18LF258 SDIL28