* Z:\tmp\asc_dec_bjh7r6w2\16a0d2ed3b32_uc3842a_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
Bi N001 COM I = 11m*V(ok) + V(drv)*I(Vo) Rpar=27k
CIer Ierr 0 300n
Ce1 Err COM 30p
Bdrv 0 drv I = V(ok) & V(latch) & !V(hys,com) Rpar=1 tripdt=30n
Co o COM 30n
Cref 5 COM 10n
Cok ok 0 100n
Bosc Osc hys I = 8.3m*u(V(hys,com)+V(Osc,Com)-2.6) tripdt=300n
Be1 COM Err I = limit(10*V(er,Err),.8m,-6m)*V(ok)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1792 932
WIRE -16 -208 16 -208
WIRE -144 400 -144 352
WIRE -144 352 -192 352
WIRE -144 512 -144 464
WIRE 496 208 496 240
WIRE 688 240 688 208
WIRE 80 -512 176 -512
WIRE 80 -480 80 -512
WIRE 80 -400 80 -368
WIRE 272 -464 272 -512
WIRE 272 -368 272 -400
WIRE 176 -512 272 -512
WIRE 496 -112 496 -80
WIRE 688 -176 688 -224
WIRE 688 -80 688 -112
WIRE 496 -224 592 -224
WIRE 496 -224 496 -192
WIRE 496 352 592 352
WIRE 496 384 496 352
WIRE 496 464 496 496
WIRE 688 400 688 352
WIRE 688 496 688 464
WIRE 592 352 688 352
WIRE -48 -512 -48 -480
WIRE -48 -400 -48 -352
WIRE -224 -480 -224 -512
WIRE -224 -512 -48 -512
WIRE -224 -416 -224 -384
WIRE -224 -512 -288 -512
WIRE -272 352 -288 352
WIRE -272 -384 -224 -384
WIRE 752 352 736 352
WIRE -272 96 -304 96
WIRE -144 96 -192 96
WIRE -144 144 -144 96
WIRE -144 256 -144 208
WIRE -288 -64 -272 -64
WIRE 752 -512 720 -512
WIRE 400 -480 400 -512
WIRE 400 -400 400 -352
WIRE 592 -224 688 -224
WIRE -144 -176 -144 -208
WIRE -144 -208 -224 -208
WIRE -144 -96 -144 -48
WIRE 32 -64 32 -96
WIRE 32 -160 32 -208
WIRE 16 -208 32 -208
WIRE 32 -208 64 -208
WIRE -96 -208 -144 -208
WIRE 32 -64 112 -64
WIRE 848 608 848 576
WIRE 592 -512 496 -512
WIRE 592 -464 592 -512
WIRE 592 -400 592 -352
WIRE -224 -160 -224 -208
WIRE -224 -208 -304 -208
WIRE -224 -96 -224 -48
WIRE 640 -512 592 -512
WIRE 496 -512 400 -512
WIRE -224 -384 -224 -352
WIRE -96 96 -128 96
WIRE -16 96 0 96
WIRE -144 352 -112 352
WIRE -128 96 -144 96
WIRE -112 352 -80 352
SYMBOL bi -48 -480 R0
WINDOW 0 -48 16 Right 0
WINDOW 3 -304 -80 Left 0
WINDOW 123 -40 48 Right 0
SYMATTR InstName Bi
SYMATTR Value I = 11m*V(ok) + V(drv)*I(Vo)
SYMATTR Value2 Rpar=27k
SYMBOL cap 672 400 R0
WINDOW 0 32 0 Left 0
WINDOW 3 32 64 Left 0
SYMATTR InstName CIer
SYMATTR Value 300n
SYMBOL cap -208 -160 M0
SYMATTR InstName Ce1
SYMATTR Value 30p
SYMBOL bi 496 -112 M180
WINDOW 0 48 64 Left 0
WINDOW 3 304 -96 Right 0
WINDOW 123 48 32 Left 0
WINDOW 39 32 0 Left 0
SYMATTR InstName Bdrv
SYMATTR Value I = V(ok) & V(latch) & !V(hys,com)
SYMATTR Value2 Rpar=1
SYMATTR SpiceLine tripdt=30n
SYMBOL cap 576 -464 R0
WINDOW 0 32 0 Left 0
WINDOW 3 32 64 Left 0
SYMATTR InstName Co
SYMATTR Value 30n
SYMBOL cap -128 144 M0
WINDOW 0 32 0 Left 0
WINDOW 3 32 64 Left 0
SYMATTR InstName Cref
SYMATTR Value 10n
SYMBOL cap 256 -464 R0
WINDOW 0 32 0 Left 0
WINDOW 3 32 64 Left 0
SYMATTR InstName Cok
SYMATTR Value 100n
SYMBOL bi -272 352 R270
WINDOW 0 -34 40 VBottom 0
WINDOW 3 -192 -80 VRight 0
WINDOW 123 -160 -80 VRight 0
SYMATTR InstName Bosc
SYMATTR Value I = 8.3m*u(V(hys,com)+V(Osc,Com)-2.6)
SYMATTR Value2 tripdt=300n
SYMBOL bi -144 -96 R180
WINDOW 0 24 88 Left 0
WINDOW 3 208 176 Right 0
SYMATTR InstName Be1
SYMATTR Value I = limit(10*V(er,Err),.8m,-6m)*V(ok)
FLAG 16 -208 er
FLAG -112 352 hys
FLAG 496 240 0
FLAG 688 240 0
FLAG 176 -512 ok
FLAG 80 -368 0
FLAG 272 -368 0
FLAG 496 -80 0
FLAG 752 -512 Out
FLAG 688 -80 0
FLAG 592 352 Ierr
FLAG 496 496 0
FLAG 688 496 0
FLAG -304 96 Ref
FLAG -288 352 Osc
FLAG 752 352 Ifb
FLAG -128 96 5
FLAG -304 -208 Err
FLAG -288 -64 Vfb
FLAG 592 -224 drv
FLAG -144 512 COM
FLAG 496 -512 o
FLAG -224 -352 COM
FLAG 592 -352 COM
FLAG -224 -48 COM
FLAG -144 256 COM
FLAG -144 -48 COM
FLAG 400 -352 COM
FLAG 0 96 Vcc
FLAG -48 -352 COM