At 07:31 PM 7/8/04 +0000, you 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;
Some basic questions.
There are no interrupts enabled?
What is the definition of REG (I am assuming that SYSCON... etc are simple
numeric constants)?
There is working code doing this in the newlib-lpc library (it goes so far
as to take in the oscillator frequency and desired operating frequency and
use them to calculate the required settings)
http://www.aeolusdevelopment.com/Articles/download.html
That might be worth comparing to even if you don't use it.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] pll configuration problem
2004-07-08 by Robert Adsett
Attachments
- No local attachments were found for this message.