Re: Sinking current from 9V into a PIC pin.

Originally Posted by
sayzer
...
You will see that LED will not fully turn OFF.
....

Originally Posted by
HankMcSpank
The LED *does* turn off ! (ie the PNP tranny is working as I intended/required - real world, not simmed or theorized!) .....

Originally Posted by
HankMcSpank
... I've actually got 5V going to the PNP emitter (not the 9V I thought was on there).
Just to prove the point...I put 9V on the emitter...the PIC lived, but the LEDS didn't turn off when the duty cycle went to 255.
....
Hello there....
I was going to ask you to measure the voltage on the emitter. But you already had it.
And for the idea of yours, you have a pwm pin and also LED pins.
And you are trying to show the voltage level, as much as I understood.
So, as the voltage drops, you want to show it with the LEDs.
Say, if the voltage is 8V, you have one LED off. Am I right? or something like it.
But, why are you using PWM then?
Can you explain more?
How the pwm and the LEDs will work?
Last edited by sayzer; - 23rd March 2011 at 07:34.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks