Acceptance Filtering MSCAN

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Acceptance Filtering MSCAN

ソリューションへジャンプ
989件の閲覧回数
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 解決策
622件の閲覧回数
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 返信
623件の閲覧回数
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 件の賞賛
返信