Hi, we are using MC9S12ZVCA192 controller of S12Z family for MSCAN development. We are facing issue in configuring port pins for CAN channel 0. Could you please provide the port pin settings for the same?
Hi Sumathi,
msCAN module overtakes control on pin when we enable this module.
TXCANx will be forced to output mode and pull device will be disabled.
RXCANx will be forced to input mode and pull-down device will be disabled.
See Table 2-34. Effect of Enabled Features in RM.
Please ensure that you didn’t enable any pin function with higher priority (IRQ/XIRQ) at these pins.
CAN0 pins could be routed by write into MODRR0 Routing Register. Please ensure that you write into this register just once. In normal mode, the configuration cannot be changed until next MCU reset.
The default settings of MODRR0 register route CAN0 module to CANPHY. CANPHY could be enabled by CPCR_CPE bit.
CANPHY is powered from VDDC power supply. Please ensure that you didn’t disable this power supply by clearing CPMUVREGCTL_EXTCON bit. Write into this register is possible just once in normal modes, anytime in special modes.
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!
-----------------------------------------------------------------------------------------------------------------------