* Z:\tmp\asc_dec_bjh7r6w2\0f372a54eaf8_Current_Sense_4_examples_dec0.asc
* Generated by LTspice 26.0.1 for Windows.
Q1 N012 N013 N011 0 2N3906
XU4 N008 N007 NC_01 NC_02 C3 NC_03 LT1218 ;pnba In+)In-)V+)V-)OUT)SHDN
I3 N006 0 PWL(0 0 100m 1) load
R29 N010 0 1Meg
R19 0 N007 10K
R2 N005 VB 10K
R20 N006 0 1Meg
R25 N010 N009 .1
R24 N006 N008 20Meg
R30 N011 N009 100
R23 N008 0 100K
R9 0 N001 10K
XU3 N010 N011 NC_04 NC_05 N014 NC_06 LT1218 ;pnba In+)In-)V+)V-)OUT)SHDN
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
* Library below included based on ModelFile attribute of instance XU4, XU3 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1218.asy)
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1204 2100
WIRE 128 112 128 32
WIRE 448 112 128 112
WIRE -16 144 -16 32
WIRE 480 144 -16 144
WIRE -16 208 -16 144
WIRE 128 208 128 112
WIRE -16 320 -16 288
WIRE 128 320 128 288
WIRE -32 480 -112 480
WIRE 0 480 -32 480
WIRE 112 480 80 480
WIRE 832 480 112 480
WIRE -32 528 -32 480
WIRE 112 528 112 480
WIRE 112 656 112 608
WIRE 432 656 112 656
WIRE -32 720 -32 608
WIRE 288 720 -32 720
WIRE -32 784 -32 720
WIRE 112 784 112 656
WIRE 112 896 112 864
WIRE 288 896 288 880
WIRE 112 1056 80 1056
WIRE 288 1056 112 1056
WIRE 832 1056 288 1056
WIRE 960 1056 832 1056
WIRE 288 1088 288 1056
WIRE 832 1088 832 1056
WIRE 960 1088 960 1056
WIRE 112 1104 112 1056
WIRE 496 1136 432 1136
WIRE 624 1136 576 1136
WIRE 832 1216 832 1168
WIRE 960 1216 960 1168
WIRE 112 1232 112 1184
WIRE 432 1232 432 1136
WIRE 432 1232 112 1232
WIRE 496 1248 496 1216
WIRE 432 1264 432 1232
WIRE 464 1264 432 1264
WIRE 624 1280 624 1136
WIRE 624 1280 528 1280
WIRE 656 1280 624 1280
WIRE -32 1296 -32 1184
WIRE 288 1296 288 1168
WIRE 288 1296 -32 1296
WIRE 464 1296 288 1296
WIRE -32 1360 -32 1296
WIRE 112 1360 112 1232
WIRE 496 1360 496 1312
WIRE 288 1376 288 1296
WIRE -32 1472 -32 1440
WIRE 112 1472 112 1440
WIRE 288 1472 288 1456
WIRE -32 1632 -112 1632
WIRE 0 1632 -32 1632
WIRE 176 1632 80 1632
WIRE 832 1632 176 1632
WIRE 960 1632 832 1632
WIRE 832 1664 832 1632
WIRE 960 1664 960 1632
WIRE -32 1744 -32 1632
WIRE 0 1744 -32 1744
WIRE 128 1744 80 1744
WIRE 240 1744 128 1744
WIRE 672 1744 336 1744
WIRE 832 1792 832 1744
WIRE 960 1792 960 1744
WIRE 288 1824 288 1808
WIRE 464 1824 288 1824
WIRE 576 1824 544 1824
WIRE 672 1904 672 1744
WIRE 800 1904 672 1904
WIRE 496 1936 496 1904
WIRE 672 1936 672 1904
WIRE 128 1952 128 1744
WIRE 464 1952 128 1952
WIRE 576 1968 576 1824
WIRE 576 1968 528 1968
WIRE 176 1984 176 1632
WIRE 464 1984 176 1984
WIRE 496 2048 496 2000
WIRE 672 2048 672 2016
SYMBOL pnp 336 1808 M270
WINDOW 0 70 54 VLeft 0
WINDOW 3 30 -8 VLeft 0
SYMATTR InstName Q1
SYMATTR Value 2N3906
SYMBOL Opamps\\LT1218 496 1280 R0
SYMATTR InstName U4
SYMBOL current 960 1088 R0
WINDOW 3 24 144 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 24 116 Left 0
SYMATTR Value PWL(0 0 100m 1)
SYMATTR SpiceLine load
SYMATTR InstName I3
SYMBOL res 816 1648 R0
SYMATTR InstName R29
SYMATTR Value 1meg
SYMBOL res 96 1456 M180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R19
SYMATTR Value 10K
SYMBOL res -16 624 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL res 816 1072 R0
SYMATTR InstName R20
SYMATTR Value 1meg
SYMBOL res 96 1616 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R25
SYMATTR Value .1
SYMBOL res 272 1072 R0
SYMATTR InstName R24
SYMATTR Value 20Meg
SYMBOL res 96 1728 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R30
SYMATTR Value 100
SYMBOL res 272 1360 R0
SYMATTR InstName R23
SYMATTR Value 100K
SYMBOL res 112 304 M180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R9
SYMATTR Value 10K
SYMBOL Opamps\\LT1218 496 1968 R0
SYMATTR InstName U3
FLAG 128 320 0
FLAG -16 320 0
FLAG 112 896 0
FLAG -112 480 VB
FLAG 288 896 0
FLAG 112 1472 0
FLAG 832 1216 0
FLAG -32 1472 0
FLAG 960 1216 0
FLAG 496 1216 VB
FLAG 288 1472 0
FLAG 656 1280 C3
FLAG 496 1360 0
FLAG 832 1792 0
FLAG 960 1792 0
FLAG 496 1904 VB
FLAG 496 2048 0
FLAG 672 2048 0