OK, this is for the PIC18F2550. It should work for most, if not all of the PIC18’s, with a few minor changes – Like the TRIS outputs. It will not work with the PIC16’s. It will not work with the …

Pulse Width Modulation on a PIC18F2550 – PWM1 & PWM2, XC8 Read more »