* SPICE netlist
D1 In Vcc Dd
D2 Com In 10V
C1 In Com 10p Rpar=1e6
A1 In Com 0 0 0 2 1 0 SCHMITT Vt=1.75 Vh=0.95 Trise=430n Tfall=5n Td=220n Tripdt=50n
D3 SD\ Vcc Dd
D4 Com SD\ 10V
C2 5V SD\ 10p Rpar=1e6
A2 SD\ Com 0 0 0 0 3 0 SCHMITT Vt=1.75 Vh=0.95 Td=130n Tripdt=30n
E1 5V COM 7 0 5
A3 Vb Vs 0 0 0 0 4 0 SCHMITT Vt=8.55 Vh=.35 Td=50n Tripdt=10n
A4 4 1 0 3 7 6 5 0 AND Tau=30n Tripdt=10n Ref=.95
S1 Ho Vb 5 0 SH
S2 Ho Vs 6 0 SL
C3 Vb Ho 42p
C4 Ho Vs 50p Rpar=100k
D5 Ho Vb Dd
D6 Vs Ho Dd
D7 Com Vb 625V
D8 Vs Vb 25V
D9 Com Vcc 25V
R1 Vcc Com 16k
A5 Vcc Com 0 0 0 0 7 0 SCHMITT Vt=8.55 Vh=.35 Td=50n Tripdt=10n
A6 7 3 2 0 0 9 8 0 AND Tau=30n Tripdt=10n Ref=.95
S3 Lo Vcc 8 0 SH
S4 Lo Com 9 0 SL
C5 Vcc Lo 42p
C6 Lo Com 50p Rpar=100k
D10 Lo Vcc Dd
D11 Com Lo Dd

