Jinx clear.net.nz> writes: > > > I am confused about seperating the ranges and giving the > > output.Suggestions are welcomed. > > Hi Yigit. First of all it would probably help to get better resolution - > amplify the AC up to 5V pk-pk or use Vref+ > If number of steps allow, you can use LED bar=graph driver to convert input voltage to output steps. Each ouput can go to diode, followed by resistor to make a divider where only output pin with "1" contributes to output voltage. You will need to amplify the signal and rectify it to convert 50Hz to DC. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist