Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Hari Melath
harimelath1

posted on 2012/06/14 06:02:34 AM CEST

Measurement

ADC to measure 50HZ Sine wave AC voltage

Hi
I am working on AC voltage measurement using the PIC18F45K22. I do not want transformer isolation, instead wants to clamp the Ac voltage to 50% of the VDD of the chip and make zero voltage as 2.5V at ADC point. Can any body help with a code sample to measure RMS volatge with this method.