* SPICE netlist
Q1 N009 Ctrl N016 0 NP
Q2 N008 Thres N015 0 NP
Q3 N008 N015 N021 0 NP
Q4 N009 N016 N021 0 NP
Q5 Disc N025 0 0 NP
Q6 N013 N023 0 0 NP
Q7 N008 N008 N004 0 PN
Q8 N013 N008 N005 0 PN
Q9 0 N009 N005 0 PN
Q10 N009 N009 N006 0 PN
Q11 N014 N002 N007 0 PN
R1 Vcc N004 4.7K tol=1 pwr=0.1
R2 Vcc N005 830 tol=1 pwr=0.1
R3 Vcc N006 4.7K tol=1 pwr=0.1
R4 Vcc N007 1K tol=1 pwr=0.1
R5 Vcc Ctrl 5K tol=1 pwr=0.1
R6 Vcc N001 6.8K tol=1 pwr=0.1
Q13 0 Trig N019 0 PN
Q14 N023 N019 N014 0 PN
Q15 N024 N020 N014 0 PN
Q16 N024 N022 N020 0 PN
R7 N023 0 100K tol=1 pwr=0.1
R8 N024 0 100K tol=1 pwr=0.1
R9 N022 Ctrl 5K tol=1 pwr=0.1
R10 N022 0 5K tol=1 pwr=0.1
R11 N021 0 10K tol=1 pwr=0.1
Q17 N025 Rst N010 0 PN
Q18 N017 N013 0 0 NP
R12 N010 N002 5K tol=1 pwr=0.1
Q19 N002 N002 Vcc 0 PN
Q20 N012 N002 Vcc 0 PN
Q21 N012 N017 0 0 NP
R13 N013 N012 4.7K tol=1 pwr=0.1
Q22 Vcc N001 N003 0 NP
Q23 N001 N012 N011 0 NP
Q24 Vcc N003 Out 0 NP
R14 Out N003 3.9K tol=1 pwr=0.1
Q25 Out N018 0 0 NP
R15 N018 N011 220 tol=1 pwr=0.1
R16 0 N011 4.7K tol=1 pwr=0.1
R17 N011 N025 10K tol=1 pwr=0.1
D2 Out N001 D
D1 N010 N017 D

