David VanHorn email (remove spam text)
>First, are you charging and discharging through
>separate pins? They may have different properties.
I am charging through the same pin, discharging through different pins, and
measuring with two of three pins.
In the AVR, I could measure through the same pin I'm discharging with, and
then I could do all the measuring on one pin.
>The PIC output low (current sink) saturation
>voltage varies with current. By varying resistances
>there is a variance in current and also discharge
>curves. The output sat curves are in the datasheet.
Apparently this is what's giving me trouble.
>Maybe try using a second series resistor
>so your variable range is only 20% of the total,
>not 95% of the total. This should flatten it out
>a bit, also maybe try using higher value resistors
>to get the currents lower.
Thought about it, but it does make sensing the difference more challenging.
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
http://www.piclist.com hint: To leave the PICList
In reply to: <3AE7E3D4.1CD3@ezy.net.au>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the