bananasiong New Member Feb 26, 2008 #1 Just a quick one, am I right that the PWM duty cycle will be updated after the next cycle of Timer2 get started if I modify CCPRxH:CCPRxL before Timer2 match PR2? So anyhow I have to waste one cycle of Timer2 if any modification on the duty cycle. Thanks
Just a quick one, am I right that the PWM duty cycle will be updated after the next cycle of Timer2 get started if I modify CCPRxH:CCPRxL before Timer2 match PR2? So anyhow I have to waste one cycle of Timer2 if any modification on the duty cycle. Thanks
Mike - K8LH Well-Known Member Feb 26, 2008 #2 Yes, the duty cycle takes effect at the next PR2 match. Think of it as staying one PWM cycle ahead.
bananasiong New Member Feb 27, 2008 #3 Thanks. If the duty cycle is modified, won't the PWM of the current cycle get affected?
blueroomelectronics Well-Known Member Feb 27, 2008 #4 Nope, it's buffered. Nice glitchless PWM on the PICs.