Two questions first, one related directly, one indirectly... First, what are the losses in your hardware? Next, You don't mention line isolation. how have you isolated the PIC pin from the line? If it's not isolated from the line it's not going to last long. I you've done this before you know that linear isolation is *real fun*. If your circuit is not isolated now, but needs to be, your math will change for sure - so you may even want to re-think your base method first.. Chris > > I want to use a pic to measure AC line voltage. First, my > hardware scales > down 200V to 5V and flips the negative duty cycle to positive > so that the > pic can read the signal. Then the pic reads the voltage every > 0.1ms with an > adc port. Now I have many almost 100 reads within a duty > cycle. No this is a > math question: How do I calculate the AC voltage from these reads? > > Thanks, > Tony > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics