I did some work on 18f pics with h/w pwm and closed loop control.I build pid in hardware but thas little slower.

I built a quasi sqare wave inverter with out put regulation using 16fs.

Hope I can throw some light.

Is your a natural freqency or HF.

regards,