Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.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:13:24 -0500 Message-ID: <55C3BFE5.6030205@electrooptical.net> Date: Thu, 06 Aug 2015 16:13:25 -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> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 58 X-Trace: sv3-e8B11PmO4XOGju8q5u44dOC9+a3QTsBy4+Hyi2QEOKdquJr7H0GQnWUjhuHc5dcA00rD01G+a1ZrI9M!gtGr+dNyWOCPtWS61aIZ5o0jaYjj4efSfjodqXQn7Z3hpIfDPvV83cxhjrSoESrNRHBXkT0WcA== 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: 3160 Xref: csiph.com sci.electronics.design:371899 On 8/6/2015 3:04 PM, Tim Wescott 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 ?>:-} > > 'struth. It's just that for some of them, the uP that'll do the job > hasn't been invented yet. > > Just you wait -- before you die, Linear Technologies will have high-end > op-amps with ARM cores. > Nice of you to wish us another 100 years or so. ;) 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