Some tiny updates for pss examples

This commit is contained in:
Holger Vogt 2026-04-20 17:02:10 +02:00
parent 21b3131e12
commit a3102a7041
3 changed files with 23 additions and 16 deletions

View File

@ -47,7 +47,7 @@ set temp=0
option klu
run
rusage
set xbrushwidth=3
set xbrushwidth=2
*plot i(Vss) ylimit 0 500u xlimit 50n 60n
plot out
plot out xlimit 50n 60n
@ -60,8 +60,11 @@ plot mag(out) xlimit 300Meg 2300Meg
meas sp fmax MAX_AT out from=1e8 to=1e9
echo
reset
pss 500e6 10n out 256 10 5 5e-3 uic
pss 500e6 8n out 1024 10 5 5e-3 uic
setplot pss3
plot out xlimit 300Meg 2300Meg
setplot pss2
plot out
inventory
.endc

View File

@ -1,31 +1,35 @@
Hartley's Oscillator Circuit
* Hartley is an harmonic oscillator (LC based) which use
* an inductive partition of resonator to feed the single
* active device. Output is taken on node 2.
* active device. Output is taken on node n2.
* Prediceted frequency is about 121.176 Hz.
*
* PLOT V(3)
* Models:
.model qnl npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50)
vcc 1 0 5 pwl 0 0 1e-5 5
r1 1 2 0.2k
q1 2 3 0 qnl
r1 1 n2 0.2k
q1 n2 3 0 qnl
c1 3 4 633n
l1 3 0 1.5
l2 0 4 500m
r2 4 2 100
r2 4 n2 100
.control
set xbrushwidth=3
set xbrushwidth=2
tran 10u 1
plot v(2)
linearize v(2)
fft v(2)
plot mag(V(2)) xlimit 0 500 ylimit 0 1.5
rusage time
plot v(n2) xlimit 0 100m
linearize v(n2) np=65536
fft v(n2)
plot mag(V(n2)) xlimit 0 500 ylimit 0 1.5
reset
pss 50 200e-3 2 1024 11 10 5e-3
plot v(2) xlimit 0 500 ylimit 0 1.5
* gfreq tstab oscnob psspoints harms sciter steadycoeff
pss 120 100e-3 n2 1024 11 10 5e-3
rusage
setplot pss1
plot v(n2) xlimit 0 500 ylimit 0 1.5
setplot pss2
plot v(n2)
.endc

View File

@ -26,7 +26,7 @@ plot mag(v(4)) xlimit 0 10Meg
let maxfft=mag(v(4))
meas sp fosc MAX_AT maxfft from=1Meg to=10Meg
reset
pss 1.8e6 10e-6 4 1024 10 50 5e-3 uic
pss 1.8e6 20e-6 4 1024 10 50 5e-3 uic
plot v(4) xlimit 0 10Meg
.endc
.end