Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

pll configuration problem

2004-07-08 by shridharjoshi2000

hi all,
i am trying to boost the PRocessor clock to near full speed by 
setting the PLL registers
but PLL is not locking .
 am i making any mistake in configuring the PLL 
here is my pll setting code 

void SetPLLtoMaxSpeed()
{


  // set PLL multiplier & divisor.
  // values computed from config.h
 REG(SYSCON_PLLCFG)= 0x23;			    //where 
	M=4,P=2, fosc=14.7456MHz,Fcclk=58.98MHz
 REG(SYSCON_PLLFEED) = 0xAA;                      
 REG(SYSCON_PLLFEED) = 0x55; 
   
  // enable PLL
  REG(SYSCON_PLLCON)  = 0x01;
  REG(SYSCON_PLLFEED) = 0xAA;
  REG(SYSCON_PLLFEED) = 0x55;

    // wait for PLL lock
  while (!(REG(SYSCON_PLLSTAT) & 0x0400))           
    continue;

  // enable & connect PLL
  REG(SYSCON_PLLCON) = 0x03;
  REG(SYSCON_PLLFEED)  = 0xAA;
  REG(SYSCON_PLLFEED) = 0x55;

  // setup & enable the MAM
 //MAMTIM = MAMTIM_CYCLES;
 // MAMCR = MAMCR_FULL;

  // set the peripheral bus speed
  // value computed from config.h
  REG(SYSCON_VPBDIV)  = 0x02;                // set the peripheral 
bus clock speed to processor clock

}

thanks

shridhar

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.