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 >
Message
Re: PWM, change frequency during runtime
2006-01-17 by bobtransformer
Attachments
- No local attachments were found for this message.