lpcware

Problem in setting Spifi Clock frequency to 90Mhz

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by praveen.9123 on Tue Apr 29 23:59:57 MST 2014
Hi,
   I am using lpcopenv2.02 source code for the platform of lpc4330 xplorer board.
The following code running the core clock frequency at 204MHz and Spifi Peripheral and base clock running at 68MHz.


/* Setup a divider E for main PLL clock switch SPIFI clock to that divider.
   Divide rate is based on CPU speed and speed of SPI FLASH part. */
Chip_Clock_SetDivider(CLK_IDIV_E, CLKIN_MAINPLL, 3);
Chip_Clock_SetBaseClock(CLK_BASE_SPIFI, CLKIN_IDIVE, true, false);

When i set the clock for SPIFI 90Mhz the core is hanging somewhere it is not responding and the core is running at 204MHz.
/* Setup a divider E for main PLL clock switch SPIFI clock to that divider.
   Divide rate is based on CPU speed and speed of SPI FLASH part. */
Chip_Clock_SetDivider(CLK_IDIV_E, CLKIN_MAINPLL, 2);
Chip_Clock_SetBaseClock(CLK_BASE_SPIFI, CLKIN_IDIVE, true, false);

Outcomes