> Yes, I'm trying to get the average DC level, the RMS value of > the sine wave. Which of the two, or both? The average of a sine is zero, the RMS is sqrt(2)*((1/2)*[top-top])^2. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body