sx52 timers
I am trying to learn how to use the timers on the sx52. I have read a bit on the subject but I am still confused on how exactly you would set everything up in asm to do anything. Could someone either post some simple code to create a pwm signal with a 50% duty cycle using the timers, or reference me to a good link that explains how to work with the timers.
Thanks
Thanks
Comments
I am assuming he output pin will be rb.6 for timer1, is this correct?
OUTPUT RB.6 ' Timer1 PWM output pin
TIMER1 PRESCALE, 7 ' 1/128 prescale
TIMER1 PWM, 50, 100 ' Set PWM mode output is on pin RB.6
Then look at the generated code.
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
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·