PDA

View Full Version : PWM Pulse Amplitude on 16F877



jrudd
- 10th June 2009, 03:16
I'm getting a good looking 50% duty cycle signal from the CCP1 pin but I just noticed that the amplitude is only about 120mv. I've changed freq and PR2 values and still get 120mv out. I checked the scope setup by going across the 5v reg on the development board and got 5v on the scope.
I was expecting a 3-5v pulse height. This signal will have to go through some Nand Gates and finally to a transitor base which fires mosfets.
Any thoughts on the 120mv HPWM output.
Thanks,
John

Melanie
- 10th June 2009, 07:24
Have you set the appropriate TRIS for that pin to OUTPUT?

Have you checked that pin is not shorted against anything else (even breadboards can short against adjacent pins), or otherwise loaded too heavilly with your external circuit?