Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #534376

Re: SPICE tarnsient analysis of oscillators - sampling time

Newsgroups sci.electronics.design
Subject Re: SPICE tarnsient analysis of oscillators - sampling time
From Steve Wilson <no@spam.com>
References <f90e9f2d-869b-44b3-a22b-89e5e6411ce2@googlegroups.com> <6p9t7edliou0t9o75r1a4614onnedmdun2@4ax.com>
Message-ID <XnsAA09B4969AAFDidtokenpost@69.16.179.22> (permalink)
Organization http://www.NewsDemon.com
Date 2019-03-05 22:45 +0000

Show all headers | View raw


John Larkin <jjlarkin@highlandtechnology.com> wrote:

> On Tue, 5 Mar 2019 02:54:14 -0800 (PST), dakupoto@gmail.com wrote:
 
>>Could some electronics guru here please clarify this a bit ?
>>I am experimenting with SPICE transient analysis of oscillator, and I
>>am unsure as to what to set as the ideal sampling time,  given that
>>most oscillators will generate a fundamental and a few harmonics. For
>>example, suppose that I have a 500 MHz differential oscillator, and I
>>set the sampling time as 1/(15.0*time period of fundamental), would
>>that be sufficient to satisfy the Nyquist criterion, and also capture
>>the fundamental and the first two harmonics ? 
>>The reason I ask is that I have noticed that with this scheme,  the
>>fundamental is always at 250 MHz, and the first harmonic is at 500 MHz.
>>This is peculiar. Is there something wrong in my assumption ?
>>Thanks in advance. 
 
> LT Spice goes for sim speed, so it tends to use coarse time steps. If
> you shock a simple LC and let it ring, at default settings the
> resonant frequency will be off by percentages. Similarly, oscillator
> sims will be unrealistic.

False. Your sim took the difference between the LC tank and a sine wave. 

You didn't know the default series resistance of an inductor is 1 milliohm, 
so the tank voltage decayed. Your measurement could not tell the difference 
between phase and amplitude (simple trig) so you claimed a frequency error. 
How you converted your measurement to frequency error is beyond me.

I have attached a simple sim showing the frequency error is unmeasurable 
when you set the tank ESR to zero. Let it run for 1,000 cycles. After 1,000 
cycles, the tank voltage and sine wave overlap exactly. The frequency 
difference is too small to measure.

Oscillator sims are similarly as accurate as the component values you enter 
plus strays. See 

https://drive.google.com/open?id=1ZsbpkV0aaKS5LURIb1dfu_ndshsSaYtf

Here is the sim. Plot the LC and Sin voltages on the same graph.

Version 4
SHEET 1 1008 680
WIRE 352 -160 176 -160
WIRE 400 -160 352 -160
WIRE 496 -160 400 -160
WIRE 176 -112 176 -160
WIRE 352 -112 352 -160
WIRE 496 -112 496 -160
WIRE 176 16 176 -32
WIRE 352 16 352 -32
WIRE 496 16 496 -48
WIRE 320 112 176 112
WIRE 352 112 320 112
WIRE 176 128 176 112
WIRE 176 224 176 208
FLAG 400 -160 LC
FLAG 176 16 0
FLAG 352 16 0
FLAG 496 16 0
FLAG 176 224 0
FLAG 320 112 Sin
SYMBOL ind 336 -128 R0
WINDOW 0 45 22 Left 2
WINDOW 3 42 47 Left 2
SYMATTR InstName L1
SYMATTR Value {N}
SYMATTR SpiceLine Rser=0
SYMBOL cap 480 -48 M180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C1
SYMATTR Value {N}
SYMBOL current 176 -112 R0
WINDOW 0 -70 50 Left 2
WINDOW 3 -165 99 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName I1
SYMATTR Value PULSE(1 0 1)
SYMBOL voltage 176 112 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(0 1 1 1)
TEXT 192 -296 Left 2 ;'1 Hz LC Osc Infinte Q
TEXT 464 -264 Left 2 !.options numdgt=15
TEXT 656 -264 Left 2 !.param N = 1 / (2 * pi)
TEXT 192 -256 Left 2 !.tran 0 1000 0 100u

 

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SPICE tarnsient analysis of oscillators - sampling time dakupoto@gmail.com - 2019-03-05 02:54 -0800
  Re: SPICE tarnsient analysis of oscillators - sampling time Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-03-05 11:08 +0000
  Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 08:51 -0800
    Re: SPICE tarnsient analysis of oscillators - sampling time Winfield Hill <hill@rowland.harvard.edu> - 2019-03-05 12:30 -0800
    Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 22:45 +0000
      Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-05 15:11 -0800
        Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 00:34 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 17:19 -0800
            Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 02:22 +0000
              Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-05 22:47 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 09:35 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 07:27 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 19:51 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-06 12:50 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-06 22:56 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-06 20:25 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:56 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-07 12:05 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:12 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:37 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-07 18:55 +0000
        Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 16:13 +0000
          Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-08 08:40 -0800
            Re: SPICE tarnsient analysis of oscillators - sampling time "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2019-03-08 19:25 +0000
              Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-08 11:48 -0800
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-09 02:41 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:33 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-10 14:40 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-11 07:06 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-11 07:02 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 06:44 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-12 06:47 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 21:34 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highland_snip_technology.com> - 2019-03-12 15:51 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-13 10:05 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-13 07:22 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Jasen Betts <jasen@xnet.co.nz> - 2019-03-14 05:09 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time John Larkin <jjlarkin@highlandtechnology.com> - 2019-03-14 08:13 -0700
                Re: SPICE tarnsient analysis of oscillators - sampling time Allan Herriman <allanherriman@hotmail.com> - 2019-03-14 05:04 -0500
                RE: Re: SPICE tarnsient analysis of oscillators - sampling time A_george <jcustom@heliost.org> - 2019-03-16 13:13 +0000
                Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:32 -0400
                Re: SPICE tarnsient analysis of oscillators - sampling time Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-03-16 09:30 -0400
      Re: SPICE tarnsient analysis of oscillators - sampling time Steve Wilson <no@spam.com> - 2019-03-05 23:14 +0000
  Re: SPICE tarnsient analysis of oscillators - sampling time bloggs.fredbloggs.fred@gmail.com - 2019-03-05 09:56 -0800

csiph-web