Tony Vandiver ha scritto: > I've done something similar, (but with a little less accuracy) by > rectifying the output of the transformer and just doing a straight > average of the ADC then translating back with a fixed multiplier. Works > o.k. as long as there's no other load on the transformer. You'll get > better results if you calibrate this (it's difficult to depend on the > repeatability of the turns ratio of the transformer for a 1% accuracy). I see Tony, I actually wanted to avoid most of external components. I basically have the transformer and a R partitor. Calibration is something I'll have to perform anyway, unfortunately... thanks -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist