The manual gives this rather confusing explanation for PWM calculations and after 5 months Picaxing I do not get it yet:
The PWM period = (period + 1) x 4 x resonator speed
(resonator speed for 4MHz = 1/4000000)
The PWM duty cycle = (duty) x resonator speed
What is meant by: (period+1) = what units is "period" in ?
Is the "resonator speed" in uSec/nSec/mSec or a number ?
If I know this I'll be able to do Set Freq command and lower PWM frequencies.
Thanks for your help
Manie
The PWM period = (period + 1) x 4 x resonator speed
(resonator speed for 4MHz = 1/4000000)
The PWM duty cycle = (duty) x resonator speed
What is meant by: (period+1) = what units is "period" in ?
Is the "resonator speed" in uSec/nSec/mSec or a number ?
If I know this I'll be able to do Set Freq command and lower PWM frequencies.
Thanks for your help
Manie
Last edited: