Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
No, the OP didn't provide the most important detail:
Is the OP willing to tie the PIC's Vss pin to the AC Line, or is the OP looking for an isolated measurement?
(* Safe for the pic)
My worry is that someone who needs to ask this question has no business tying a PIC directly to the AC line.
he is giving all the info that is needed.
you need to attenuate the signal from (230v*1.414) down to 5v and shift its center up from 0 to 2.5v using an op-amp, thjen you can read it with A to D
No where near.
That's ONE method, specific to wanting to measure the AC waveform along it's entire length - is that what he wants?. If not you've just answered an entirely different question.
how to read adc AC voltage ? please help me