Who i set my PWM to by exact 980 or close cycles per second
with 4.0Mhz clock.
 HPWM Help
 HPWM Help
		Who i set my PWM to by exact 980 or close cycles per second
with 4.0Mhz clock.
My Hobbies is PicBasic PRO
 
 
		I assume you want a 50% duty cycle (50% on / 50% off)?
Using Mr E's PicMultiCalc PWM tool (a google search will find it for you) I get the values attached.
Depending on the PIC chosen it may have 8 bit or 10 bit HWPWM.
bill
 
 
		I use this simple command for HPWM output on CCP1 on 16F819.
HPwm 1,127,980 'PWM OUTPUT 980hz 50% duty cyle
Bookmarks