* Z:\tmp\asc_dec_bjh7r6w2\0d6bbf677ed1_CCCV_Battery_Charger_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
Ra N012 N011 3.9k
Rb N011 0 1k
XU3 N017 N015 DAD_5V 0 N016 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R2 N023 0 2.2k
XU2 N007 N004 N003 0 N005 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R16 N019 N018 10k
Q4 N006 N002 N001 0 PNP
R7 0 N007 1k
R11 N014 N017 1k
R1 N018 N023 1k
V2 VRef_3_9 N009 3.9
.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 XU3, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 4020 1620
WIRE 320 -32 -80 -32
WIRE 320 64 320 -32
WIRE 128 112 -16 112
WIRE 256 112 128 112
WIRE 2368 160 2368 -16
WIRE 2336 176 1824 176
WIRE 128 192 128 112
WIRE 128 192 -80 192
WIRE 2608 192 2400 192
WIRE 320 208 320 160
WIRE 752 208 320 208
WIRE 2336 208 2240 208
WIRE -928 240 -928 176
WIRE -736 240 -736 176
WIRE 1568 272 1568 208
WIRE 2368 272 2368 224
WIRE 2064 336 2064 -16
WIRE 2112 336 2064 336
WIRE 2240 336 2240 208
WIRE 2240 336 2192 336
WIRE -928 352 -928 320
WIRE -736 352 -736 320
WIRE -736 352 -928 352
WIRE -528 352 -736 352
WIRE 2240 368 2240 336
WIRE 1264 448 1264 -16
WIRE 1280 448 1264 448
WIRE 1424 448 1424 192
WIRE 1424 448 1360 448
WIRE 1504 448 1424 448
WIRE 1824 448 1584 448
WIRE 2240 480 2240 448
WIRE 1424 496 1424 448
WIRE 1216 560 752 560
WIRE 1216 720 1216 560
WIRE 1664 896 1424 896
WIRE 2112 896 2112 736
WIRE 2112 896 1920 896
WIRE 2240 944 2240 896
WIRE 2112 960 2112 896
WIRE 2208 960 2112 960
WIRE 2352 976 2352 736
WIRE 2352 976 2272 976
WIRE 2640 976 2352 976
WIRE 2208 992 2112 992
WIRE 96 1008 48 1008
WIRE 128 1008 96 1008
WIRE 240 1008 240 672
WIRE 240 1008 208 1008
WIRE 320 1008 240 1008
WIRE 544 1008 416 1008
WIRE 1664 1056 1840 896
WIRE 1664 1056 1520 1056
WIRE 1840 1056 1664 896
WIRE 2112 1056 2112 992
WIRE 2112 1056 1920 1056
WIRE 2240 1072 2240 1008
WIRE 2432 1072 2400 1072
WIRE 96 1184 96 1008
WIRE 368 1184 368 1072
WIRE 2112 1200 2112 1056
WIRE -80 1296 -80 1104
WIRE 96 1296 96 1264
WIRE 96 1296 -80 1296
WIRE 96 1328 96 1296
WIRE 96 1440 96 1408
SYMBOL res 1600 432 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Ra
SYMATTR Value 3.9k
SYMBOL res 1408 480 R0
SYMATTR InstName Rb
SYMATTR Value 1k
SYMBOL OpAmps\\UniversalOpamp2 2240 976 R0
SYMATTR InstName U3
SYMBOL res 80 1312 R0
SYMATTR InstName R2
SYMATTR Value 2.2k
SYMBOL OpAmps\\UniversalOpamp2 2368 192 R0
SYMATTR InstName U2
SYMBOL res 224 992 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R16
SYMATTR Value 10k
SYMBOL pnp 256 160 M180
SYMATTR InstName Q4
SYMBOL res 2224 464 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R7
SYMATTR Value 1k
SYMBOL res 1824 1072 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL res 80 1168 R0
SYMATTR InstName R1
SYMATTR Value 1k
SYMBOL voltage -928 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 3.9
FLAG 1568 272 0
FLAG 1424 576 0
FLAG 2368 272 0
FLAG 2240 480 0
FLAG -736 176 VRef_4_15
FLAG -928 176 VRef_3_9
FLAG 2400 1072 DAD_5V
FLAG 96 1440 0
FLAG 2240 1072 0
FLAG 2240 896 DAD_5V