AnsweredAssumed Answered

MPC5748G CAN3 PIN configure

Question asked by tongyue huang on Nov 15, 2016
Latest reply on Nov 18, 2016 by tongyue huang

//can3

    SIUL2.MSCR[88].B.SSS  = 1;    /* Pad PF8: Source signal is CAN3_TX */

    SIUL2.MSCR[88].B.OBE  = 1;    /* Pad PF8: Output Buffer Enable */

    SIUL2.MSCR[88].B.SRC  = 3;    /* Pad PF8: Maximum slew rate */

    //SIUL2.MSCR[89].B.IBE  = 1;    /* Pad PF9: Enable pad for input - CAN3_RX */

    SIUL2.MSCR[703].B.IBE  = 1;    /* Pad PF9: Enable pad for input - CAN3_RX */

    SIUL2.IMCR[191].B.SSS = 4;    /* CAN3_RX: connected to pad PF9 */

    SIUL2.MSCR[PF12].R = 0x02000000;/* Configure GPIOs as output */

    SIUL2.GPDO[PF12].R    = 1;      /* CAN3STB */

    SIUL2.MSCR[PC6].R = 0x02000000; /* Configure GPIOs as output */

    SIUL2.GPDO[PC6].R     = 1;      /* CAN3SHDN */

 

Hi,Now I am using CAN3 ISR.In order to configure CAN TX RX Pins,

SIUL2.MSCR[89].B.IBE  = 1;     /* Pad PF9: Enable pad for input - CAN3_RX */

SIUL2.MSCR[703].B.IBE  = 1;    /* Pad PF9: Enable pad for input - CAN3_RX */

which code is right?

Outcomes