AnsweredAssumed Answered

FEC Input/output setting MPC5777C

Question asked by Vignesh V on Jun 3, 2019
Latest reply on Jun 4, 2019 by Petr Stancik

Hi,

 

SIU.PCR[99].R = ALTERNATE_2_FUNC|OBE|IBE|SRC|WPE; /* Set to FEC_MDIO */

SIU.PCR[109].R = ALTERNATE_3_FUNC|OBE|WPE; /* Set to FEC_MDC must be strong drive for MDIO & MDC */

SIU.PCR[474].R = PRIMARY_FUNC|OBE|IBE; /* Set to FEC_REF_CLK */

SIU.PCR[252].R = PRIMARY_FUNC|OBE|SRC; /* Set to FEC_TX_EN */

SIU.PCR[248].R = PRIMARY_FUNC|OBE|SRC; /* Set to FEC_TXD[0] */

SIU.PCR[251].R = PRIMARY_FUNC|OBE|SRC; /* Set to FEC_TXD[1] */

SIU.PCR[250].R = PRIMARY_FUNC|IBE|WPE; /* Set to FEC_RXD[0] */

SIU.PCR[253].R = PRIMARY_FUNC|IBE|WPE; /* Set to FEC_RXD[1] */

SIU.PCR[249].R = PRIMARY_FUNC|IBE|WPE; /* Set to FEC_RX_DV */

 

 

SIU.IMUX0.B.MUXSEL6 = 0x01;

SIU.IMUX0.B.MUXSEL5 = 0x01;

SIU.IMUX0.B.MUXSEL4 = 0x01;

SIU.IMUX0.B.MUXSEL3 = 0x01;

SIU.IMUX0.B.MUXSEL2 = 0x01;

SIU.IMUX0.B.MUXSEL1 = 0x01;

SIU.IMUX0.B.MUXSEL0 = 0x01;

 

SIU.IMUX0.R = SIU.IMUX0.B.MUXSEL6|SIU.IMUX0.B.MUXSEL5|SIU.IMUX0.B.MUXSEL4|SIU.IMUX0.B.MUXSEL3| \

SIU.IMUX0.B.MUXSEL2|SIU.IMUX0.B.MUXSEL1|SIU.IMUX0.B.MUXSEL0;

 

I tried this for setting up FEC pins is this right . Should there be a high In scope when I probe TX _EN pin.

I have a doubt doubt the settings mainly on the mux . Could someone clarify on that. I can share the entire init function if required

 

 

 

Regards,

Vignesh

Outcomes