Then you may try the Hpwm function (only one) or write your own pwm that is faster then.
Then you may try the Hpwm function (only one) or write your own pwm that is faster then.
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
Bookmarks