CAN 1 GPIO configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN 1 GPIO configuration

983 Views
p070042
Contributor III

Hi,

    I am working on CAN1 module & would like to configure out its GPIO as input & output. I have following confusion. 

In Special cases of IBE and OBE of excel sheet of MPC5748G, it is written as

CAN_TX pin "always ON"

CAN_RX pin "SIUL2_MSCR"

So, Is it menas, There is no need to configure CAN_TX pin because it is always ON?

Now below shown configurations are taken from Excel sheet of MPC5748G, It states that for there is need to write value 6 in Source signal select and Also IMCR value as[701-512] which is also 6 in input muxing table. 

Can you please guide me how I can configure these two pins to work CAN_1 good? Special cases are confusing me? In which situation I need to take care about special case?

PJ[15] 7010000_0110CAN1RXFlexCAN_1 I
PJ[14]  0000_0001CAN1TXFlexCAN_1

O

FlexCAN_1CAN1RX1890000_0000-disable_low
   0000_0001IO_PADPA[0]
   0000_0010IO_PADPC[3]
   0000_0011IO_PADPC[11]
   0000_0100IO_PADPF[15]
   0000_0101IO_PADPJ[13]
   0000_0110IO_PADPJ[15]
   0000_0111IO_PADPN[12]
3 Replies

830 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the note means you do not need to set the MSCR[OBE] bit for the TX pin, just select the function.

If you would like to use CAN1 on pins PJ14/PJ15 the setting should be

 

/* configure CAN1TX and CAN1RX pin functions */

SIUL2.MSCR[158].B.SSS = 1;    /* Pad PJ14: Source signal is CAN1_TX  */

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

 

SIUL2.MSCR[159].B.IBE = 1;    /* Pad PJ15: Enable pad for input  - CAN1_RX */

SIUL2.IMCR[701-512].B.SSS = 6;   /* CAN1_RX : connected to pad PJ15 */

BR, Petr

830 Views
p070042
Contributor III

Hi,  

    Thanks its really helpful, 

I am confused with special case of IBE and OBE, It is written for PJ15 that its input is controlled through SIUL2 module. In what case I need to check special case of OBE and IBE, or do I need to always consider special cases?

0 Kudos

830 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

“special cases” just tells if the user have to set OBE/IBE or not for particular pin fuctions.

So it is recommended to check this “special cases” tab.

But if you set the OBE or IBE, even it is not needed, nothing happens.

BR, Petr