I am to use a 24FJxxGA106 to (along other things) measure 220V mains voltage with some coarse accuracy, say 1-2% I have a small 220->6V transformer, whose inputs goes via a partitor (still have to decide, but let's assume it 4K7 - 2K2) to AN2 of the PIC. So, more or less 2Vrms or 3Vpp circa when mains is nominal 220V. I'm planning on sampling/reading the input voltage some ... 100? times / second, and perform a ... FFT or something simpler upon it. Can you suggest the simplest way to achieve that result? TIA -- Ciao, Dario -- Cyberdyne -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist