Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gerhard Hoffmann Newsgroups: sci.electronics.design Subject: Re: SPICE simulation -- how to bias a crystal oscillatoir Date: Sun, 8 Nov 2015 15:48:45 +0100 Lines: 41 Message-ID: References: <4e44bcb3-a1e9-48dc-a358-cfb7dd171f42@googlegroups.com> <826s3b9bgoov8pc40eascnacfilibcic8t@4ax.com> <2s7s3bpvvufcso8u37c0p4esttr4jrv5cn@4ax.com> Reply-To: ghf@hoffmann-hochfrequenz.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net zFDaHRJOiq3cgz8NDn9TIAFhxWr+YKG1ftmmfQhhr50Z7IkcyI Cancel-Lock: sha1:u2bHPutWJOGKZ7i1Yu3fbN0DsYc= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: Xref: csiph.com sci.electronics.design:384193 Am 07.11.2015 um 23:48 schrieb Phil Hobbs: > >> The dilemma is where to set the minimum time step. At 8 MHz, if you >> want 1 PPM frequency accuracy, the time step might be 100 fs, and it >> would run forever, and you might be pushing double-float accuracy >> limits. And there's no way (that I know of) to measure the frequency >> accurately from a time-domain sim. > > Numerical discretizing schemes generally don't preserve exact eigenfrequencies > anyway. For instance, in FDTD electromagnetic simulations, you have to dork > the value of c to improve accuracy--the numerical c can differ from the real > one by as much as a percent or so. > > In an adaptive solver like SPICE, I'd expect the eigenfrequencies to depend > on all sorts of internal variables such as time step, solver algorithm, and > a bunch of control panel parameters. Xtal oscillators are easier analyzed in the ac domain and not with integration over time. Cut the loop open and calculate the loop gain. It will oscillate where the phase of the loop gain crosses 0. You will also see if it will compress ( amplitude of loop gain @ phase 0 >> 1) or not oscillate at all (amplitude there < 1.0) Source and load impedance at the cut point may be very different, and also different from 50 Ohms if you use s-params, so Randall-Hock correction may be needed to make up for the missing self-termination. BTW you get weird results with LTspice for steps < 5 Hz or so in a 100 MHz xtal osc. The resolution of f seems to hit the limit. regards, Gerhard < http://www.keysight.com/upload/cmc_upload/All/OscillatorDesignWebinar_AgilentEEsof_MWJ_16_Sep_2010.pdf > The book they mention is good.