* Z:\home\khalils\Downloads\files\data\raw_asc\LT1674.asc
* Generated by LTspice 26.0.1 for Windows.
R2 DISCHARGE 0 2k
R4 N004 N001 200
R7 V+ N002 200
R3 CHARGE 0 2k
R5 V+ N005 200
R6 N001 N003 200
R1 V+ N001 0.1
V1 V+ 0 12
I1 0 N001 SINE(0 1 1)
XU2 N002 N004 OUTA V+ 0 N006 N007 N007 N006 N008 N008 N003 N005 OUTD LT1674 ;pnba +INA)-INA)OUTA)V+)V-)+INB)-INB)OUTB)+INC)-INC)OUTC)+IND)-IND)OUTD
R8 V+ N006 2k
R9 N006 0 2k
Q1 N003 OUTD CHARGE 0 2N2222
Q2 N002 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 XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1674.asy)
.lib LT1674.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 1504 1560
WIRE -352 672 -512 672
WIRE 96 672 -352 672
WIRE 624 672 176 672
WIRE 656 672 624 672
WIRE 688 672 656 672
WIRE -512 688 -512 672
WIRE -112 704 -304 704
WIRE 480 704 304 704
WIRE 688 704 688 672
WIRE 480 720 480 704
WIRE -32 752 -48 752
WIRE 416 768 368 768
WIRE -512 784 -512 768
WIRE 688 800 688 784
WIRE -112 848 -112 800
WIRE -112 848 -144 848
WIRE -32 848 -32 752
WIRE -16 848 -32 848
WIRE 368 848 368 768
WIRE 384 848 368 848
WIRE 480 848 480 816
WIRE 496 848 480 848
WIRE -112 880 -112 848
WIRE 480 880 480 848
WIRE -32 928 -32 848
WIRE -16 928 -32 928
WIRE 368 928 368 848
WIRE 368 928 256 928
WIRE -112 976 -112 960
WIRE 480 976 480 960
WIRE -352 1008 -352 672
WIRE -272 1008 -352 1008
WIRE -16 1008 -192 1008
WIRE 352 1008 256 1008
WIRE 624 1008 624 672
WIRE 624 1008 432 1008
WIRE -304 1088 -304 704
WIRE -16 1088 -304 1088
WIRE 304 1088 304 704
WIRE 304 1088 256 1088
WIRE 352 1088 304 1088
WIRE 464 1088 432 1088
WIRE -304 1168 -304 1088
WIRE -256 1168 -304 1168
WIRE -144 1168 -176 1168
WIRE -64 1168 -144 1168
WIRE -16 1168 -64 1168
WIRE 288 1168 256 1168
WIRE -144 1184 -144 1168
WIRE -16 1248 -32 1248
WIRE 304 1248 256 1248
WIRE -144 1280 -144 1264
WIRE -64 1280 -144 1280
WIRE -32 1280 -32 1248
WIRE -32 1280 -64 1280
WIRE -144 1296 -144 1280
WIRE -16 1328 -32 1328
WIRE 272 1328 256 1328
WIRE -144 1392 -144 1376
WIRE -32 1408 -32 1328
WIRE -16 1408 -32 1408
WIRE 272 1408 272 1328
WIRE 272 1408 256 1408
WIRE -64 1472 -64 1280
WIRE 304 1472 304 1248
WIRE 304 1472 -64 1472
WIRE -352 1504 -352 1008
WIRE 464 1504 464 1088
WIRE 464 1504 -352 1504
FLAG -112 976 0
FLAG -144 848 DISCHARGE
FLAG 480 976 0
FLAG 496 848 CHARGE
FLAG 288 1168 0
FLAG 688 800 0
FLAG -512 784 0
FLAG -16 848 OUTA
FLAG 384 848 OUTD
FLAG -144 1392 0
FLAG 656 672 V+
FLAG -64 1168 V+
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 992 R90
WINDOW 0 -1 46 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL res -160 1152 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 200
SYMBOL res 496 864 M0
WINDOW 0 -47 46 Left 2
WINDOW 3 -46 84 Left 2
SYMATTR InstName R3
SYMATTR Value 2k
SYMBOL res 448 992 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 200
SYMBOL res 448 1072 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
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 688 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 LT1674 128 1152 R0
SYMATTR InstName U2
SYMBOL res -128 1168 M0
WINDOW 0 -42 33 Left 2
WINDOW 3 -41 76 Left 2
SYMATTR InstName R8
SYMATTR Value 2k
SYMBOL res -128 1280 M0
WINDOW 0 -42 33 Left 2
WINDOW 3 -41 76 Left 2
SYMATTR InstName R9
SYMATTR Value 2k
SYMBOL npn 416 720 R0
SYMATTR InstName Q1
SYMATTR Value 2N2222
SYMBOL npn -48 704 M0
SYMATTR InstName Q2
SYMATTR Value 2N2222
TEXT 152 608 Bottom 2 ;Battery Current Monitor
TEXT 96 1544 Left 2 !.tran 1