AnsweredAssumed Answered

MPC5777C EBI chip select generation

Question asked by Naidu G on Jun 8, 2017
Latest reply on Jun 22, 2017 by Naidu G

Hi,

 I configured EBI with the following setting but CS is not generating 

1.PLL0 --- 192MHZ,PLL1-- 264MHZ

2.SYSCLKSEL -- PLL1,plat_clk = 132MHZ

3.clkout=66MHZ,engclk= 132/32

4.EBI configuration for 16 bit,non-multiplexed,CS access

EBI_MCR = 1;
EBI.BMCR.R = 0;
/*CS0 0x2000_0000–0x3FFF_FFFF*/

EBI.CAL[0].OR.R = 0;//(0xFFF00000);
EBI.CAL[0].OR.B.SCY = 0x0a;
EBI.CAL[0].BR.R = (0x20000000 | 0x1A2B);
SIU.PCR[256].R = 0x060F;//0x060F; CS0 config
SIU.PCR[294].R = 0x060F;//0x060F; RD_WR
SIU.PCR[277].R = 0x060F;//0x060F;

for (i=259;i<=277;i++)//address bus

{

 PCR[i] = 0x0440;

}

for (i=278;i<=293;i++)//data bus

{

 PCR[i] = 0x0440;

}

/*writing in external space in while*/

for(;;)

{

*(int *)(0x20000000) = 0x5555;

//delay

}

 

I am monitoring CS in oscilloscope,but it is not cumming. i am testing this on NXP EVB and project is created in S32DS.

please give some solution.

Thanks&Regards,

Naidu

Outcomes