Does the PIC have a common ground with the circuit you show in your diagram ?
Does the PIC have a common ground with the circuit you show in your diagram ?
Keith
www.diyha.co.uk
www.kat5.tv
A good question would be How much are Va and Vb ...
probably more than the VDD supply of the pic ...
gave you some idea for debugging your Pic batt charger ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
well, i guess i missed that little detail in the schematic. I used the voltage from Vb to power the PIC (VDD) and also used the same common ground for Vss. I'm making a battery charger and basically i want to take the voltage measurement at Vb while there is no current going into the battery from the outside voltage source Va (i want to do this because the voltage of the battery increases while the current is going into the battery, however when the current is removed i can measure the voltage of the battery and it will be closer to the open voltage.)
I hope this makes a little more sense.
Vb = 4v
Va = 9v
Ic = 280 mA (while in LOW state)
Ic = 0.05 mA (while in High Z state)
if this helps at all
You need to use an NPN transistor to drive R3 not the PIC.
Because the PIC is powered from 4V the voltage on its pins cannot exceed 4.6v due to internal protection diodes. This means that even when in its hi-z state current will still be flowing via R3 which would explain why you stil have current flowing even when it is supposed to be off.
Keith
www.diyha.co.uk
www.kat5.tv
Keith is 100% correct. The base of Q2 would need to be at the same level as Va in order for it to switch off. 0.6v or more below Va would mean that it's biased on.
You will find that in its current form Q2 is actually always on.
Trent Jackson
Last edited by T.Jackson; - 8th April 2007 at 15:07.
I'll try that solution as soon as i can and get back to you to see if it worked out. but everything seems logical thanks.
jose
The NPN Transistor driving R3 works fine. thank you all for your help it is greatly appreciated!
jose
Bookmarks