You beat me to it - it could simply be the compensation capacitor adjustment on the scope probe.X1 or X10 probe? If X10 probe is it correctly compensated?
The flat top of the waveform is only about 3.9V. Why is it so much the (assumed?) 5V PIC supply. Is anything else connected to the PWM output (other than the scope probe)?
Run of the mill CROs often had a diode clipped sinewave to approximate a square wave. Sometimes that was good enough to adjust the probe compensation by.
If I couldn't adjust it out with the compensation cap - I'd double check with a TTL clock module, they used to be fairly chunky modules with a pin footprint that fit a 14-DIL socket. They started turning up as 8-DIL packages on PC motherboards for a while.