msCAN BUS

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

msCAN BUS

627件の閲覧回数
boriszviagin
Contributor I

Hello All.

I need to listen for special devices via the can bus.

To begin learning i am use with two KINETIS FRDM boards those communicates one with other.and run demo project .

My main issue how i can set and define the mask identification for listen another device with Extended ID

I would like to receive some advice's for start .

Thank

ラベル(1)
0 件の賞賛
1 返信

402件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Please check to use MSCAN_CANIDMRn register (MSCAN Identifier Mask Register n of First Bank).

Such as below picture shows how to set related register to filter extended ID ():

To receive standard identifiers in 32-bit filter mode, it is required to program the last three bits (AM[2:0]) in the mask registers CANIDMR3 to "don't care."

CAN.png

For you want to receive all Extended ID CAN frame, it need to set CANIDMR[0~3] registers all to 0xFF.


Wish it helps.
best regards
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