¿ªÔÆÌåÓý

Re: Oscillator


 

--- In LTspice@..., "Al Williams" <alw@a...> wrote:
I put the ASC file in the Files section. The simulation time is
quite long, but it seemed to stablize around 30uS or so.
Hello Al,
I modified your oscillator circuit and added also some comments.
It is very important to have well defined settings for the simulator.
Accidentally by far not all paramaters can be controlled from the
schematic or the netlist. This is a very bad drawback of LTSPICE.
I would appreciate to have commands for all simulator settings.

Setup the Simulator:
The points 1 to 4 are the most important actions.
1. Control Panel->Spice->Reset to Default
2. Control Panel->Hacks->Reset to Default
3. Control Panel Hacks->Supply a min. inductor damping->click off
4. Don't use integration method Gear. It tends to let die the
oscillation of this crystal oscillator.
5. Start your simulations with a lower Q of the crystal to reduce
turnaround time during development of your circuit.
Later you can increase Q and simulation time.

My new schematic file is in the Files->Examples->Educational Menu too.

By the way, this is not the best type of one transistor oscillator
for 12Mhz. There are better suited circuits.

Best Regards
Helmut

Pierce_12Mhz_r.asc:
You have to repair the two broken long lines with a text editor.
.TEXT 728 324 .....
.TEXT 728 524 .....
You can find this file in the Files->Examples->Educational folder too.


Version 4
SHEET 1 2020 1396
WIRE 1248 752 1280 752
WIRE 1344 752 1376 752
WIRE 1136 656 1136 752
WIRE 1328 1040 1136 1040
WIRE 1136 752 1136 1040
WIRE 1392 992 1392 960
WIRE 1392 960 1472 960
WIRE 1920 1232 1920 1344
WIRE 1920 1344 1568 1344
WIRE 1408 1344 1408 1376
WIRE 1440 1200 1440 1232
WIRE 1440 1344 1408 1344
WIRE 1344 1344 1408 1344
WIRE 1440 1136 1440 1104
WIRE 1440 1104 1392 1104
WIRE 1392 1104 1392 1088
WIRE 1344 1344 1136 1344
WIRE 800 960 800 1088
WIRE 640 1344 800 1344
WIRE 800 1344 944 1344
WIRE 944 960 800 960
WIRE 688 960 640 960
WIRE 640 960 640 1056
WIRE 800 1152 800 1344
WIRE 640 1136 640 1344
WIRE 944 1056 944 960
WIRE 944 1344 944 1248
WIRE 944 1136 944 1152
WIRE 1136 1040 1136 1136
WIRE 944 1152 944 1168
WIRE 1344 1216 1344 1344
WIRE 1344 1136 1344 1104
WIRE 1344 1104 1392 1104
WIRE 1232 656 1136 656
WIRE 1472 656 1296 656
WIRE 1136 752 1168 752
WIRE 1456 752 1472 752
WIRE 1472 752 1472 656
WIRE 800 960 768 960
WIRE 1232 960 944 960
WIRE 1312 960 1392 960
WIRE 1344 1056 1328 1056
WIRE 1328 1056 1328 1040
WIRE 1568 992 1568 960
WIRE 1568 960 1472 960
WIRE 1568 1056 1568 1104
WIRE 1568 1344 1440 1344
WIRE 1568 1216 1568 1344
WIRE 1568 1104 1568 1152
WIRE 1920 1104 1568 1104
WIRE 1920 1104 1920 1152
WIRE 1136 1200 1136 1344
WIRE 1136 1344 944 1344
WIRE 992 1152 992 1040
WIRE 992 1152 944 1152
WIRE 992 1040 1136 1040
WIRE 1472 960 1472 752
WIRE 1440 1312 1440 1344
FLAG 1408 1376 GND
FLAG 1920 1104 Output
SYMBOL voltage 640 1040 R0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL res 784 944 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 100
SYMBOL res 960 1152 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL res 960 1264 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL cap 784 1088 R0
SYMATTR InstName C1
SYMATTR Value 100n
SYMBOL cap 1120 1136 R0
WINDOW 3 25 60 Left 0
SYMATTR InstName C2
SYMATTR Value 33p
SYMBOL res 1904 1136 R0
SYMATTR InstName R4
SYMATTR Value 50
SYMBOL ind 1264 736 R90
WINDOW 0 5 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName L0
SYMATTR Value {L0}
SYMBOL cap 1344 736 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C0
SYMATTR Value {C0}
SYMBOL cap 1296 640 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName Cp
SYMATTR Value 5p
SYMBOL res 1472 736 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R0
SYMATTR Value {R0}
SYMBOL cap 1424 1136 R0
SYMATTR InstName C7
SYMATTR Value 10n
SYMBOL res 1328 1120 R0
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL res 1216 976 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R7
SYMATTR Value 1k
SYMBOL cap 1552 992 R0
SYMATTR InstName C9
SYMATTR Value 33p
SYMBOL cap 1552 1152 R0
SYMATTR InstName C10
SYMATTR Value 2.2n
SYMBOL res 1424 1216 R0
SYMATTR InstName R8
SYMATTR Value 1
SYMBOL npn 1328 992 R0
SYMATTR InstName Q1
SYMATTR Value 2N2369
TEXT 736 736 Left 0 !.tran 0 3m 0 0.005u
TEXT 736 768 Left 0 !.IC I(L0)=1e-24
TEXT 728 384 Left 0 ;Setup the Simulator:&#92;n1. Control Panel->Spice-
Reset to Default&#92;n2. Control Panel->Hacks->Reset to Default&#92;n3.
Control Panel Hacks->Supply a min. inductor damping->click off&#92;n4.
Don't use integartion method Gear. It tends to let die the
oscillation.&#92;n5. Start your simulations with a lower Q of the crystal
to reduce startup simulation time.
TEXT 728 584 Left 0 !.PARAM f0=12e6&#92;n.PARAM Q=50000&#92;n.PARAM R0=60
&#92;n.PARAM L0={Q*R0/(2*pi*f0)}&#92;n.PARAM C0={1/(2*pi*f0*Q*R0)}

Join [email protected] to automatically receive all group messages.