Electronics > Microcontrollers

PIC 12F683 low PWM output voltage



i have noticed something odd with the output voltage on my PIC 12F683, the CCP1 module outputs around a signal that is around 0.9 Vpp, and this strikes me as odd, i have a scope on it, the duty cycle changes as i would expect. Maybe I'm naive, but i would have expected a 5Vpp signal coming from the 12f683. 

The only thing i can think of that is that it has something to do with this maybe

110x = PWM mode active-high
111x = PWM mode active-low

But I'm not clear on what this mean, but i suspect that it has something to do with the duty cycle is counted on high or low, but I'm not sure.

So if anyone could enlighten me it would be great, I'm sure its something simple :)

Opps, looks like the pic is indeed putting out 5volts, there was a problem in my circuitry :)

Looks like i get a voltage drop of around 4 when i connect to a base/gate for a transistor. "floating" i have 5 volts on the pin, and the pwm signal looks perfect.


You should be using a current limiting resistor between the PIC output pin and the transistor base. From what I remember you can only source about 20mA max from each micro pin.

There should be ~0.7v drop across the transistor base-emitter juntion. If the emitter is connected to ground with the load on the high side, then the rest of the voltage will be dropped across the base resistor. If your measuring point was on the base pin, you'll only have been measuring that base-emitter voltage, not the output from the PIC :)


i have it solved, turned out to be a faulty fan, combined with my inability to read the display on my psu :)



[0] Message Index

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod