* Z:\home\khalils\Downloads\files\data\raw_asc\3c7d29743367_LT3845A-2.asc
* Generated by LTspice 26.0.1 for Windows.
* >> UC3845A <<\nLTspice A-Device Behavioral Model\nCopyright 2004 by analog@ieee.org
* NOTES:\nUC3842A: for A1 Vt=13 Vh=3.0 and bypass A3 (delete)\nUC3843A: for A1 Vt=8.2 Vh=0.3 and bypass A3 (delete)\nUC3844A: for A1 Vt=13 Vh=3.0; for A3 cycles=2\nUC3845A: for A1 Vt=8.2 Vh=0.3; for A3 cycles=2
A1 Vcc COM COM COM COM COM N004 COM SCHMITT Vt=8.2 Vh=0.3 Vhigh=2.5 Rout=1k
A2 Osc COM COM COM COM COM N005 COM ExtOsc Vtcap=1.75 Vhcap=.85 Icharge=1p Idischarge=8.3m duty=.96 tripdt=5n nobreak
A4 N007 2v5 COM COM COM COM Err COM OTA Vhigh=6 Vlow=0.7 Isrc=1m Isink=-6m Rclamp=1 g=5 Rout=25k Cout=5p eaclk=A2 powerup=!V(fault,Com)
A6 Ref COM COM COM COM fault COM COM SCHMITT Vt=4.8 Vh=.1 trise=200n
A5 N008 N010 COM COM COM COM N009 COM SCHMITT Vt=0.1 Vh=0.1
A7 N009 COM N006 COM N011 COM T1 COM DFLOP trise=200n tripdt=5n
A8 N006 COM COM COM N009 N011 COM COM AND
A3 N005 COM COM COM COM COM N006 COM Counter cycles=2
R1 Vcc N004 8e6
R5 N010 Ifb 75k
C10 Vcc COM 20p
S1 N003 Vcc N004 2v5 ref
C2 2v5 COM 1p Rpar=240
R2 2v5 N003 240
C8 N010 COM 1p
R3 Ref N003 280m
R4 N007 Vfb 165k
D4 N008 COM 1R
C4 Osc COM 5p
D3 Err N008 2R
C9 N008 COM 1p Rpar=1e6
C11 Out Com 20p
C5 Vfb COM 1p
D2 N003 Vcc V65
C3 COM Ref 10p
D1 COM Vcc 34V
C6 Err N007 1p Rpar=10G
C1 N004 COM 1p
I1 Vcc COM TBL(0 0 1 .2m)
S2 Out Vcc T1 fault Ho
S3 Com Out fault T1 Lo
C7 Ifb COM 5p
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model 1R d(Vfwd=1 Ron=1)
.model 2R d(Vfwd=1.3 Ron=2e6)
.model 34V d(Ron=.5 Vfwd=.5 Vrev=34 Rrev=22)
.model ref sw(Vh=-11m Ilimit=100m)
.model Ho sw(Vt= .48 Vh=-.25 Ron=2 Roff=100k Vser=1.2)
.model Lo sw(Vt=-.52 Vh=-.25 Ron=6 Roff=300k)
.model V65 d(Vfwd=0.65)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1688 948
WIRE -464 -544 -464 -576
WIRE -464 896 -464 864
WIRE -432 -576 -464 -576
WIRE -432 896 -464 896
WIRE -304 -256 -352 -256
WIRE -304 -224 -304 -256
WIRE -304 -112 -304 -144
WIRE -304 -48 -352 -48
WIRE -304 -32 -304 -48
WIRE -304 64 -304 32
WIRE -304 192 -352 192
WIRE -304 224 -304 192
WIRE -304 320 -304 288
WIRE -304 528 -368 528
WIRE -304 576 -304 528
WIRE -304 672 -304 640
WIRE -256 192 -304 192
WIRE -256 528 -304 528
WIRE -240 -48 -304 -48
WIRE -240 0 -240 -32
WIRE -208 -256 -304 -256
WIRE -208 -224 -208 -256
WIRE -208 -112 -208 -160
WIRE -128 528 -176 528
WIRE -128 576 -128 528
WIRE -128 672 -128 640
WIRE -112 -256 -208 -256
WIRE -112 -176 -112 -256
WIRE -112 192 -176 192
WIRE -112 240 -112 192
WIRE -96 -48 -176 -48
WIRE -96 0 -96 -32
WIRE -80 -176 -112 -176
WIRE -80 -128 -80 -160
WIRE -80 192 -112 192
WIRE -80 240 -112 240
WIRE -80 256 -128 256
WIRE -64 336 -64 304
WIRE 16 -176 -16 -176
WIRE 16 -128 16 -176
WIRE 16 112 -352 112
WIRE 16 192 -16 192
WIRE 16 192 16 112
WIRE 16 256 -16 256
WIRE 16 256 16 192
WIRE 16 416 16 256
WIRE 16 496 16 480
WIRE 16 544 16 496
WIRE 16 640 16 608
WIRE 80 -48 -32 -48
WIRE 80 320 80 -48
WIRE 80 496 16 496
WIRE 80 544 80 496
WIRE 80 640 80 608
WIRE 192 496 80 496
WIRE 192 528 -128 528
WIRE 192 576 192 544
WIRE 288 512 256 512
WIRE 288 736 288 512
WIRE 336 320 80 320
WIRE 336 560 336 320
WIRE 336 672 336 560
WIRE 352 672 336 672
WIRE 352 736 288 736
WIRE 368 768 368 736
WIRE 384 512 288 512
WIRE 384 560 336 560
WIRE 384 640 384 608
WIRE 464 720 416 720
WIRE 464 720 464 608
WIRE 544 -256 -112 -256
WIRE 544 -240 544 -256
WIRE 544 -128 16 -128
WIRE 544 -128 544 -160
WIRE 608 512 544 512
WIRE 608 512 608 480
WIRE 624 -256 544 -256
WIRE 624 -176 624 -256
WIRE 624 -128 544 -128
WIRE 624 -112 624 -128
WIRE 624 -16 624 -48
WIRE 624 336 592 336
WIRE 624 384 624 352
WIRE 656 -256 624 -256
WIRE 656 -176 624 -176
WIRE 672 -128 624 -128
WIRE 704 480 608 480
WIRE 768 -256 720 -256
WIRE 768 -176 736 -176
WIRE 768 -176 768 -256
WIRE 768 -128 720 -128
WIRE 768 -112 768 -128
WIRE 768 -16 768 -48
WIRE 800 480 704 480
WIRE 800 480 800 288
WIRE 832 336 688 336
WIRE 832 432 768 432
WIRE 832 432 832 336
WIRE 848 -256 768 -256
WIRE 848 -240 848 -256
WIRE 848 -128 768 -128
WIRE 848 -128 848 -160
WIRE 848 288 800 288
WIRE 848 336 832 336
WIRE 848 432 832 432
WIRE 848 480 800 480
WIRE 880 -256 848 -256
WIRE 880 -128 848 -128
WIRE 896 272 896 240
WIRE 896 384 896 352
WIRE 896 416 896 384
WIRE 896 528 896 496
WIRE 896 560 896 528
WIRE 992 -256 960 -256
WIRE 992 -240 992 -256
WIRE 992 -144 992 -176
WIRE 992 240 896 240
WIRE 992 272 992 240
WIRE 992 368 992 336
WIRE 992 384 896 384
WIRE 992 416 992 384
WIRE 992 528 896 528
WIRE 992 528 992 480
WIRE 1040 240 992 240
WIRE 1040 528 992 528
WIRE 1056 -256 992 -256
WIRE 1056 384 992 384
WIRE 1184 -576 1152 -576
WIRE 1184 -544 1184 -576
WIRE 1184 896 1152 896
WIRE 1184 896 1184 864
IOPIN 1056 384 In
IOPIN 1056 -256 In
IOPIN -352 -48 In
IOPIN -352 192 In
IOPIN -352 112 In
IOPIN -368 528 In
IOPIN -352 -256 In
IOPIN 1040 240 In
IOPIN 1040 528 In
IOPIN 704 480 Out
RECTANGLE Normal 1168 880 -448 -560
SYMBOL cap -144 576 R0
WINDOW 0 32 8 Left 0
WINDOW 3 32 56 Left 0
SYMATTR InstName C8
SYMATTR Value 1p
SYMBOL Digital\\dflop 464 464 R0
WINDOW 3 -82 -46 Left 0
SYMATTR Value trise=200n tripdt=5n
SYMATTR InstName A7
SYMBOL Digital\\schmtinv 624 272 R0
WINDOW 0 0 32 Left 0
WINDOW 3 32 88 Left 0
WINDOW 38 48 32 Left 0
WINDOW 123 32 120 Left 0
SYMATTR InstName A6
SYMATTR Value Vt=4.8 Vh=.1
SYMATTR Value2 trise=200n
SYMBOL res 528 -256 R0
SYMATTR InstName R1
SYMATTR Value 8e6
SYMBOL sw 896 368 M180
WINDOW 0 32 88 Left 0
WINDOW 3 32 32 Left 0
SYMATTR InstName S2
SYMATTR Value Ho
SYMBOL current -304 -224 R0
WINDOW 3 -40 -56 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 -40 0 Left 0
SYMATTR Value TBL(0 0 1 .2m)
SYMATTR InstName I1
SYMBOL cap 608 -112 R0
WINDOW 0 32 8 Left 0
WINDOW 3 32 56 Left 0
SYMATTR InstName C1
SYMATTR Value 1p
SYMBOL res 976 -272 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R3
SYMATTR Value 280m
SYMBOL cap -288 224 M0
WINDOW 0 32 8 Left 0
WINDOW 3 32 56 Left 0
SYMATTR InstName C5
SYMATTR Value 1p
SYMBOL cap 976 272 R0
WINDOW 3 32 56 Left 0
WINDOW 0 32 8 Left 0
SYMATTR Value 20p
SYMATTR InstName C10
SYMBOL sw 896 512 M180
WINDOW 0 32 88 Left 0
WINDOW 3 32 32 Left 0
SYMATTR InstName S3
SYMATTR Value Lo
SYMBOL cap 64 544 R0
WINDOW 0 32 8 Left 0
WINDOW 3 40 32 Left 0
WINDOW 39 32 56 Left 0
SYMATTR InstName C9
SYMATTR Value 1p
SYMATTR SpiceLine Rpar=1e6
SYMBOL Digital\\diffschmtbuf 192 448 R0
WINDOW 3 -36 -13 Left 0
SYMATTR Value Vt=0.1 Vh=0.1
SYMATTR InstName A5
SYMBOL cap -288 -32 M0
WINDOW 3 32 56 Left 0
WINDOW 0 32 8 Left 0
SYMATTR Value 5p
SYMATTR InstName C4
SYMBOL res -160 176 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R4
SYMATTR Value 165k
SYMBOL zener -224 -160 M180
WINDOW 0 32 64 Left 0
WINDOW 3 32 0 Left 0
SYMATTR InstName D1
SYMATTR Value 34V
SYMBOL cap -288 576 M0
WINDOW 0 32 8 Left 0
WINDOW 3 32 56 Left 0
SYMATTR InstName C7
SYMATTR Value 5p
SYMBOL Digital\\schmtbuf -80 -240 R0
WINDOW 0 0 32 Left 0
WINDOW 3 0 -40 Left 0
WINDOW 38 48 32 Left 0
WINDOW 123 0 0 Left 0
SYMATTR InstName A1
SYMATTR Value Vt=8.2 Vh=0.3
SYMATTR Value2 Vhigh=2.5 Rout=1k
SYMBOL cap -16 176 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
WINDOW 39 -40 32 VCenter 0
SYMATTR InstName C6
SYMATTR Value 1p
SYMATTR SpiceLine Rpar=10G
SYMBOL diode 32 544 M0
WINDOW 3 41 40 Left 0
WINDOW 0 41 8 Left 0
SYMATTR Value 1R
SYMATTR InstName D4
SYMBOL cap 976 416 R0
WINDOW 0 32 8 Left 0
WINDOW 3 32 64 Left 0
SYMATTR InstName C11
SYMATTR Value 20p
SYMBOL Digital\\and 384 640 R0
SYMATTR InstName A8
SYMBOL res -160 512 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R5
SYMATTR Value 75k
SYMBOL cap 784 -112 M0
WINDOW 3 32 56 Left 0
WINDOW 39 -16 32 Right 0
WINDOW 0 32 8 Left 0
SYMATTR Value 1p
SYMATTR SpiceLine Rpar=240
SYMATTR InstName C2
SYMBOL cap 976 -176 M180
WINDOW 0 32 56 Left 0
WINDOW 3 32 8 Left 0
SYMATTR InstName C3
SYMATTR Value 10p
SYMBOL res 864 -144 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R2
SYMATTR Value 240
SYMBOL Digital\\buf1 -96 -112 R0
WINDOW 38 48 32 Left 0
WINDOW 0 0 32 Left 0
WINDOW 3 0 0 Invisible 0
SYMATTR SpiceModel Counter
SYMATTR InstName A3
SYMATTR Value cycles=2
SYMBOL sw 752 -176 M270
WINDOW 0 40 88 VRight 0
WINDOW 3 40 32 VLeft 0
SYMATTR InstName S1
SYMATTR Value ref
SYMBOL diode 720 -272 R90
WINDOW 0 -8 56 VRight 0
WINDOW 3 -8 0 VLeft 0
SYMATTR InstName D2
SYMATTR Value V65
SYMBOL Digital\\buf1 -240 -112 R0
WINDOW 3 0 128 Left 0
WINDOW 38 48 32 Left 0
WINDOW 0 0 32 Left 0
WINDOW 123 0 160 Left 0
WINDOW 39 0 192 Left 0
SYMATTR Value Vtcap=1.75 Vhcap=.85
SYMATTR SpiceModel ExtOsc
SYMATTR InstName A2
SYMATTR Value2 Icharge=1p Idischarge=8.3m
SYMATTR SpiceLine duty=.96 tripdt=5n nobreak
SYMBOL diode 32 416 M0
WINDOW 3 40 56 Left 0
WINDOW 0 40 24 Left 0
SYMATTR Value 2R
SYMATTR InstName D3
SYMBOL Digital\\or -48 208 R0
WINDOW 0 -160 96 Left 0
WINDOW 38 -112 96 Left 0
WINDOW 3 48 144 Right 0
WINDOW 123 48 176 Right 0
WINDOW 39 48 208 Right 0
SYMATTR InstName A4
SYMATTR SpiceModel OTA
SYMATTR Value Vhigh=6 Vlow=0.7 Isrc=1m Isink=-6m
SYMATTR Value2 Rclamp=1 g=5 Rout=25k Cout=5p
SYMATTR SpiceLine eaclk=A2 powerup=!V(fault,Com)
FLAG 1056 384 Out
FLAG 992 -144 COM
FLAG 1056 -256 Ref
FLAG -352 -48 Osc
FLAG -128 672 COM
FLAG -352 192 Vfb
FLAG -352 112 Err
FLAG 16 640 COM
FLAG -368 528 Ifb
FLAG -304 672 COM
FLAG -304 320 COM
FLAG -304 64 COM
FLAG -128 256 2v5
FLAG -352 -256 Vcc
FLAG 768 -16 COM
FLAG 1040 240 Vcc
FLAG 1040 528 Com
FLAG 992 368 COM
FLAG 880 -128 2v5
FLAG 592 336 Ref
FLAG 80 640 COM
FLAG -208 -112 COM
FLAG 624 -16 COM
FLAG 768 432 fault
FLAG -304 -112 COM
FLAG 624 384 COM
FLAG -64 336 COM
FLAG 368 768 COM
FLAG -240 0 COM
FLAG -80 -128 COM
FLAG 896 560 COM
FLAG 192 576 COM
FLAG 384 640 COM
FLAG 704 480 T1
FLAG -96 0 COM
TEXT 624 624 Left 0 !.model 1R d(Vfwd=1 Ron=1)
TEXT 624 592 Left 0 !.model 2R d(Vfwd=1.3 Ron=2e6)
TEXT 112 48 Left 0 !.model 34V d(Ron=.5 Vfwd=.5 Vrev=34 Rrev=22)
TEXT 112 80 Left 0 !.model ref sw(Vh=-11m Ilimit=100m)
TEXT 112 176 Left 0 !.model Ho sw(Vt= .48 Vh=-.25 Ron=2 Roff=100k Vser=1.2)
TEXT 112 208 Left 0 !.model Lo sw(Vt=-.52 Vh=-.25 Ron=6 Roff=300k)
TEXT 112 16 Left 0 !.model V65 d(Vfwd=0.65)
TEXT 144 -528 Center 0 ;>> UC3845A <<\nLTspice A-Device Behavioral Model\nCopyright 2004 by analog@ieee.org
TEXT -424 -448 Left 0 ;NOTES:\nUC3842A: for A1 Vt=13  Vh=3.0 and bypass A3 (delete)\nUC3843A: for A1 Vt=8.2 Vh=0.3 and bypass A3 (delete)\nUC3844A: for A1 Vt=13  Vh=3.0; for A3 cycles=2\nUC3845A: for A1 Vt=8.2 Vh=0.3; for A3 cycles=2