Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Phil Hobbs Newsgroups: sci.electronics.design Subject: Re: PIC oscillator Q Date: Fri, 11 Sep 2015 18:52:58 -0400 Organization: A noiseless patient Spider Lines: 70 Message-ID: <55F35B4A.1000108@electrooptical.net> References: <9%lIx.30696$Z33.19323@fx26.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="e1355fd8c2133ed0e70d1dbfee3de196"; logging-data="5351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kHLNvZ0tdAwHbyyfHak7A" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: Cancel-Lock: sha1:AOhRMNTz6sDGDZrAIWmWt6EQuC4= Xref: csiph.com sci.electronics.design:376567 On 9/10/2015 9:29 PM, John S wrote: > On 9/10/2015 3:47 PM, Robert Baer wrote: >> John S wrote: >>> On 9/10/2015 3:13 AM, Robert Baer wrote: >>>> It seems that an un-programmed PIC will not oscillate; the OSC pins >>>> are at ground in the "raw" state, and 10Megs between them obviously >>>> will >>>> not get them to logic (linear) level. >>>> >>>> So, ASS-u-ME that the PIC is minimally programmed for an external >>>> 20Mhz crystal and one would like it to oscillate at that frequency and >>>> not higher, what changes would be needed, based on my old >>>> Semi-universal >>>> oscillator: >>>> >>>> Copied from "Semi-universal CMOS Xtal OSC" 11/11/2008 4:55 AM >>>> >>>> Plug crystal into appropiate socket; each has its specified load. >>>> The drive resistor shown is the maximum value that allows all >>>> frequencies of a given type to oscillate; some frequencies work >>>> with higher R values (less drive). >>>> NOTE: in *all* cases the frequency is higher than marked ( >>>> expected) value. >>>> Made using a 74AC02 which oscillates near 140Mhz with no Xtal >>>> plugged in (amplitude about 1V pk-pk at 5V supply). > > (snip munged ASCII schematic) > >>> >>> If I understand you correctly, you want to know how to modify your >>> circuit so that it produces a frequency no higher than the crystal's >>> marking. Yes? >>> >>> >> Exactly. A few tens of Hertz more or less is acceptable; i could live >> with a few hundreds if absolutely necessary. >> Part value ideas? > > The manufacturer usually specifies the "loading" capacitance that must > be used to achieve their target frequency. Note that the 22p and 10p are > in series across the crystal (the loading). By increasing the > capacitance, you might be able to pull the frequency to where you want. > First try to increase the 10p. If fails to start and oscillate, then > don't do that. > > I saw one circuit some years ago that had an inductor in series with the > crystal, but can't remember any details. That's usually a bad idea. A crystal looks capacitive everyplace except between its series and parallel resonances, which is a huge help in making sure it wakes up at the right frequency. An inductor in _parallel_ can help when you're building overtone oscillators, to cancel the otherwise-dominant parallel capacitance. 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