* Z:\home\khalils\Downloads\files\data\raw_asc\f7da77ff01d2_current_source3.asc
* Generated by LTspice 26.0.1 for Windows.
* LOAD
* .op
* {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
;.step temp 0 50 2
;.step param VCC 18 25 1
;.step param R_SET 100 350 5
;.step param beta 3100 4000 100
L3 N010 0 {L_SET/2048}
RT VCC VT {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
Q4 PC PB PE 0 TIP42C
Q2 N006 N006 N009 0 2N3904
D1 0 N009 BZX84C6V2L
R2 VCC N001 0.47
R3 N008 N010 {R_SET}
R7 VCC VT 145
Q5 N004 DB PB 0 2N3906
Q1 0 0 N004 0 TIP42C
V1 VCC 0 {VCC}
R4 N007 0 4.7k
S1 N005 PC V_SW 0 LDSW
V2 V_SW 0 PULSE(0 1 50n 1n 1n 300n 20000n 10)
D2 PC PB BAT54SHY
Q6 N003 N003 DB 0 2N3904
Q3 DB N006 N007 0 2N3904
L2 N001 PE 4.7n
R1 VCC N006 4.7k
L1 N005 N008 {L_SET}
R13 VT N002 145
Q7 N003 N003 N002 0 2N3906
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 0.5u
.param R_SET 3.25k
.lib ../../spice_models/tip42c.bjt
.param VCC=20
.param beta=3468
.step param R_SET 15 30 2
.model LDSW SW(Ron=1m Roff=1Meg Vt=.5 Vh=-.4)
.temp 25
.step param L_SET list 2u 3u 4u
.lib ../../spice_models/tip41c.bjt
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 4220 1216
WIRE -528 -800 -704 -800
WIRE -368 -800 -528 -800
WIRE -32 -800 -368 -800
WIRE 688 -800 -32 -800
WIRE 688 -752 688 -800
WIRE -32 -688 -32 -800
WIRE -32 -688 -224 -688
WIRE 688 -656 688 -672
WIRE -224 -624 -224 -688
WIRE -32 -624 -32 -688
WIRE 688 -544 688 -576
WIRE -224 -496 -224 -544
WIRE -80 -496 -224 -496
WIRE -32 -496 -32 -544
WIRE -32 -496 -80 -496
WIRE 688 -480 688 -544
WIRE -32 -432 -32 -496
WIRE 624 -432 400 -432
WIRE 688 -336 688 -384
WIRE -32 -304 -32 -352
WIRE 400 -272 400 -432
WIRE 400 -272 208 -272
WIRE 576 -272 400 -272
WIRE 688 -272 688 -336
WIRE 688 -272 640 -272
WIRE -96 -256 -192 -256
WIRE -192 -176 -192 -256
WIRE -32 -176 -32 -208
WIRE -32 -176 -192 -176
WIRE -32 -144 -32 -176
WIRE -192 -96 -192 -176
WIRE -96 -96 -192 -96
WIRE 208 0 208 -272
WIRE 800 0 736 0
WIRE 912 0 800 0
WIRE 688 32 688 -272
WIRE 912 32 912 0
WIRE -368 48 -368 -800
WIRE -32 48 -32 -48
WIRE 0 48 -32 48
WIRE 144 48 0 48
WIRE 736 48 736 0
WIRE -704 80 -704 -800
WIRE 208 128 208 96
WIRE 736 144 736 96
WIRE 784 144 736 144
WIRE 912 144 912 112
WIRE 912 144 784 144
WIRE 320 176 272 176
WIRE 688 176 688 112
WIRE -368 192 -368 128
WIRE -160 192 -368 192
WIRE 784 192 784 144
WIRE -368 224 -368 192
WIRE -32 224 -32 48
WIRE -160 272 -160 192
WIRE -160 272 -304 272
WIRE -96 272 -160 272
WIRE 208 304 208 224
WIRE 320 304 320 176
WIRE 320 304 208 304
WIRE -32 336 -32 320
WIRE 688 336 688 256
WIRE -368 400 -368 320
WIRE 688 496 688 416
WIRE -704 592 -704 160
WIRE -432 592 -704 592
WIRE -368 592 -368 464
WIRE -368 592 -432 592
WIRE -32 592 -32 416
WIRE -32 592 -368 592
WIRE 208 592 208 304
WIRE 208 592 -32 592
WIRE 688 592 688 576
WIRE 688 592 208 592
WIRE -432 624 -432 592
RECTANGLE Normal 912 480 544 288 2
CIRCLE Normal -128 -528 -304 -640 2
SYMBOL zener -352 464 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D1
SYMATTR Value BZX84C6V2L
SYMBOL res -48 320 R0
SYMATTR InstName R4
SYMATTR Value 4.7k
SYMBOL res -384 32 R0
SYMATTR InstName R1
SYMATTR Value 4.7k
SYMBOL pnp -96 -208 M180
WINDOW 0 -25 28 Left 2
WINDOW 3 -86 72 Left 2
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL voltage 912 16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -190 -74 Left 2
SYMATTR Value PULSE(0 1 50n 1n 1n 300n 20000n 10)
SYMATTR InstName V2
SYMBOL schottky 640 -288 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D2
SYMATTR Value BAT54SHY
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 272 224 R180
SYMATTR InstName Q1
SYMATTR Value TIP42C
SYMBOL npn -304 224 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL pnp 624 -384 M180
SYMATTR InstName Q4
SYMATTR Value TIP42C
SYMBOL res 672 -768 R0
SYMATTR InstName R2
SYMATTR Value 0.47
SYMBOL npn -96 -144 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res -240 -640 R0
WINDOW 3 -440 -107 Left 2
SYMATTR Value {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
SYMATTR InstName RT
SYMBOL voltage -704 64 R0
SYMATTR InstName V1
SYMATTR Value {VCC}
SYMBOL ind 672 480 R0
SYMATTR InstName L3
SYMATTR Value {L_SET/2048}
SYMBOL pnp 144 96 M180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL res -48 -448 R0
SYMATTR InstName R13
SYMATTR Value 145
SYMBOL npn -96 224 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL ind 672 160 R0
SYMATTR InstName L1
SYMATTR Value {L_SET}
SYMBOL sw 688 128 R180
SYMATTR InstName S1
SYMATTR Value LDSW
SYMBOL res -48 -640 R0
SYMATTR InstName R7
SYMATTR Value 145
SYMBOL ind 672 -672 R0
SYMATTR InstName L2
SYMATTR Value 4.7n
SYMBOL res 672 320 R0
SYMATTR InstName R3
SYMATTR Value {R_SET}
FLAG -432 624 0
FLAG 688 -544 PE
FLAG 688 -336 PC
FLAG -80 -496 VT
FLAG -528 -800 VCC
FLAG 208 -272 PB
FLAG 0 48 DB
FLAG 784 192 0
FLAG 800 0 V_SW
TEXT -736 648 Left 2 !.tran 0.5u
TEXT -736 712 Left 2 !;.step temp 0 50 2
TEXT 792 376 Left 2 ;LOAD
TEXT -736 680 Left 2 ;.op
TEXT -728 840 Left 2 !.param R_SET 3.25k
TEXT -736 744 Left 2 !;.step param VCC 18 25 1
TEXT -736 776 Left 2 !.lib ../../spice_models/tip42c.bjt
TEXT -736 808 Left 2 !.param VCC=20
TEXT -728 880 Left 2 !;.step param R_SET 100 350 5
TEXT -752 -872 Left 2 !.param beta=3468
TEXT -736 -920 Left 2 !;.step param beta 3100 4000 100
TEXT -272 -920 Left 2 ;{300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
TEXT -80 -848 Left 2 !.step param R_SET 15 30 2
TEXT -736 -968 Left 2 !.model LDSW SW(Ron=1m Roff=1Meg Vt=.5 Vh=-.4)
TEXT -192 632 Left 2 !.temp 25
TEXT 296 -848 Left 2 !.step param L_SET list 2u 3u 4u
TEXT -304 776 Left 2 !.lib ../../spice_models/tip41c.bjt