On Sun, 22 Jun 2003 20:06:35 +0200, Kyrre Aalerud wrote: >Problem is: > >FET off = 16 Volts. >FET on = 0-70 mV. > >I need to compare the voltage when FET is on to a set reference of 70 mV. >If Voltage across FET is abowe 70mV I have a over-current condition and >should turn FET off. > I haven't checked this but could you perhaps put a second FET in series between the voltage that you're measuring and the PIC pin? If you can, driving both FETs at the same time would protect the PIC from the high voltage when they're off and let you check your voltage level for over-current when they're on. Regards, Bob -- 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