S12ZVML CAN communication test

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

S12ZVML CAN communication test

692 次查看
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 回复数

566 次查看
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

566 次查看
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 项奖励

566 次查看
dk_mhlee
Contributor II

DONE! Follwing AN4975