Acceptance Filtering MSCAN

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Acceptance Filtering MSCAN

跳至解决方案
690 次查看
Kartoon67
Contributor III

Hi,

 

I’m using the microprocessor MC9S12XF512MLM and i try to send and receive a CAN frame. But in the example FREESCALE, i can just receive by interrupte the ID 0x6C700000.

 

For my application, i want to receive all CAN frame with their ID.

 

/* Acceptance FiltersCAN0IDAC = 0x10;CAN0IDAR0 = 0xFF;CAN0IDMR0 = 0xFF;CAN0IDAR1 = 0xFF;CAN0IDMR1 =0xFF;CAN0IDAR2 =0xFF;CAN0IDMR2 =0xFF;CAN0IDAR3 = 0xFF;CAN0IDMR3 = 0xFF;CAN0IDAR4 = 0xFF;CAN0IDMR4 =0xFF;CAN0IDAR5 = 0xFF;CAN0IDMR5 = 0xFF;CAN0IDAR6 = 0xFF;CAN0IDMR6 = 0xFF;CAN0IDAR7 = 0xFF;CAN0IDMR7 = 0xFF;

 

 

I have doing that, is that correct?

 


 

Regards,

标签 (1)
0 项奖励
回复
1 解答
323 次查看
kef
Specialist I

       ID 0x6C700000.

 

This number is not the CAN ID. Extended CAN ID has 29bits. Your number won't fit.

  

Yes, setting all bits in CANxIDMRn registers will make filter accepting all identifiers.

在原帖中查看解决方案

0 项奖励
回复
1 回复
324 次查看
kef
Specialist I

       ID 0x6C700000.

 

This number is not the CAN ID. Extended CAN ID has 29bits. Your number won't fit.

  

Yes, setting all bits in CANxIDMRn registers will make filter accepting all identifiers.

0 项奖励
回复