Hi gayatri,
This is a just misunderstanding. MSCAN mode and CPU mode are independent. See Table 13-37. CPU vs. MSCAN Operating Modes in RM.
Recommend process: enter into MSCAN Sleep mode for avoiding issues on CAN bus and after that enter into CPU STOP mode for power save. Enter into CPU STOP mode will cause MSCAN Power Down mode.
About CPU STOP mode)
You need clear S control bit in CCL register and execute assembler STOP command for entering CPU into STOP mode.
For example:
asm ANDCC #0x7F; //clear S bit - enable the stop mode. If the S bit is not
//cleared then STOP instruction has no effect and is
//executed as a dummy instruction NOP.
asm STOP; //STOP mode
Example code:
https://community.freescale.com/docs/DOC-173312
S12Z CPU Reference Manual:
http://www.nxp.com/files/microcontrollers/doc/ref_manual/S12ZCPU_RM_V1.pdf
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------