> > Well then, anytime the processor isn't busy just grab signal > > samples off the A/D converter. Record the highest reading you > > get after grabbing some number of samples...that's the + amplitude, > > assuming it was a real signal you were reading. > > Sometime things are just that simple, thanks! Sometimes, but not this time. You said the frequency was 120KHz. That's a lot faster than the PIC A/D can sample. You would have to sample every 4uS to beat the Nyquist rate. You could do some fancy pseudo random sampling, but I think a little external hardware is called for here. Fortunately this is pretty simple. All you need is an op amp, diode, capacitor, and resistor. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads