My program would know when the FET is on because it is controlling it. (PWM output can be read!) Circuit operates on supply-voltages from 5.8v to 16v :) Not too easy to divide down to something usefull ? (Sorry for late response...) KreAture ----- Original Message ----- From: "Dale Botkin" To: Sent: Sunday, June 22, 2003 8:45 PM Subject: Re: [PIC]: Behaviour of PIC16F62x with over-voltage on comparator? > On Sun, 22 Jun 2003, 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. > > How much above 70mV would you see with an overcurrent condition, max? In > other words, is there some range between 70mV and, say, 5V that you could > safely assume to be in the "ON" range, OR do you have some other way of > indicating when the FET is on? If so, you could voltage limit the input > to Vdd or below with a resistor and Zener or whatever, and only use the > input when the FET is known to be on. > > Dale > -- > It's a thankless job, but I've got a lot of Karma to burn off. > Get a PicoKeyer: http://www.hamgadgets.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 > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.