S12ZVML CAN communication test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVML CAN communication test

681 Views
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 Replies

555 Views
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

555 Views
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 Kudos

555 Views
dk_mhlee
Contributor II

DONE! Follwing AN4975