* Z:\home\khalils\Downloads\files\data\raw_asc\LTC4090.asc
* Generated by LTspice 26.0.1 for Windows.
* NTC
* USB or Wall Power
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LTC4090.asy)
C2 N003 0 22
R7 OUT 0 100
R3 N012 N013 10K
R8 IN N006 10K
C1 OUT 0 4.7 Rser=5m
C3 N007 0 270p Rser=59K
M1 N003 N005 OUT OUT FDS4685
C5 N004 0 200p
V4 N001 0 PWL(7 0 +10u 12)
R5 0 N015 66.5K
R6 N011 0 2K
V2 IN 0 PWL(1m 0 +1u 5)
R2 N005 OUT 1K
D1 N014 N017 LXHL-BW02
L1 N002 N003 6.8
R4 N013 0 10K
R1 N004 N001 499K
R10 OUT N014 1K
Cbat N010 0 2.5 ic=2.78 Rser=200m
XU1 MP_01 NC_02 N016 N007 N013 N012 N005 N017 N015 N008 N010 IN OUT N011 N006 NC_03 N009 N003 MP_04 N002 N001 N004 0 LTC4090 L1=6.8uH TerminationCycles=400 ;pnba )PG)Rt)Vc)NTC)Vntc)_HVPR)_CHRG)PROG)Gate)BAT)IN)OUT)CLPROG)HPWR)SUSP)Timer)HVout))SW)HVin)HVen)GND
R9 N016 0 40.2K
C4 N009 0 0.1
M2 N010 N008 OUT OUT FDS4685
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 11
.lib LTC4090.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1432 904
WIRE -592 -352 -896 -352
WIRE -272 -352 -592 -352
WIRE 224 -352 176 -352
WIRE 400 -352 304 -352
WIRE 496 -352 400 -352
WIRE -896 -336 -896 -352
WIRE 496 -336 496 -352
WIRE -592 -272 -592 -352
WIRE -576 -272 -592 -272
WIRE -480 -272 -496 -272
WIRE -272 -272 -480 -272
WIRE -480 -256 -480 -272
WIRE 496 -256 496 -272
WIRE -896 -240 -896 -256
WIRE 400 -240 400 -352
WIRE 400 -240 176 -240
WIRE 400 -224 400 -240
WIRE -272 -192 -400 -192
WIRE -480 -176 -480 -192
WIRE 256 -144 176 -144
WIRE 352 -144 256 -144
WIRE 256 -128 256 -144
WIRE -400 -112 -400 -192
WIRE -400 -112 -896 -112
WIRE -368 -112 -400 -112
WIRE -272 -112 -288 -112
WIRE -896 -96 -896 -112
WIRE -384 -32 -400 -32
WIRE -272 -32 -320 -32
WIRE 256 -32 256 -48
WIRE 256 -32 176 -32
WIRE 400 -32 400 -128
WIRE 400 -32 256 -32
WIRE 608 -32 400 -32
WIRE 656 -32 608 -32
WIRE 800 -32 656 -32
WIRE 656 -16 656 -32
WIRE 800 -16 800 -32
WIRE -896 0 -896 -16
WIRE 400 32 400 -32
WIRE 352 48 176 48
WIRE 656 80 656 48
WIRE 800 80 800 64
WIRE -384 144 -400 144
WIRE -272 144 -320 144
WIRE 400 144 400 128
WIRE 400 144 176 144
WIRE 400 160 400 144
WIRE 608 160 608 -32
WIRE -384 240 -416 240
WIRE -272 240 -304 240
WIRE 208 240 176 240
WIRE 320 240 288 240
WIRE 400 240 400 224
WIRE 608 288 608 240
WIRE -384 320 -416 320
WIRE -272 320 -304 320
WIRE 320 320 320 240
WIRE 320 320 176 320
WIRE 352 320 320 320
WIRE 448 320 432 320
WIRE -384 400 -416 400
WIRE -272 400 -304 400
WIRE 608 400 608 352
WIRE 608 400 176 400
WIRE 208 480 176 480
SYMBOL LTC4090 -48 64 R0
SYMATTR InstName U1
SYMBOL voltage -896 -352 R0
SYMATTR InstName V4
SYMATTR Value PWL(7 0 +10u 12)
SYMBOL res 336 336 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 240 -144 R0
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL pmos 352 -224 R0
WINDOW 0 56 6 Left 2
WINDOW 3 56 100 Left 2
SYMATTR InstName M1
SYMATTR Value FDS4685
SYMBOL cap -320 -48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
WINDOW 39 82 28 VBottom 2
SYMATTR InstName C3
SYMATTR Value 270p
SYMATTR SpiceLine Rser=59K
SYMBOL cap 384 160 R0
WINDOW 3 41 35 Left 2
WINDOW 123 40 85 Left 2
WINDOW 39 22 59 Left 2
SYMATTR Value 2.5
SYMATTR Value2 ic=2.78
SYMATTR SpiceLine Rser=200m
SYMATTR InstName Cbat
SYMBOL res 592 144 R0
SYMATTR InstName R10
SYMATTR Value 1K
SYMBOL ind 208 -336 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 6.8
SYMBOL cap -320 128 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 0.1
SYMBOL pmos 352 128 M180
WINDOW 0 58 84 Left 2
WINDOW 3 56 5 Left 2
SYMATTR InstName M2
SYMATTR Value FDS4685
SYMBOL res -288 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 2K
SYMBOL voltage -896 -112 R0
WINDOW 123 24 138 Left 2
WINDOW 39 24 117 Left 2
SYMATTR InstName V2
SYMATTR Value PWL(1m 0 +1u 5)
SYMBOL res -400 304 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 66.5K
SYMBOL res 192 256 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL cap -496 -256 R0
SYMATTR InstName C5
SYMATTR Value 200p
SYMBOL res -384 -128 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 10K
SYMBOL cap 480 -336 R0
SYMATTR InstName C2
SYMATTR Value 22
SYMBOL res -288 384 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 40.2K
SYMBOL res 784 -32 R0
SYMATTR InstName R7
SYMATTR Value 100
SYMBOL LED 592 288 R0
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -480 -288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 499K
SYMBOL cap 640 -16 R0
WINDOW 3 42 37 Left 2
WINDOW 39 20 68 Left 2
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=5m
SYMATTR InstName C1
FLAG 208 480 0
FLAG 656 80 0
FLAG -896 0 0
FLAG 400 240 0
FLAG -400 144 0
FLAG 448 320 0
FLAG -416 320 0
FLAG -416 240 0
FLAG 800 80 0
FLAG -896 -112 IN
FLAG 800 -32 OUT
FLAG 496 -256 0
FLAG -416 400 0
FLAG -400 -32 0
FLAG -896 -240 0
FLAG -480 -176 0
TEXT 536 512 Left 2 !.tran 11
TEXT 296 352 Left 2 ;NTC
TEXT -648 -112 Bottom 2 ;USB or Wall Power