Russell McMahon wrote: > There seems to be a reluctance to even consider the suggestion I made. > It may have been commented on an rejected for some good reason but I > don't recall seeing it. > Transformer and 2 resistors in basic form. > Connect one leg to Vdd, other via divider to ground and tap to ADC in. > Add cap if desired for noise handling. The hardware has apparently been built already, so it is what it is. That means the problem shifts to what can be done in firmware given the current hardware. While the current hardware is not ideal, it is still definitely possible to figure out the original line voltage in firmware with the information it does have available. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist