Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 06 Aug 2015 15:14:56 -0500 Message-ID: <55C3C040.50707@electrooptical.net> Date: Thu, 06 Aug 2015 16:14:56 -0400 From: Phil Hobbs User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 Newsgroups: sci.electronics.design Subject: Re: Microcontroller phase locked loop, ping Tim Wescott et. al. References: <55c39580$0$7076$4c5ecfc7@frugalusenet.com> <55C39FEF.5010708@electrooptical.net> <86e7sals26g209bj9rehe105b0uj5lrglk@4ax.com> In-Reply-To: <86e7sals26g209bj9rehe105b0uj5lrglk@4ax.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Lines: 62 X-Trace: sv3-UuSVy3SV5fQLUUGHt5PPDeI+xipj0pHEF49mgs3NfyTsTTqOyX8/Z0epA2C9dub4Yb+9V3nH4BBjOxE!M6P1naMUyFJqIiSR24673z2UlFPZXstxOU4YycD30LgOU3U1J108gBWTDp8CAwPchnaJIfA= X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3399 X-Received-Bytes: 3511 X-Received-Body-CRC: 1502206648 Xref: csiph.com sci.electronics.design:371900 On 8/6/2015 3:48 PM, upsidedown@downunder.com wrote: > On Thu, 06 Aug 2015 11:19:55 -0700, Jim Thompson > wrote: > >> On Thu, 06 Aug 2015 13:57:03 -0400, Phil Hobbs >> wrote: >> >>> 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 >> >> Awwwh, shucks, Phil, Don't you know that the solution for all analog >> problems is a uP ?>:-} >> >> ...Jim Thompson > > Get away with the VCOs and do it with NCOs and you can do FM, PM and > AM quite easily. No need for PLLs or phase detectors. Of course the uP > must handle about 500 kHz interrupt rate :-). > Pretty slow PLL if you can do it at that rate. Of course not every application needs good performance--if all you care about is not losing count, digital is great. 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