* LTspice schematic (.asc)
Version 4
SHEET 1 992 656
WIRE -480 -104 -416 -104
WIRE -416 -104 -416 -152
WIRE -320 -232 -320 -200
WIRE -320 -200 -336 -200
WIRE -320 -200 -304 -200
WIRE -480 -200 -480 -232
WIRE -400 -152 -416 -152
WIRE -304 -40 -304 -104
WIRE -144 -200 -144 -232
WIRE -208 -152 -224 -152
WIRE -224 -152 -224 -104
WIRE -224 -152 -240 -152
WIRE -224 -104 -208 -104
WIRE -144 -328 -224 -328
WIRE -480 -312 -480 -328
WIRE -320 -312 -320 -328
WIRE -320 -328 -480 -328
WIRE -144 -312 -144 -328
WIRE -416 -56 -416 -72
WIRE -400 40 -416 40
WIRE -336 -8 -336 -72
WIRE -336 -72 -416 -72
WIRE -416 -72 -416 -104
WIRE -208 -56 -208 -104
WIRE -208 -104 -144 -104
WIRE -208 40 -224 40
WIRE -288 88 -304 88
WIRE -288 -8 -288 -24
WIRE -288 -24 -224 -24
WIRE -224 -24 -224 -56
WIRE -224 -56 -208 -56
WIRE -96 -200 -96 -232
WIRE -96 -312 -96 -328
WIRE -96 -328 -144 -328
WIRE -144 -8 -16 -8
WIRE -16 -8 -16 -200
WIRE -176 72 -192 72
WIRE -112 24 -96 24
WIRE -96 -104 -96 24
WIRE -96 24 -80 24
WIRE -16 72 0 72
WIRE 0 168 -64 168
WIRE -80 168 -80 120
WIRE -112 184 -112 152
WIRE -64 184 -64 168
WIRE -64 168 -80 168
WIRE -192 168 -192 280
WIRE -112 264 -112 280
WIRE -112 280 -64 280
WIRE -64 280 -64 264
WIRE -112 280 -192 280
WIRE -192 280 -192 312
WIRE 0 24 0 -8
WIRE 0 -8 -16 -8
WIRE 80 24 80 120
WIRE 80 120 64 120
WIRE 80 152 80 120
WIRE 80 232 80 280
WIRE 80 280 -64 280
WIRE -16 -312 -16 -328
WIRE -16 -328 -96 -328
WIRE -304 184 -304 88
WIRE -304 88 -336 88
WIRE -304 264 -304 280
WIRE -304 280 -192 280
WIRE -384 216 -368 216
WIRE -368 216 -368 200
WIRE -448 264 -448 280
WIRE -448 280 -304 280
WIRE -112 152 -32 152
WIRE -112 152 -112 120
WIRE -32 152 -32 264
WIRE -32 264 128 264
WIRE 128 264 128 216
WIRE 192 264 192 280
WIRE 192 280 112 280
WIRE 112 152 112 280
WIRE 112 280 80 280
WIRE 192 168 192 104
WIRE 192 104 176 104
WIRE -336 -104 -336 -88
WIRE -336 -88 192 -88
WIRE 192 -88 192 24
WIRE 112 -40 112 -72
WIRE 112 -72 -320 -72
WIRE -320 -72 -320 104
WIRE -320 104 -368 104
WIRE 112 56 112 40
WIRE 16 -120 16 -152
WIRE -32 -152 16 -152
WIRE 96 -120 112 -120
WIRE 112 -120 112 -72
WIRE 96 -168 96 -152
WIRE 96 -152 16 -152
WIRE 16 -216 16 -152
WIRE 16 -216 32 -216
WIRE 208 40 112 40
WIRE 112 40 112 24
WIRE 272 88 272 280
WIRE 272 280 192 280
WIRE 128 -152 96 -152
WIRE 160 24 192 24
WIRE 192 24 192 104
WIRE 160 -56 272 -56
WIRE 272 -56 272 -8
WIRE 96 -264 96 -328
WIRE 96 -328 -16 -328
WIRE 192 -104 208 -104
WIRE 272 -104 272 -56
WIRE 192 -200 192 -328
WIRE 192 -328 144 -328
WIRE 144 -312 144 -328
WIRE 144 -328 96 -328
WIRE 144 -232 272 -232
WIRE 368 -328 192 -328
WIRE 368 -280 368 -328
WIRE 464 -104 464 -152
WIRE 400 -216 384 -216
WIRE 384 -216 384 -184
WIRE 384 -184 368 -184
WIRE 384 -104 384 -184
WIRE 464 -264 464 -328
WIRE 464 -328 368 -328
WIRE 208 -168 208 -104
WIRE 208 -104 272 -104
WIRE 272 -216 272 -232
WIRE 272 -232 288 -232
WIRE 288 -216 288 -232
WIRE 288 -232 304 -232
WIRE 288 -152 464 -152
WIRE 464 -152 464 -168
WIRE 464 -8 464 -104
WIRE 384 -72 384 -88
WIRE 384 -88 320 -88
WIRE 288 -88 288 -120
WIRE 288 -120 272 -120
WIRE 400 40 384 40
WIRE 384 40 384 8
WIRE 320 152 320 104
WIRE 320 -88 288 -88
WIRE 320 232 320 280
WIRE 320 280 272 280
WIRE 320 280 464 280
WIRE 464 280 464 88
WIRE 400 184 400 104
WIRE 400 104 320 104
WIRE 320 104 320 -88
WIRE 400 264 400 296
WIRE 400 296 -368 296
WIRE -368 296 -368 216
WIRE -192 312 -144 312
WIRE -192 312 -192 328
WIRE -448 168 -464 168
WIRE -432 152 -448 152
WIRE -448 152 -448 120
WIRE -480 -8 -480 24
WIRE -256 120 -256 168
WIRE -224 -328 -224 -280
WIRE -224 -328 -320 -328
WIRE 464 -104 496 -104
WIRE -16 -200 -64 -200
WIRE -16 -200 -16 -232
WIRE -64 -200 -64 -232
WIRE -464 168 -464 184
FLAG -304 -40 0
FLAG -192 328 0
FLAG -144 312 Gnd
IOPIN 240 560 BiDir
FLAG -256 168 Trig
IOPIN 128 416 In
FLAG 496 -104 Out
IOPIN 880 144 Out
FLAG -448 120 Rst
IOPIN -64 368 In
FLAG -64 -232 Ctrl
IOPIN 320 16 In
FLAG -480 24 Thres
IOPIN -96 272 In
FLAG -464 184 Disc
IOPIN -80 432 Out
FLAG -224 -280 Vcc
IOPIN 160 -32 BiDir
SYMBOL npn2 -144 -56 M0
SYMATTR InstName Q1
SYMATTR Value NP
SYMBOL npn2 -480 -56 R0
SYMATTR InstName Q2
SYMATTR Value NP
SYMBOL npn2 -400 -8 R0
SYMATTR InstName Q3
SYMATTR Value NP
SYMBOL npn2 -224 -8 M0
SYMATTR InstName Q4
SYMATTR Value NP
SYMBOL npn2 -384 168 M0
SYMATTR InstName Q5
SYMATTR Value NP
SYMBOL npn2 128 168 R0
SYMATTR InstName Q6
SYMATTR Value NP
SYMBOL pnp2 -416 -104 R180
SYMATTR InstName Q7
SYMATTR Value PN
SYMBOL pnp2 -400 -104 M180
SYMATTR InstName Q8
SYMATTR Value PN
SYMBOL pnp2 -240 -104 R180
SYMATTR InstName Q9
SYMATTR Value PN
SYMBOL pnp2 -208 -104 M180
SYMATTR InstName Q10
SYMATTR Value PN
SYMBOL pnp2 -32 -104 R180
SYMATTR InstName Q11
SYMATTR Value PN
SYMBOL res -496 -328 R0
SYMATTR InstName R1
SYMATTR Value 4.7K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -336 -328 R0
SYMATTR InstName R2
SYMATTR Value 830
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -160 -328 R0
SYMATTR InstName R3
SYMATTR Value 4.7K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -112 -328 R0
SYMATTR InstName R4
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -32 -328 R0
SYMATTR InstName R5
SYMATTR Value 5K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 128 -328 R0
SYMATTR InstName R6
SYMATTR Value 6.8K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL pnp2 -256 168 M180
SYMATTR InstName Q13
SYMATTR Value PN
SYMBOL pnp2 -176 120 M180
SYMATTR InstName Q14
SYMATTR Value PN
SYMBOL pnp2 -16 120 R180
SYMATTR InstName Q15
SYMATTR Value PN
SYMBOL pnp2 64 168 R180
SYMATTR InstName Q16
SYMATTR Value PN
SYMBOL res -128 168 R0
SYMATTR InstName R7
SYMATTR Value 100K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -80 168 R0
SYMATTR InstName R8
SYMATTR Value 100K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 96 8 R90
SYMATTR InstName R9
SYMATTR Value 5K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 64 136 R0
SYMATTR InstName R10
SYMATTR Value 5K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -320 168 R0
SYMATTR InstName R11
SYMATTR Value 10K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL pnp2 -432 200 M180
SYMATTR InstName Q17
SYMATTR Value PN
SYMBOL npn2 176 56 M0
SYMATTR InstName Q18
SYMATTR Value NP
SYMBOL res 112 -136 R90
SYMATTR InstName R12
SYMATTR Value 5K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL pnp2 32 -168 M180
SYMATTR InstName Q19
SYMATTR Value PN
SYMBOL pnp2 128 -104 M180
SYMATTR InstName Q20
SYMATTR Value PN
SYMBOL npn2 208 -8 R0
SYMATTR InstName Q21
SYMATTR Value NP
SYMBOL res 176 40 R180
SYMATTR InstName R13
SYMATTR Value 4.7K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL npn2 304 -280 R0
SYMATTR InstName Q22
SYMATTR Value NP
SYMBOL npn2 208 -216 R0
SYMATTR InstName Q23
SYMATTR Value NP
SYMBOL npn2 400 -264 R0
SYMATTR InstName Q24
SYMATTR Value NP
SYMBOL res 480 -120 R90
SYMATTR InstName R14
SYMATTR Value 3.9K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL npn2 400 -8 R0
SYMATTR InstName Q25
SYMATTR Value NP
SYMBOL res 400 24 R180
SYMATTR InstName R15
SYMATTR Value 220
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 336 248 R180
SYMATTR InstName R16
SYMATTR Value 4.7K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 384 168 R0
SYMATTR InstName R17
SYMATTR Value 10K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL diode 304 -152 R180
SYMATTR InstName D2
SYMBOL diode 96 -40 R0
SYMATTR InstName D1