* Z:\home\khalils\Downloads\files\data\raw_asc\LT1673.asc
* Generated by LTspice 26.0.1 for Windows.
R2 DISCHARGE 0 2k
R6 N005 N001 200
R7 N004 N002 200
R5 CHARGE 0 2k
R3 N002 N006 200
R4 N001 N003 200
R1 N002 N001 0.1
V1 N002 0 12
I1 0 N001 SINE(0 1 1)
XU1 N004 N005 OUTA N002 0 N003 N006 OUTB LT1673 ;pnba +INA)-INA)OUTA)V+)V-)+INB)-INB)OUTB
Q1 N003 OUTB CHARGE 0 2N2222
Q2 N004 OUTA DISCHARGE 0 2N2222
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
* Battery Current Monitor
.tran 1
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1673.asy)
.lib LT1673.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 1504 1540
WIRE -352 672 -512 672
WIRE 96 672 -352 672
WIRE 272 672 176 672
WIRE 544 672 272 672
WIRE 624 672 544 672
WIRE -512 688 -512 672
WIRE 624 704 624 672
WIRE 416 720 304 720
WIRE -112 736 -304 736
WIRE 416 736 416 720
WIRE -512 784 -512 768
WIRE -32 784 -48 784
WIRE 352 784 336 784
WIRE 624 800 624 784
WIRE -32 816 -32 784
WIRE -16 816 -32 816
WIRE -112 864 -112 832
WIRE -112 864 -144 864
WIRE 416 864 416 832
WIRE 432 864 416 864
WIRE -112 880 -112 864
WIRE 416 880 416 864
WIRE -32 928 -32 816
WIRE -16 928 -32 928
WIRE 272 928 272 672
WIRE 272 928 256 928
WIRE -112 976 -112 960
WIRE 416 976 416 960
WIRE -352 1024 -352 672
WIRE -272 1024 -352 1024
WIRE -16 1024 -192 1024
WIRE 336 1024 336 784
WIRE 336 1024 256 1024
WIRE 352 1024 336 1024
WIRE -304 1120 -304 736
WIRE -16 1120 -304 1120
WIRE 352 1120 256 1120
WIRE 544 1120 544 672
WIRE 544 1120 432 1120
WIRE -304 1168 -304 1120
WIRE -16 1216 -48 1216
WIRE 304 1216 304 720
WIRE 304 1216 256 1216
WIRE 352 1216 304 1216
WIRE 464 1216 432 1216
WIRE -304 1296 -304 1248
WIRE 544 1296 544 1120
WIRE 544 1296 -304 1296
WIRE -352 1328 -352 1024
WIRE 464 1328 464 1216
WIRE 464 1328 -352 1328
FLAG -112 976 0
FLAG -144 864 DISCHARGE
FLAG 416 976 0
FLAG 432 864 CHARGE
FLAG -48 1216 0
FLAG 624 800 0
FLAG -512 784 0
FLAG -16 816 OUTA
FLAG 352 1024 OUTB
SYMBOL res -96 864 M0
WINDOW 0 -42 33 Left 2
WINDOW 3 -41 76 Left 2
SYMATTR InstName R2
SYMATTR Value 2k
SYMBOL res -176 1008 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 200
SYMBOL res -320 1152 R0
SYMATTR InstName R7
SYMATTR Value 200
SYMBOL res 432 864 M0
WINDOW 0 -47 46 Left 2
WINDOW 3 -46 84 Left 2
SYMATTR InstName R5
SYMATTR Value 2k
SYMBOL res 448 1104 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 200
SYMBOL res 448 1200 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL res 192 656 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 0.1
SYMBOL voltage 624 688 R0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL current -512 768 M180
WINDOW 0 28 75 Left 2
WINDOW 3 12 2 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName I1
SYMATTR Value SINE(0 1 1)
SYMBOL LT1673 128 1120 R0
SYMATTR InstName U1
SYMBOL npn 352 736 R0
SYMATTR InstName Q1
SYMATTR Value 2N2222
SYMBOL npn -48 736 M0
SYMATTR InstName Q2
SYMATTR Value 2N2222
TEXT 152 608 Bottom 2 ;Battery Current Monitor
TEXT 88 1384 Left 2 !.tran 1