http://www.analog-innovations.com/SED/MC12040-DataSheet.pdf http://www.eecg.toronto.edu/~kphang/papers/2003/Lau_phasedetectors.ppthttp:= //www.family-science.net/ITTTech/Downloads/TestingaPhaseDetector.pdfhttp://= www.coolcircuit.com/circuit/4070/http://en.wikipedia.org/wiki/File:Phase_de= tectors.svg > Date: Wed, 8 Jun 2011 03:23:36 +0100> From: oli.glaser@talktalk.net > To: piclist@mit.edu > Subject: Re: [PIC] Phase Averaging? >=20 > On 07/06/2011 23:45, Kerry Wentworth wrote: > > How do you get it to count to 361, rather than having it stop at 1? > > >=20 > When the zero crossing detector fires, you capture the value of the=20 > counter but don't zero it, just let it run for as many samples as you=20 > want to average and store the values in an array. > I think... :-) >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .