Hmm. Not a bad idea... But, because the PIC will draw very little current in a analog-comparator mode, I'd rather clamp it in the off-mode. KreAture ----- Original Message ----- From: "Bob Barr" To: Sent: Sunday, June 22, 2003 8:47 PM Subject: Re: [PIC]: Behaviour of PIC16F62x with over-voltage on comparator? > 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 > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.