飞思卡尔 K20 CAN FIFO简单笔记

Message Buffer结构:


Rx FIFO Structure

When the MCR[RFEN] bit is set, the memory area from 0x80 to 0xDC (which is
normally occupied by MBs 0 to 5) is used by the reception FIFO enginee.

当设置接收为FIFO模式时,MB的0~5会作为接收的FIFO使用。
The region 0x80-0x8C contains the output of the FIFO which must be read by the CPU as
a Message Buffer. This output contains the oldest message received and not read yet. The
region 0x90-0xDC is reserved for internal use of the FIFO engine.

X080-0X8C区域MB[0]存放最先接收到的报文,0X90-0XDC存放其它后来接收到的报文。

An additional memory area, that starts at 0xE0 and may extend up to 0x2DC (normally
occupied by MBs 6 up to 37) depending on the CTRL2[RFFN] field setting, contains the
ID Filter Table (configurable from 8 to 128 table elements) that specifies filtering criteria
for accepting frames into the FIFO.
Out of reset, the ID Filter Table flexible memory area defaults to 0xE0 and only extends
to 0xFC, which corresponds to MBs 6 to 7 for RFFN=0, for backward compatibility with
previous versions of FlexCAN.
The following shows the Rx FIFO data structure.



Each ID Filter Table Element occupies an entire 32-bit word and can be compound by
one, two or four Identifier Acceptance Filters (IDAF) depending on the MCR[IDAM]
field setting. The following figures show the IDAF indexation.
The following figures show the three different formats of the ID table elements. Note that
all elements of the table must have the same format. See Rx FIFO for more information.




  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值