Hello, I'm making an RMS voltage measurement with the PIC at one of my circuits. Now, how can I get a precise result if I don't know the frequency and format of the waveform going to the PIC A/D? I mean, if the wave is very clean, like a pure sinusoidal, I could try to sample it between two zero-crossings and I will have a very precise value. But what about if it does have some loud harmonics? For example, if it's a sine with 100Hz plus a sine with 187Hz, both mixed and with the same intensity, the zero-crossings will be all over the place so I can't sample between two zero-crossing because the values will be meaningless. Any ideas? Thanks, Brusque ----------------------------------- Edson Brusque Research and Development C.I.Tronics Lighting Designers Ltda (47) 323-2138 / (47) 9993-6453 Blumenau - SC - Brazil www.citronics.com.br ----------------------------------- -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu