LC Oscillator Questions
Helmut Sennewald wrote:
"Anthony Fremont" schrieb im Newsbeitrag
...
Helmut Sennewald wrote:
Hello Anthony,
1.
Please set the following option to sitch off data
reduction/compression in the result file..
.options plotwinsize=0
2.
You have to set a small maximum timestep in the .TRAN line too.
Maybe a value of 0.01*Period of oscillation if you hunt for very low
distortion.
Can you send me your file (.asc-file and model-file?) to check it?
In alt.binaries.schematics.electronic I have posted the schematic,
the asc-file and an oscilloscope screen shot from an actual circuit.
Here is the asc-file contents:
Hello Anthony,
The large capacitance of C1 (10nF) has caused an interrupted
oscillation. Please change its value to 1000p and the oscillator will
work as expected. I have also added MEASURE-commands to measure the
frequency. View - SPICE Error Log
Another method is using the FFT in the waveform viewer.
Best regards,
Helmut
Save as "osc1.asc".
Version 4
SHEET 1 880 708
WIRE -688 -96 -784 -96
WIRE -576 -96 -688 -96
WIRE -304 -96 -576 -96
WIRE -784 -64 -784 -96
WIRE -688 -64 -688 -96
WIRE -576 -16 -576 -96
WIRE -304 32 -304 -96
WIRE -784 48 -784 16
WIRE -688 48 -688 0
WIRE -576 80 -576 64
WIRE -480 80 -576 80
WIRE -432 80 -480 80
WIRE -368 80 -432 80
WIRE -576 128 -576 80
WIRE -432 144 -432 80
WIRE -576 240 -576 208
WIRE -432 240 -432 208
WIRE -304 240 -304 128
WIRE -304 240 -432 240
WIRE -240 240 -304 240
WIRE -160 240 -240 240
WIRE -64 240 -96 240
WIRE -32 240 -64 240
WIRE -576 272 -576 240
WIRE -432 272 -432 240
WIRE -32 272 -32 240
WIRE -304 288 -304 240
WIRE -32 368 -32 352
WIRE -576 384 -576 336
WIRE -432 384 -432 336
WIRE -432 384 -576 384
WIRE -304 384 -304 368
WIRE -304 384 -432 384
WIRE -432 416 -432 384
FLAG -784 48 0
FLAG -432 416 0
FLAG -688 48 0
FLAG -32 368 0
FLAG -64 240 out
FLAG -240 240 e
FLAG -480 80 b
FLAG -576 240 lc
SYMBOL voltage -784 -80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5.8
SYMBOL res -592 -32 R0
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL npn -368 32 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL cap -448 144 R0
SYMATTR InstName C1
SYMATTR Value 1000p
SYMBOL res -320 272 R0
SYMATTR InstName R7
SYMATTR Value 1k
SYMBOL cap -448 272 R0
SYMATTR InstName C2
SYMATTR Value 500p
SYMBOL ind -592 112 R0
WINDOW 39 36 108 Left 0
SYMATTR InstName L1
SYMATTR Value 20µ
SYMATTR SpiceLine Rser=.1
SYMBOL cap -592 272 R0
SYMATTR InstName C3
SYMATTR Value 200p
SYMBOL cap -96 224 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C4
SYMATTR Value 270p
SYMBOL cap -704 -64 R0
SYMATTR InstName C5
SYMATTR Value 10µ
SYMBOL res -48 256 R0
SYMATTR InstName R2
SYMATTR Value 100k
TEXT -824 -152 Left 0 !.tran 0 200uS 0 4n
TEXT -824 -184 Left 0 !.options plotwinsize=0
TEXT -816 472 Left 0 !.measure tran t1 FIND time WHEN V(out)=0 TD=90u
RISE=1 TEXT -816 504 Left 0 !.measure tran t2 FIND time WHEN V(out)=0
TD=90u RISE=101
TEXT -816 536 Left 0 !.measure tran f0 PARAM 100/(t2-t1)
TEXT -816 576 Left 0 ;View - SPICE Error Log \nfor the measured
frequency TEXT -520 -184 Left 0 ;C1 changed to 1000p!
Thank you very much. :-) I have now switched to using an MPF102 JFET
instead of the bipolar and much less capacitance for C1 (now 470pF). I only
get a 2V peak to peak signal out now, but it's quite nice looking.
|