Russell McMahon ha scritto: > - Aim is to detect that mains is within desired voltage range. > > - Transformer secondary output is available. > > - Use of PIC ADC as means of measurement is desired. > > - Absolute minimum of hardware desired. > > - Various peak detection and waveform magnitude measurement systems have > been described. > > - Connection of transformer secondary to Vdd with resistor divider to PIC > pin was suggested (by me) giving always +ve signal always between Vdd-Vss > and 2 resistors total (and maybe smoothing cap. > > - Effects of noise etc were commented on along the way. > > - Current hardware seems slightly inferior to and more complex than my 2 > resistor suggestion. Reason for not using my suggestion is unknown. very good resume :) Russell, thank you :) I'll consider the "full-positive, go VDD" approach later... -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist