On Tue, Mar 9, 2010 at 3:37 AM, Carl Denk wrote: > That's what I do on my standby generator's PLC, but should work on a > PIC. A wallwart with 12 VAC out, rectifier bridge, and resistor voltage > divider with a pot for for calibration adjustment. All I need is voltage > within a few volts accuracy, to verify the generator is actually putting > out current, or the power line is down. Yes I will go this route if I were Dario. A rectifier does not cost much and it is the proper way to go. -- Xiaofan http://mcuee.blogspot.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist