PDA

View Full Version : HPWM Help



jetpr
- 12th June 2008, 00:51
Who i set my PWM to by exact 980 or close cycles per second
with 4.0Mhz clock.

bcd
- 12th June 2008, 02:08
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

jetpr
- 12th June 2008, 02:22
Thanks for the Help

peterdeco1
- 12th June 2008, 18:01
I use this simple command for HPWM output on CCP1 on 16F819.

HPwm 1,127,980 'PWM OUTPUT 980hz 50% duty cyle