Hi, we are using the MSCAN module for CAN driver development. Is it required to configure CAN physical to use the internal CAN transceiver available in the microcontroller?
Hi Sumathi,
I would like to apologize, but I am not sure with your question.
S12ZVC contains MSCAN module and CANPHY (CAN transceiver).
The default routing option is that MSCAN module is connected internally to CANPHY.
In that case, you have to at least enable CANPHY by CPCR_CPE bit and initialize MSCAN module for communication over CAN.
You have also three other routing options (MODRR0):
0b000 Default setting: MSCAN connects to CANPHY, interface internal only
0b001 Direct control setting: CP0DR[CPDR1] connects to CPTXD, interface internal only
0b100 Probe setting: MSCAN connects to CANPHY, interface visible on 2 external pins
0b110 Conformance test setting: Interface opened and all 4 signals routed externally
See Figure 2-2. CAN Routing Options Illustration in S12ZVC RM.
In case of Conformance test setting, the MSCAN pins will be at PS2, PS3 pins and PANPHY pins will be at PS0, PS1 pins.
This way, you could drive MSCAN module and CANPHY independently.
Note: MODRR0 register could be written just once in normal, anytime in special mode.
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!
-----------------------------------------------------------------------------------------------------------------------