hello, I would like dim 2 leds with a 16f628 and I wanted to know which function to use but if I use the function pwm the program is very slow
regards
fred
Printable View
hello, I would like dim 2 leds with a 16f628 and I wanted to know which function to use but if I use the function pwm the program is very slow
regards
fred
Then you may try the Hpwm function (only one) or write your own pwm that is faster then.
thanks
how one can create his pwm?
fred
I hope the rest you figger out by yourselfs !Code:pwmxl:
if cntr = 0 then outputport = 1 'this clears all pwm ports
if cntr = dutycl then outputport = 0 'this line can be repeated for as
'many as you have pwm outputs
cntr = cntr + 1
if cntr = 0 then exitpwm
goto pwmxl
exitpwm:
return