>I don't know, Peter. An LM339, a cap and a resistor are pretty cheap! > >Andy And a pullup at the output of the 339 and a 1/2Vcc divider (or did you use the IC as current sensor). == 4 parts minimum. Sometimes there is not enough room for 2 parts (including the PIC). Where do I put 4+ ? ;-) Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads