Sx48 - pwm
SailerMan
Posts: 337
I just purchased an SX48 specifically to use the PWM feature of the timers.
Can someone help explain how the·Clock speed say 50 mhz and Timer R1 and Timer R2 effect the PWM output. What is optimal for a PWM Frequency. What are some good settings.
Any help or insight would be greatly appreciated,
Thanks
Eric
·
Can someone help explain how the·Clock speed say 50 mhz and Timer R1 and Timer R2 effect the PWM output. What is optimal for a PWM Frequency. What are some good settings.
Any help or insight would be greatly appreciated,
Thanks
Eric
·
Comments
It depends on what resolution you need.
8 Bits = 256 clocks = 50MHz / 256 = 195.3125KHz PWM Frequency
10 Bits = 1024 clocks = 50MHz / 1024 = 48.828125KHz PWM Frequency
In SX/B you can simply use "TIMER1 PWM, value, 256" for 8 bit or "TIMER1 PWM, value, 1024" for 10 bit.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman