Yahoo Groups archive

Lpc2000

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

Message

Re: PWM, change frequency during runtime

2006-01-17 by bobtransformer

I need to look this up and find out how it works also... With Atmel 
AVR parts at least, the new PWM value is not accepted as the compare 
value until the current PWM cycle completes. i.e. it is a syhcronous 
load which is the way I would expect it to work. Especially since you 
may be altering several different PWM channels at the same time.

I really like that method and ~hope~ that the LPC parts are similar.

boB
K7IQ
Everett, WA







-- In lpc2000@yahoogroups.com, "Joel Winarske" <joelw@i...> wrote:
>
> > The Question is:
> > When i change the PWMPR to another value when the PWM is enabled, 
at
> > which state/time is the new PWMPR active ?
> 
> An educated guess:
> It should happen on edge of PWMPC increment, which is driven by 
pclk 
edge.
>  So next PWMPC increment edge after writing reg.
> 
> 
> Joel
>

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.