Path: csiph.com!xmission!news.glorb.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: Sat, 07 Nov 2015 11:30:14 -0600 From: Phil Hobbs Subject: Re: SPICE simulation -- how to bias a crystal oscillatoir References: <4e44bcb3-a1e9-48dc-a358-cfb7dd171f42@googlegroups.com> <826s3b9bgoov8pc40eascnacfilibcic8t@4ax.com> <2s7s3bpvvufcso8u37c0p4esttr4jrv5cn@4ax.com> Newsgroups: sci.electronics.design Message-ID: <563E3526.5090501@electrooptical.net> Date: Sat, 7 Nov 2015 12:30:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Lines: 204 X-Trace: sv3-Myg14YNiiO5kErYxf7VlIaximq4TreVDOBoi3c2bmQwC9ZljRiGdCM0jgdIOmL4w8mW84GOmoRtPsjc!0oIRm2AMx8PuaJ7WyXrVy9mbJk9aIOZymqwBy64pv40wmypO4QjNenqNXzYhxj5bLANvOZg= 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: 7479 X-Received-Bytes: 7591 X-Received-Body-CRC: 3857504744 Xref: csiph.com sci.electronics.design:384114 On 11/07/2015 11:47 AM, Phil Hobbs wrote: > On 11/07/2015 10:59 AM, Jim Thompson wrote: >> On Sat, 7 Nov 2015 10:40:25 -0500, Phil Hobbs >> wrote: >> >>> On 11/07/2015 10:34 AM, Jim Thompson wrote: >>>> On Sat, 07 Nov 2015 07:38:36 -0700, Jim Thompson >>>> wrote: >>>> >>>>> On Fri, 6 Nov 2015 19:31:46 -0800 (PST), dakupoto@gmail.com wrote: >>>>> >>>>>> Could some electronics/SPICE guru please help ? I have a >>>>>> simple model of a quartz crystal, as used in an oscillator. >>>>>> With my SPICE simulation, I can measure both the parallel >>>>>> and series resonant frequencies of the "pure" crystal. >>>>>> However, when I attach the same crystal to a biasing >>>>>> circuit, and run the simulation, the output is a flat DC >>>>>> offset. The biasing circuit involves two CMOS(1.0u micron >>>>>> gate length) inverters, as well as the large value feedback >>>>>> resistor, capacitirs etc. Is there anything special I need >>>>>> to do ? Any hints/suggestions would be helpful. Thanks in >>>>>> advance. >>>>> >>>>> Crystal oscillators can be very tricky to simulate. >>>>> >>>>> They _always_ need a "kick-start" of some sort to initiate the >>>>> oscillation. This can be by inserting a current pulse or skewing the >>>>> normal bias with a .IC statement. >>>>> >>>>> You will also need to set a very small timestep. >>>>> >>>>> If you are using LTspice, be sure to use the "Alternate" solver... the >>>>> "Normal" solver takes simplification liberties that will produce false >>>>> results on most anything but switchers. >>>>> >>>>> ...Jim Thompson >>>> >>>> An example... >>>> >>>> >>>> >>>> Several things to note: >>>> >>>> IKS is the "kick-start" current pulse. >>>> >>>> MaxTimeStep is set at 100ps >>>> >>>> SOLVER=0 is equivalent to LTspice's "Alternate" solver (Used to be >>>> PSpice's default solver until they decided to take liberties to >>>> speed-up simulation... not as bad as Mikey's "Normal", but loose >>>> enough not to handle crystal oscillators). >>>> >>>> What's with the Kiwi Semi? I am the "ghost designer" for a number of >>>> fabless design houses and they like their names on the drawings ;-) >>>> >>>> >>>> >>>> ...Jim Thompson >>>> >>> One caution is that the kickstart has to be _small_, not much more than >>> rounding error. A nanoamp is often a good value. Putting the current >>> source in parallel with the crystal inductance will make sure that it >>> starts off ringing at its natural frequency, which helps a lot. >>> >>> Cheers >>> >>> Phil Hobbs >> >> No. It has to be sufficient enough to significantly perturb the >> quiescent operating point. The example has a 10ns wide x 1mA pulse. > > The danger with that approach is that you can easily mask startup > problems. I doubt that would happen to you very often, but as a piece > of general advice to noobs it's not beneficial. > > Setting the tank ringing gently, so that it the circuit starts up in the > small signal limit, is the ticket. A nanoamp is lots for that, if you > put it in the right place, i.e. across the inductor. > Like so. (Two posts, one with the schematic inline, the other as an attachment.) Cheers Phil Hobbs ============ Version 4 SHEET 1 880 680 WIRE 640 -160 480 -160 WIRE 480 -144 480 -160 WIRE 224 -80 80 -80 WIRE 368 -80 224 -80 WIRE 432 -80 368 -80 WIRE 640 -80 640 -160 WIRE 80 0 80 -80 WIRE 80 0 32 0 WIRE 112 0 80 0 WIRE 224 0 224 -80 WIRE 32 16 32 0 WIRE 368 32 368 -80 WIRE 640 80 640 0 WIRE 32 112 32 96 WIRE 32 112 -112 112 WIRE -112 144 -112 112 WIRE 32 144 32 112 WIRE 224 144 224 80 WIRE 256 144 224 144 WIRE 368 144 368 96 WIRE 368 144 320 144 WIRE 480 144 480 -48 WIRE 480 144 368 144 WIRE 112 160 112 0 WIRE 480 192 480 144 WIRE 224 240 224 144 WIRE -112 256 -112 224 WIRE 32 256 32 224 WIRE 32 256 -112 256 WIRE 368 256 368 144 WIRE 32 272 32 256 WIRE 480 304 480 272 WIRE 32 352 32 336 WIRE 112 352 112 224 WIRE 112 352 32 352 WIRE 112 416 112 352 WIRE 224 416 224 320 WIRE 368 416 368 320 WIRE 480 416 480 384 FLAG 112 416 0 FLAG 480 416 0 FLAG 640 80 0 FLAG 224 416 0 FLAG 368 416 0 SYMBOL ind 48 240 R180 WINDOW 0 36 80 Left 2 WINDOW 3 36 40 Left 2 SYMATTR InstName L1 SYMATTR Value 0.3 SYMBOL cap 16 272 R0 SYMATTR InstName C1 SYMATTR Value 1.3f SYMBOL cap 96 160 R0 SYMATTR InstName C2 SYMATTR Value 2p SYMBOL res 16 0 R0 SYMATTR InstName R1 SYMATTR Value 20 SYMBOL njf 432 -144 R0 SYMATTR InstName J1 SYMATTR Value 2N4416 SYMBOL res 464 176 R0 SYMATTR InstName R2 SYMATTR Value 1k SYMBOL cap 352 256 R0 WINDOW 3 28 58 Left 2 SYMATTR InstName C4 SYMATTR Value 39p SYMBOL cap 352 32 R0 SYMATTR InstName C5 SYMATTR Value 10p SYMBOL voltage 640 -96 R0 SYMATTR InstName V1 SYMATTR Value 3 SYMBOL res 208 -16 R0 SYMATTR InstName R3 SYMATTR Value 1meg SYMBOL current -112 144 R0 WINDOW 3 -111 -199 Left 2 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName I1 SYMATTR Value PULSE({Ikick} 0 10n 1n) SYMBOL res 208 224 R0 SYMATTR InstName R4 SYMATTR Value 1meg SYMBOL cap 256 160 R270 WINDOW 0 32 32 VTop 2 WINDOW 3 0 32 VBottom 2 SYMATTR InstName C3 SYMATTR Value 1n SYMBOL ind 464 288 R0 SYMATTR InstName L2 SYMATTR Value 1 TEXT -208 320 Left 2 !.tran 50m TEXT -176 -200 Left 2 ;8 MHz Crystal Oscillator With/Without Small-Signal Kickstart TEXT -280 400 Left 2 !.step param Ikick list 0.001f 1n TEXT -168 -152 Left 2 ;Phil Hobbs, 2015-11-07 RECTANGLE Normal 176 368 -32 -32 2 -- 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