Roman Black email (remove spam text)
David VanHorn wrote:
> I've hit an Funky problem.
> For many reasons, I'm discharging a 0.1uF cap through a selectable
> resistance, using a pic output to discharge it, and a pic input to sense
> when it's done.
First, are you charging and discharging through
separate pins? They may have different properties.
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.
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.
http://www.piclist.com hint: To leave the PICList
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