For what it's worth, your code is, as I understand it, "by the book"
as regards programming the PLL. I haven't got it to work either but
I AM GETTING A LOCK. But all my timers, UART baud rates, etc. are
all out of sync (though I HAVE reprogrammed them to match the new
clock rate). I've put the problem on the back burner for now...let's
hope someone else can help...?????
--- In lpc2000@yahoogroups.com, "shridharjoshi2000"
<shridharjoshi2000@y...> wrote:
> 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
>
> shridharMessage
Re: pll configuration problem
2004-07-08 by markcrow
Attachments
- No local attachments were found for this message.