Status: Started
Owner: robhamerling
Labels: Type-Defect Priority-Medium Component-Peripheral
New issue 188 by robhamerling: PWM parameter setting improvement
http://code.google.com/p/jallib/issues/detail?id=188
{ Reported by Thomas Ryckmans }
I have some puzzling results with PWM
if I have this:
pwm_max_resolution(1)
pwm1_on()
pwm1_set_dutycycle_highres(500)
I get a nice 8kHz square wave.
If I add
pwm_set_frequency(12_000)
I get a rectangle wave (duty about 70%) at 12KHz...
If I increase the pwm_set_frequency further, I get same 12KHz but higher
duty...
If I do
pwm_set_frequency(5_000)... I get no signal!
See the attached program
Attachments:
pwm_16f690.jal 654 bytes
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.