hi! everybody my friends.
i have a question for software pwm.
i think make a 20kHZ software pwm .and i can control motor.
please everybody can teach me.
thanks u.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Jul 06, 2007 12:18 pm
You can't do 20 KHz software PWM with enough resolution to be useful
(at least with the normal method of using a Timer interrupt).
Your PIC has two hardware PWM modules (CCP1 and CCP2). You should
use one of those to do your 20 KHz PWM.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum