And, You're all correct!

Well, except for that part about me being wrong

After my last post, I started working on an example for Pablo. It's kind of grown along the way, and is now a candidate for replacement of the HPWM command. IMHO

It pretty much encompasses everything you guys talked about while I was doing it. Plus maybe a bit more.

It's an Include file that gives 1 new command...
Code:
@  HPWM10  1, _DutyCycle, _Frequency
It works the same way as the PBP HPWM command, except that it uses 10-bit resolution, works with all CCP modules CCP1-CCP5, And is "Glitch-Free" when changing Frequency or DutyCycle.

Well, at least that's what it's supposed to do. Seems to work pretty good here, but I've only had a day to play with it.

It uses about 250 more words than HPWM, so I don't know how good it will be for a 12F683. But it definately will fit, if the rest of the program isn't too big.

If anyone has any problems, I'd appreciate a "Heads Up".

http://www.pbpgroup.com/files/HPWM10.zip
<br>