* Z:\tmp\asc_dec_bjh7r6w2\0d6bbf677ed1_CCCV_Battery_Charger_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
R15 N020 V_schmitt 10k
R4 N006 V_schmitt 4k
V1 VRef_4_15 0 4.15
R6 N021 V_termination 10k
R5 N009 N001 850
R12 0 N010 1k
R8 N012 0 .1
VDAD+5 DAD_5V 0 5
R14 N018 0 100
R9 N011 N010 100k
XU1 N007 V_battery N001 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
Q1 N015 N020 N016 0 NPN
Q2 N016 N021 N017 0 NPN
.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 XU1 (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 1568 -16 1264 -16
WIRE 2064 -16 1568 -16
WIRE -80 64 -80 -32
WIRE 128 112 -16 112
WIRE 1568 144 1568 -16
WIRE 1536 160 1424 160
WIRE 2368 160 2368 -16
WIRE 1824 176 1600 176
WIRE 2336 176 1824 176
WIRE -80 192 -80 160
WIRE 128 192 -80 192
WIRE 1536 192 1424 192
WIRE 2608 192 2400 192
WIRE 2336 208 2240 208
WIRE -80 224 -80 192
WIRE -928 240 -928 176
WIRE -736 240 -736 176
WIRE -528 240 -528 128
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 -528 320
WIRE -528 352 -736 352
WIRE -80 352 -80 304
WIRE 2240 368 2240 336
WIRE -528 384 -528 352
WIRE 1424 448 1424 192
WIRE 2240 480 2240 448
WIRE 1216 720 1216 560
WIRE 1328 720 1216 720
WIRE 1424 720 1328 720
WIRE 2192 736 2112 736
WIRE 2352 736 2272 736
WIRE 1664 896 1424 896
WIRE 2112 896 2112 736
WIRE 2112 896 1920 896
WIRE 1424 928 1424 896
WIRE 2240 944 2240 896
WIRE 2112 960 2112 896
WIRE 2672 960 2672 928
WIRE 2352 976 2352 736
WIRE 2640 976 2352 976
WIRE 2880 992 2704 992
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 864 1008 640 1008
WIRE 2640 1008 2576 1008
WIRE 2672 1040 2672 1024
WIRE 1424 1056 1424 1008
WIRE 1520 1056 1424 1056
WIRE 1664 1056 1840 896
WIRE 1664 1056 1520 1056
WIRE 1840 1056 1664 896
WIRE 2112 1056 1920 1056
WIRE 2432 1072 2400 1072
WIRE 2576 1072 2576 1008
WIRE 2576 1072 2512 1072
WIRE 1328 1088 1328 720
WIRE 1360 1088 1328 1088
WIRE 1424 1088 1360 1088
WIRE 2576 1104 2576 1072
WIRE 1424 1120 1424 1088
WIRE 368 1184 368 1072
WIRE 592 1184 592 1072
WIRE 2576 1232 2576 1184
WIRE 368 1312 368 1264
WIRE 592 1312 592 1264
SYMBOL res 352 1168 R0
SYMATTR InstName R15
SYMATTR Value 10k
SYMBOL res -96 208 R0
SYMATTR InstName R4
SYMATTR Value 4k
SYMBOL voltage -736 224 R0
SYMATTR InstName V1
SYMATTR Value 4.15
SYMBOL res 576 1168 R0
SYMATTR InstName R6
SYMATTR Value 10k
SYMBOL res 2208 320 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 850
SYMBOL res 1824 912 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R12
SYMATTR Value 1k
SYMBOL res 1408 912 R0
SYMATTR InstName R8
SYMATTR Value .1
SYMBOL voltage -528 224 R0
SYMATTR InstName DAD+5
SYMATTR Value 5
SYMBOL res 2560 1088 R0
SYMATTR InstName R14
SYMATTR Value 100
SYMBOL res 2288 720 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 100k
SYMBOL OpAmps\\UniversalOpamp2 1568 176 R0
SYMATTR InstName U1
SYMBOL npn 320 1072 R270
SYMATTR InstName Q1
SYMBOL npn 544 1072 R270
SYMATTR InstName Q2
FLAG -528 384 0
FLAG 1568 272 0
FLAG -528 128 DAD_5V
FLAG -80 352 V_schmitt
FLAG 1424 160 V_battery
FLAG 2368 272 0
FLAG 2240 480 0
FLAG 368 1312 V_schmitt
FLAG -736 176 VRef_4_15
FLAG -928 176 VRef_3_9
FLAG 2400 1072 DAD_5V
FLAG 2576 1232 0
FLAG 2672 1040 0
FLAG 2672 928 DAD_5V
FLAG 592 1312 V_termination
FLAG 2240 896 DAD_5V
FLAG 1360 1088 V_battery
FLAG 1424 816 0
FLAG 1520 1056 0