On Sat, 23 Feb 2002, Thomas C. Sefranek wrote: > Over what voltage compliance range? > What control voltage burden have you allowed? The output voltage should be between 2V and 15V, then input voltage is about 18V. I will be happy with just an idea on how to do it. > Current is controlled with series resistance. Ok, I see that, using a regulator such a lm317 I can have a constant current, changing the resistance connected to it I can change the current value; and now the question arise: who to attach the outputs pins of the pic to change that resistance value? Cheers, Diego. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.