Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Phil Hobbs Newsgroups: sci.electronics.design Subject: Re: Microcontroller phase locked loop, ping Tim Wescott et. al. Date: Thu, 06 Aug 2015 13:57:03 -0400 Organization: A noiseless patient Spider Lines: 37 Message-ID: <55C39FEF.5010708@electrooptical.net> References: <55c39580$0$7076$4c5ecfc7@frugalusenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="e1355fd8c2133ed0e70d1dbfee3de196"; logging-data="5741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v7VtWyB44SLvYpE2BEEZJ" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <55c39580$0$7076$4c5ecfc7@frugalusenet.com> Cancel-Lock: sha1:+BNgH621c4G6b7FPxc5g0dEwVZQ= Xref: csiph.com sci.electronics.design:371875 On 8/6/2015 1:12 PM, bitrex wrote: > Has anyone successfully implemented a phase locked loop on a > microcontroller? > > The frequency of interest would be somewhere in the 200kHz range, and > the objective of the PLL would be FM demodulation. So I'd have an input > for the FM modulated frequency, and an external VCO in that range that > the uC would hopefully control via filtered PWM. Other than that, this > is mostly hypothetical for now. > > Does this seem possible? I have the following reference: > > http://liquidsdr.org/blog/pll-howto/ > > I'd be hoping to use something like an ATTiny. All code would be > adjusted to use fixed-point math, I'd imagine. For a given resolution, you might as well just use a counter input. It's not going to be a very good demodulator...what modulation frequency and modulation index are you looking to accommodate? Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net