When Pulse is high, I can see the deviation of 140mv in output voltage instead of clean 3.3V.
Also, I tried different frequencies and Counter Period but no change in waveform.
On inspection it looks like that output pin is ramping down and again going high. and this goes on for entire high pulsewidth.
Kindly let me know how do I clean the PWM output?
Edit:
- I used external pullup of 4.7k but because of that I had spikes in negative pulsewidth.
- I used Internal Pull Up resistor in push-pull mode but it made the waveform worse.
- PWM was configured for around 1.9Khz frequency.
- Maximum Output speed was set to Low and High to no change in output.
pics are attached herewith.