> Yes, the opamp is pulling the input line to reference. If you want something > closer to vref, use a schottky diode instead of 1n4001. Or just put the diode in the feedback loop. The opamp will then adjust for the diode drop automatically. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics