> Can you suggest the simplest way to achieve that result? For the hardware I would prefer a mains-powered PIC that does the A/D and transmits the (possibly processed) result to the main PIC by optocoupler. Eliminates the transformer (bulky, uncalibrated, might change the waveform) in exchange for an extra PIC, optocoupler and a C-based power supply. -- Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist