Add capacitors close to noise source(right across pin of PIC). 1,10 and 100nF in parallel.
Also Breadboard have large capacitance between 2 rows of pin. Try to put ground next to PWM pin.
Use short leads, as stray inductance plays large role. Also try to create star ground point.
Bookmarks