Hi,
I don't know what the "best" way to aproach this actually is. I don't think me posting hundreds or thousands of lines of code is going to actually help others that much and I don't think I'll get much out of it either.
Instead I think I'll post snippets and routines, explaining what they do (or at least intend to do) and why. This way I think it's easier to tag along, one step at the time and, which is important,
...
Re: 16Bit 125KHz PWM with PIC12F1572
125KHz is [COLOR=#333333]only available with a pbpl compile
richard Today, 02:08from the manual hpwm section
every chip you have posted about on this subject is quite capable of that output.
your posted code...