* LTspice schematic (.asc)
Version 4
SHEET 1 1344 1296
WIRE -672 -616 -672 -648
WIRE -672 648 -672 616
WIRE -640 -648 -672 -648
WIRE -640 648 -672 648
WIRE -496 -456 -528 -456
WIRE -496 -424 -496 -456
WIRE -496 -328 -496 -360
WIRE -496 -312 -544 -312
WIRE -496 -312 -496 -328
WIRE -496 -280 -496 -312
WIRE -496 -168 -528 -168
WIRE -496 -168 -496 -216
WIRE -496 280 -528 280
WIRE -496 312 -496 280
WIRE -496 408 -496 376
WIRE -496 424 -528 424
WIRE -496 424 -496 408
WIRE -496 456 -496 424
WIRE -496 568 -528 568
WIRE -496 568 -496 520
WIRE -416 -328 -496 -328
WIRE -416 -280 -416 -328
WIRE -416 -168 -496 -168
WIRE -416 -168 -416 -216
WIRE -416 312 -416 280
WIRE -416 408 -496 408
WIRE -416 408 -416 376
WIRE -400 280 -416 280
WIRE -336 -168 -416 -168
WIRE -336 -168 -336 -296
WIRE -336 568 -496 568
WIRE -336 568 -336 440
WIRE -288 -328 -416 -328
WIRE -288 -296 -336 -296
WIRE -288 408 -416 408
WIRE -288 440 -336 440
WIRE -192 -328 -224 -328
WIRE -192 -296 -224 -296
WIRE -192 408 -224 408
WIRE -112 104 -128 104
WIRE -112 120 -112 104
WIRE -112 216 -112 200
WIRE -64 200 -64 184
WIRE -16 -296 -192 -296
WIRE -16 424 -16 -296
WIRE 0 408 -192 408
WIRE 0 408 0 -296
WIRE 16 -344 16 -440
WIRE 16 136 -64 136
WIRE 16 136 16 -280
WIRE 16 296 16 136
WIRE 16 392 16 296
WIRE 48 -440 16 -440
WIRE 48 296 16 296
WIRE 80 -440 48 -440
WIRE 80 -344 16 -344
WIRE 80 -328 -192 -328
WIRE 80 -296 0 -296
WIRE 80 -280 16 -280
WIRE 80 296 48 296
WIRE 80 392 16 392
WIRE 80 408 0 408
WIRE 80 424 -16 424
WIRE 176 -424 144 -424
WIRE 176 -168 176 -424
WIRE 176 312 144 312
WIRE 176 568 176 312
WIRE 192 72 176 72
WIRE 208 -360 208 -408
WIRE 208 -328 144 -328
WIRE 208 -328 208 -360
WIRE 208 -296 144 -296
WIRE 208 -264 208 -296
WIRE 208 -216 208 -264
WIRE 208 376 208 328
WIRE 208 408 144 408
WIRE 208 408 208 376
WIRE 208 440 144 440
WIRE 208 472 208 440
WIRE 208 520 208 472
WIRE 240 -408 208 -408
WIRE 240 -312 240 -360
WIRE 240 -264 240 -312
WIRE 240 -216 208 -216
WIRE 240 328 208 328
WIRE 240 424 240 376
WIRE 240 472 240 424
WIRE 240 520 208 520
WIRE 256 -312 240 -312
WIRE 256 424 240 424
WIRE 288 -456 144 -456
WIRE 288 -424 288 -456
WIRE 288 -312 288 -344
WIRE 288 -280 288 -312
WIRE 288 -168 176 -168
WIRE 288 -168 288 -200
WIRE 288 280 144 280
WIRE 288 312 288 280
WIRE 288 424 288 392
WIRE 288 456 288 424
WIRE 288 568 176 568
WIRE 288 568 288 536
WIRE 368 -456 288 -456
WIRE 368 -408 368 -456
WIRE 368 -312 288 -312
WIRE 368 -312 368 -344
WIRE 368 -280 368 -312
WIRE 368 -168 288 -168
WIRE 368 -168 368 -216
WIRE 368 -72 368 -104
WIRE 368 200 368 -8
WIRE 368 280 288 280
WIRE 368 328 368 280
WIRE 368 424 288 424
WIRE 368 424 368 392
WIRE 368 456 368 424
WIRE 368 568 288 568
WIRE 368 568 368 520
WIRE 448 -456 368 -456
WIRE 448 -408 448 -456
WIRE 448 -312 368 -312
WIRE 448 -312 448 -344
WIRE 448 -280 448 -312
WIRE 448 -168 368 -168
WIRE 448 -168 448 -216
WIRE 448 -104 368 -104
WIRE 448 -72 448 -104
WIRE 448 24 448 -8
WIRE 448 72 272 72
WIRE 448 104 448 72
WIRE 448 200 368 200
WIRE 448 200 448 168
WIRE 448 280 368 280
WIRE 448 328 448 280
WIRE 448 424 368 424
WIRE 448 424 448 392
WIRE 448 456 448 424
WIRE 448 568 368 568
WIRE 448 568 448 520
WIRE 528 -456 448 -456
WIRE 528 -168 448 -168
WIRE 528 -104 448 -104
WIRE 528 24 448 24
WIRE 528 72 448 72
WIRE 528 200 448 200
WIRE 528 280 448 280
WIRE 528 568 448 568
WIRE 544 -312 448 -312
WIRE 544 424 448 424
WIRE 672 -648 640 -648
WIRE 672 -616 672 -648
WIRE 672 648 640 648
WIRE 672 648 672 616
FLAG 544 -312 Ho
IOPIN 720 -288 Out
FLAG -544 -312 In
IOPIN -368 -288 In
FLAG 528 -456 Vb
IOPIN 704 -432 In
FLAG 528 -168 Vs
IOPIN 704 -144 In
FLAG -528 -168 Com
IOPIN -352 -144 In
FLAG 528 200 Com
IOPIN 704 224 In
FLAG 528 280 Vcc
IOPIN 704 304 In
FLAG 528 568 Com
IOPIN 704 592 In
FLAG 544 424 Lo
IOPIN 720 448 Out
FLAG 256 -312 0
FLAG 48 -440 4
FLAG 208 -264 6
FLAG 208 376 8
FLAG -528 424 SD\
IOPIN -352 448 In
FLAG -528 568 Com
IOPIN -352 592 In
FLAG 528 72 Vcc
IOPIN 704 96 In
FLAG 528 -104 Vb
IOPIN 704 -80 In
FLAG 528 24 Vs
IOPIN 704 48 In
FLAG 48 296 7
FLAG 208 -360 5
FLAG -400 280 5V
FLAG -528 -456 Vcc
IOPIN -352 -432 In
FLAG -528 280 Vcc
IOPIN -352 304 In
FLAG -192 -296 2
FLAG -192 408 3
FLAG 176 72 Com
IOPIN 352 96 In
FLAG 208 472 9
FLAG -64 200 0
FLAG -128 104 5V
FLAG -112 216 COM
FLAG -192 -328 1
FLAG 256 424 0
SYMBOL diode -512 -360 M180
SYMATTR InstName D1
SYMATTR Value Dd
SYMBOL zener -512 -216 M180
SYMATTR InstName D2
SYMATTR Value 10V
SYMBOL cap -432 -280 R0
SYMATTR InstName C1
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL Digital\\diffschmitt -288 -376 R0
SYMATTR InstName A1
SYMATTR Value Vt=1.75 Vh=0.95
SYMATTR Value2 Trise=430n Tfall=5n
SYMATTR SpiceLine Td=220n Tripdt=50n
SYMBOL diode -512 376 M180
SYMATTR InstName D3
SYMATTR Value Dd
SYMBOL zener -512 520 M180
SYMATTR InstName D4
SYMATTR Value 10V
SYMBOL cap -432 312 R0
SYMATTR InstName C2
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL Digital\\diffschmitt -288 360 R0
SYMATTR InstName A2
SYMATTR Value Vt=1.75 Vh=0.95
SYMATTR Value2 Td=130n Tripdt=30n
SYMBOL e -112 104 M0
SYMATTR InstName E1
SYMATTR Value 5
SYMBOL Digital\\diffschmtbuf 144 -504 M0
SYMATTR InstName A3
SYMATTR Value Vt=8.55 Vh=.35
SYMATTR Value2 Td=50n Tripdt=10n
SYMBOL Digital\\and 112 -376 R0
SYMATTR InstName A4
SYMATTR Value Tau=30n
SYMATTR Value2 Tripdt=10n
SYMATTR SpiceLine Ref=.95
SYMBOL sw 288 -328 M180
SYMATTR InstName S1
SYMATTR Value SH
SYMBOL sw 288 -296 R0
SYMATTR InstName S2
SYMATTR Value SL
SYMBOL cap 352 -408 R0
SYMATTR InstName C3
SYMATTR Value 42p
SYMBOL cap 352 -280 R0
SYMATTR InstName C4
SYMATTR Value 50p
SYMATTR SpiceLine Rpar=100k
SYMBOL diode 432 -344 M180
SYMATTR InstName D5
SYMATTR Value Dd
SYMBOL diode 432 -216 M180
SYMATTR InstName D6
SYMATTR Value Dd
SYMBOL zener 352 -8 M180
SYMATTR InstName D7
SYMATTR Value 625V
SYMBOL zener 432 -8 M180
SYMATTR InstName D8
SYMATTR Value 25V
SYMBOL zener 432 168 M180
SYMATTR InstName D9
SYMATTR Value 25V
SYMBOL res 288 56 R90
SYMATTR InstName R1
SYMATTR Value 16k
SYMBOL Digital\\diffschmtbuf 144 232 M0
SYMATTR InstName A5
SYMATTR Value Vt=8.55 Vh=.35
SYMATTR Value2 Td=50n Tripdt=10n
SYMBOL Digital\\and 112 360 R0
SYMATTR InstName A6
SYMATTR Value Tau=30n
SYMATTR Value2 Tripdt=10n
SYMATTR SpiceLine Ref=.95
SYMBOL sw 288 408 M180
SYMATTR InstName S3
SYMATTR Value SH
SYMBOL sw 288 440 R0
SYMATTR InstName S4
SYMATTR Value SL
SYMBOL cap 352 328 R0
SYMATTR InstName C5
SYMATTR Value 42p
SYMBOL cap 352 456 R0
SYMATTR InstName C6
SYMATTR Value 50p
SYMATTR SpiceLine Rpar=100k
SYMBOL diode 432 392 M180
SYMATTR InstName D10
SYMATTR Value Dd
SYMBOL diode 432 520 M180
SYMATTR InstName D11
SYMATTR Value Dd