I have a problem with a MC9S12XEP100CAG:
- CAN2 (PM4/PM5) works fine
- CAN0 (OM0/PM1) CAN1 (PM2/PM3), CAN3 (PM6/PM7) doesn't work.
The Init sequence of CAN2 and CAN0/CAN1/CAN3 is the same (see below).
CAN2 goes synchron, I can send and receive messages.
But CAN0/CAN1/CAN3 doesn't work, the CAN-bus doesn't go synchron. Transceivers are enabled (same configuration as CAN2).
I hope anybody can help.
CAN2CTL0 = 0x01;
while ((CAN2CTL1 & 0x01) != 0x01)
CAN2CTL1 = 0x80;
CAN2CTL0 = 0x00;
while ((CAN2CTL1 & 0x01) == 0x01)
CAN2RIER = 0x01;