S12ZVML CAN communication test

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

S12ZVML CAN communication test

688件の閲覧回数
dk_mhlee
Contributor II

Nowadays I tried to make a code associated with CAN.

I searched internet to find example code of CAN for S12ZVML but there is nothing.

In datasheet, there are many configuration registers.

Can you pick a few registers for testing CAN?

3 返答(返信)

562件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

S12ZVML devices don't have CAN physical layer and only some of them have a CAN module (see Table 1-2. S12ZVM Family Feature Set Differences in the RM rev 2.13).

So, you will need S12ZVML with CAN module and external CAN PHY.

You can look at AN4975 Using MSCAN on the MagniV Family:

https://www.nxp.com/docs/en/application-note/AN4975.pdf 

SW:

http://www.nxp.com/files/microcontrollers/doc/app_note/AN4975SW.zip 

I hope it helps.

Best Regards,

Diana

562件の閲覧回数
dk_mhlee
Contributor II

I refer the code and application note. But there are still problems.

When I do debug one of examples(AN4975SW code), it is okay to go to initialization mode.

When I check 'CAN0CTL0_INITRQ = 0', it must be exited initialization mode. CAN0CTL1_INITAK is not changed at all.

I have a problem from starting initialization of CAN.

0 件の賞賛

562件の閲覧回数
dk_mhlee
Contributor II

DONE! Follwing AN4975