16khz PWM
Will this work for a 16khz PWM circuit (not sure if I have the math right).
62.5
'50% duty cycle: code is not accurate either
here:
ra.0 = 1
pauseus 31
ra.0 = 0
pauseus 31
goto here:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
62.5
'50% duty cycle: code is not accurate either
here:
ra.0 = 1
pauseus 31
ra.0 = 0
pauseus 31
goto here:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
When using PAUSEUS inline as above you can have fractional values -- that might get you a bit closer. And by using toggle the duty cycle should be dead-on 50% (your program will have a slightly longer off-time due to the jump after the second PAUSEUS).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·