EmbeddedRelated.com
Forums

pclk speed

Started by jase_ko April 28, 2005
hey guys,

how would i find out/set the speed of the pclk on a philips lpc2129
with keil tools?

thanks

Jason



An Engineer's Guide to the LPC2100 Series

set VIBDIV register

jase_ko <jase.ko@jase...> wrote:hey guys,

how would i find out/set the speed of the pclk on a philips lpc2129
with keil tools?

thanks

Jason ---------------------------------
Yahoo! Groups Links

To
__________________________________________________




This is configured in the startup.s. You can read the current peripheral
clock in the debugger (simulation or JTAG) under Peripherals->System Control
Block->VPB Divider.
From:
sentto-11453166-7042-1114772910-matthias.hertel=web.de@sent....
com
[mailto:sentto-11453166-7042-1114772910-matthias.hertel=web.de@sent...
s.yahoo.com] On Behalf Of Sridhar gadda
Sent: Friday, April 29, 2005 1:08 PM
To: lpc2000@lpc2...
Subject: Re: [lpc2000] pclk speed set VIBDIV register

jase_ko <jase.ko@jase...> wrote:hey guys,

how would i find out/set the speed of the pclk on a philips lpc2129
with keil tools?

thanks

Jason ---------------------------------
> .



At 04:08 AM 4/29/05 -0700, Sridhar gadda wrote:
>set VIBDIV register
>
>jase_ko <jase.ko@jase...> wrote:hey guys,
>
>how would i find out/set the speed of the pclk on a philips lpc2129
>with keil tools?

The crystal speed and pll setting are also involved. You can take a look
at the newlib-lpc support library ( http://www.aeolusdevelopment.com ) for
some examples that show the various values interact and give a resulting
clock. It's not Keil but it is fairly straightforward C.

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, III
http://www.aeolusdevelopment.com/


The PLL calculator app in the files section may help.

Richard

--- In lpc2000@lpc2..., Robert Adsett <subscriptions@a...> wrote:
> At 04:08 AM 4/29/05 -0700, Sridhar gadda wrote:
> >set VIBDIV register
> >
> >jase_ko <jase.ko@g...> wrote:hey guys,
> >
> >how would i find out/set the speed of the pclk on a philips lpc2129
> >with keil tools?
>
> The crystal speed and pll setting are also involved. You can take a
look
> at the newlib-lpc support library ( http://www.aeolusdevelopment.com
) for
> some examples that show the various values interact and give a
resulting
> clock. It's not Keil but it is fairly straightforward C.
>
> 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, III
> http://www.aeolusdevelopment.com/