* Z:\home\khalils\Downloads\files\data\raw_asc\1af1d88b7119_latched_level_trigger.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
D4 N003 P001 BAT54
XU1 Vref N002 28V 0 Vout 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
V1 28V 0 28
D3 P001 N004 BAT54
V3 Vin N001 PULSE(0 5 1ms 1ns 0 2ms 10ms 1)
D5 N002 N003 BAT54
V2 N001 0 SINE(0 5 1k 1ms 0 0 2)
V4 NC_01 NC_02 PULSE(28 0 0 1ns 0 10ms 100ms)
D1 Vref Vout BAT54
D2 N004 0 BAT54
R4 N002 Vin 100k
C1 N002 0 10n
R2 28V Vref 27k
R3 Vref 0 500
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 0 5ms 0 0.1u startup uic
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 1164 724
WIRE 112 -384 16 -384
WIRE 16 -336 16 -384
WIRE -208 -224 -224 -224
WIRE -192 -224 -208 -224
WIRE -400 -192 -416 -192
WIRE -384 -192 -400 -192
WIRE -208 -160 -208 -224
WIRE 16 -144 16 -256
WIRE -400 -128 -400 -192
WIRE -208 -64 -208 -80
WIRE -112 -64 -208 -64
WIRE -208 -48 -208 -64
WIRE -400 -16 -400 -48
WIRE 16 0 16 -64
WIRE 272 80 192 80
WIRE 496 80 336 80
WIRE 192 176 192 80
WIRE 192 176 64 176
WIRE 192 240 192 176
WIRE 272 240 192 240
WIRE 496 256 496 80
WIRE 496 256 336 256
WIRE 544 256 496 256
WIRE -48 272 -64 272
WIRE 64 272 32 272
WIRE 176 272 64 272
WIRE 272 272 176 272
WIRE 64 336 64 272
WIRE 64 432 64 400
WIRE 176 464 176 272
WIRE 64 592 64 560
WIRE 64 688 64 656
WIRE 176 688 176 528
WIRE 176 688 64 688
WIRE 64 704 64 688
IOPIN 64 176 In
IOPIN -64 272 In
IOPIN 544 256 Out
IOPIN 112 -384 Out
IOPIN -112 -64 Out
RECTANGLE Normal 992 -144 528 -352 2
SYMBOL diode 48 336 R0
SYMATTR InstName D5
SYMATTR Value BAT54
SYMBOL diode 272 96 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value BAT54
SYMBOL cap 160 464 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL diode 48 592 R0
SYMATTR InstName D2
SYMATTR Value BAT54
SYMBOL diode 48 432 R0
SYMATTR InstName D4
SYMATTR Value BAT54
SYMBOL voltage -544 112 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value PULSE(28 0 0 1ns 0 10ms 100ms)
SYMBOL res -224 -64 R0
SYMATTR InstName R3
SYMATTR Value 500
SYMBOL diode 48 496 R0
SYMATTR InstName D3
SYMATTR Value BAT54
SYMBOL voltage 16 -160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value SINE(0 5 1k 1ms 0 0 2)
SYMBOL voltage -400 -144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 28
SYMBOL res 48 256 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 100k
SYMBOL voltage 16 -352 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value PULSE(0 5 1ms 1ns 0 2ms 10ms 1)
SYMBOL res -224 -176 R0
SYMATTR InstName R2
SYMATTR Value 27k
SYMBOL OpAmps\\UniversalOpAmp2 304 256 M180
SYMATTR InstName U1
FLAG 304 224 0
FLAG -400 -16 0
FLAG -400 -192 28V
FLAG 304 288 28V
FLAG 64 176 Vref
FLAG -64 272 Vin
FLAG 544 256 Vout
FLAG 16 0 0
FLAG 112 -384 Vin
FLAG -112 -64 Vref
FLAG -208 -224 28V
FLAG -208 32 0
FLAG 64 704 0
TEXT 544 -328 Left 2 !.tran 0 5ms 0 0.1u startup uic