Wouter van Ooijen ha scritto: >> 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. Yeah, a good one for another project :) In this case the whole board is already made up with power, PIC, other "things" etc. I stated the most of its characteristics in my other replies. thank you Wouter anyway :) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist