here is the code for the PWM:
Code:
C1 var byte

For C1 = 0 to 31
    hpwm 1,127,32767
next
looks like I didn't need all the extra mumbo jumbo before it as the 16f88 defaults to b0 for channel 1

The sad thing is this still is not fast enough to do what I need it to do.

I am trying to generate 4096 clock pulses as fast as possible. The chip will allow up to a 30MHz clock pulse to drive it but using the HPWM all I can get is 32,767Hz which is like paying full price for a Lamborghini that only has first gear.

Does anyone have any ideas on how I might be able to achieve this?