Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] pll configuration problem

2004-07-08 by Robert Adsett

At 02:28 PM 7/8/04 -0700, you wrote:
>hi Robert,
> >>uart0 interrupt is enabled in startup.s section of
>the code.
>and i am setting the Pll configuration in main which
>is executed later

That might be a problem.  The pll_load writes must me successive writes so 
if an interrupt were to occur between writes the update would fail.  I 
think I'd expect your symptoms to be more intermittent though.  nonetheless 
I'd disable interrupts while you are updating the pll (actually I'd disable 
them for the whole routine).  That's a problem but probably not the problem.


> >>the REG defination is as below
>#define REG(addr) (*(volatile unsigned long*)(addr))

I don't believe it's an ANSI compliant lvalue (IE it's not allowed to 
assign to it), but compilers that support it as an lvalue should do the 
logical thing.

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

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.