Hi,
Previously i have used MCF521x controller & there i use to select the GPIO to activate CAN bus Pins of Flexcan in this way.
#define FLEXCAN_GPIO_INIT() MCF_GPIO_PUCPAR = 0 | MCF_GPIO_PUCPAR_URXD2_CANRX | MCF_GPIO_PUCPAR_UTXD2_CANTX;
Do we have to Activate CAN Bus pins in I-max6 solo controller also ?
I am JUst going through the DataSheet for the Imax6 Solo processor.
And found that there is multiplexing for CAN1 TX/RX pins. On Page -315 it tells about FLEXCAN1_RX & FLEXCAN1_TX pins Multiplexing.
Also tells how to activate these PIN.
For CAN_1 transmit pin, FLEXCAN1_TX, there are three PADS :----
Pads(Pins) Registers
GPIO_7 (ALT3) IOMUXC_SW_MUX_CTL_PAD_GPIO07
KEY_COL2 (ALT2) IOMUXC_SW_MUX_CTL_PAD_KEY_COL2
SD3_CMD (ALT2) IOMUXC_SW_MUX_CTL_PAD_SD3_CMD
Now I am having a question how can a single controller FlexCAN_1 can have its TX pin enabled on 3 PADS ?
Does it means :----
Same CAN TX signal CAN be routed to Three different PAD's ?
or I-MAX6 solo comes in 3 different types of controller with diffrent Pads/Pin configuration ?
Any suggestion will be welcomed .
//Kees
That means you can configure the GPIO_7 to ALT3 which the GPIO_7 pin is used as FLEXCAN1_TX. If GPIO_7 used for other purpose, you can configure the KEY_COL2 to ALT2 which the KEY_COL2 pin is used as FLEXCAN1_TX. If KEY_COL2 used for other purpose, the last choice is set the SD3_CMD to ALT2 for FLEXCAN1_TX.