* SPICE netlist
D1 Hin Vcc Dd
D2 Vss Hin Dd
D3 Hout Hcc Dd
D4 Hss Hout Dd
D5 Hss Hcc 25V
C3 Hcc Hout 22p
C4 Hout Hss 22p Rpar=100k
S1 Hout Hcc Hdrv Hok SH
S2 Hout Hss 2 Hok SL
A1 Hin Vss 0 0 0 1 Hdrv 0 SCHMITT Trise=20n Tfall=20n Td=125n Vt=1.9 Vh=1 Tripdt=50n
C2 Hok 2 10p
R1 2 1 1.5k
A2 Hcc Hss 0 0 0 Hok 0 0 SCHMITT Trise=20n Tfall=20n Td=20n Vt=8.9 Vh=.35 Tripdt=50n
C1 Hin Vss 10p Rpar=1e6
D7 Com Hcc 625V
D6 Vss Vcc 25V
D8 Lin Vcc Dd
D9 Vss Lin Dd
A3 Lin Vss 0 0 0 3 Ldrv 0 SCHMITT Trise=20n Tfall=20n Td=125n Vt=1.9 Vh=1 Tripdt=50n
R2 4 3 1.5k
A4 Vcc Com 0 0 0 Lok 0 0 SCHMITT Trise=20n Tfall=20n Td=20n Vt=8.9 Vh=.35 Tripdt=50n
C5 Lin Vss 10p Rpar=1e6
S3 Lout Vcc Ldrv Lok SH
S4 Lout Com 4 Lok SL
C6 Lok 4 10p
D10 Lout Vcc Dd
D11 Com Lout Dd
D12 Com Vcc 25V
C7 Vcc Lout 22p
C8 Lout Com 22p Rpar=100k

* LTspice schematic (.asc)
Version 4
SHEET 1 1248 1280
WIRE -448 -256 -384 -256
WIRE 448 -256 304 -256
WIRE -624 -608 -624 -640
WIRE -624 -640 -592 -640
WIRE -624 608 -624 640
WIRE -624 640 -592 640
WIRE 592 640 624 640
WIRE 624 640 624 608
WIRE 592 -640 624 -640
WIRE 624 -640 624 -608
WIRE -304 -256 -304 -272
WIRE -304 -352 -304 -400
WIRE -448 -400 -304 -400
WIRE -304 -224 -304 -256
WIRE 304 -400 304 -352
WIRE 304 -288 304 -256
WIRE 304 -160 304 -112
WIRE 304 -112 384 -112
WIRE 384 -112 384 -160
WIRE 384 -224 384 -400
WIRE 384 -400 304 -400
WIRE 448 -400 384 -400
WIRE 448 -112 384 -112
WIRE 304 -224 304 -256
WIRE 304 -256 224 -256
WIRE -144 -352 48 -352
WIRE 224 -400 224 -352
WIRE 224 -288 224 -256
WIRE 144 -400 224 -400
WIRE 224 -160 224 -112
WIRE 144 -112 224 -112
WIRE 224 -256 144 -256
WIRE 224 -256 224 -224
WIRE -208 -240 -224 -240
WIRE -224 -240 -224 -112
WIRE 144 -400 144 -368
WIRE 144 -288 144 -256
WIRE 144 -144 144 -112
WIRE 144 -256 144 -224
WIRE 16 -256 48 -256
WIRE 16 -256 16 -240
WIRE 96 -256 96 -304
WIRE -16 -160 0 -160
WIRE 16 -160 16 -176
WIRE 96 -256 96 -208
WIRE 16 -160 96 -160
WIRE -80 -272 -112 -272
WIRE -112 -272 -112 -400
WIRE -112 -400 144 -400
WIRE -80 -240 -112 -240
WIRE -112 -240 -112 -112
WIRE -112 -112 144 -112
WIRE -16 -256 16 -256
WIRE -144 -272 -144 -352
WIRE -144 -240 -144 -160
WIRE -144 -160 -128 -160
WIRE 224 -400 304 -400
WIRE 224 -112 304 -112
WIRE -224 -112 -304 -112
WIRE -384 -112 -384 -160
WIRE -208 -272 -304 -272
WIRE -304 -272 -304 -288
WIRE -384 -224 -384 -256
WIRE -384 -256 -304 -256
WIRE -304 -160 -304 -112
WIRE -304 -112 -384 -112
WIRE 48 -256 96 -256
WIRE 48 -352 96 -352
WIRE -384 -112 -448 -112
WIRE 384 96 384 128
WIRE 384 128 448 128
WIRE 384 32 384 0
WIRE 384 0 448 0
WIRE -384 96 -384 128
WIRE -384 128 -448 128
WIRE -384 32 -384 0
WIRE -384 0 -448 0
WIRE -448 384 -384 384
WIRE -304 384 -304 368
WIRE -304 288 -304 240
WIRE -448 240 -304 240
WIRE -304 416 -304 384
WIRE -208 400 -224 400
WIRE -224 400 -224 528
WIRE -80 368 -112 368
WIRE -112 368 -112 240
WIRE -80 400 -112 400
WIRE -112 400 -112 528
WIRE -144 368 -144 288
WIRE -144 400 -144 480
WIRE -144 480 -128 480
WIRE -224 528 -304 528
WIRE -384 528 -384 480
WIRE -208 368 -304 368
WIRE -304 368 -304 352
WIRE -384 416 -384 384
WIRE -384 384 -304 384
WIRE -304 480 -304 528
WIRE -304 528 -384 528
WIRE -384 528 -448 528
WIRE 144 240 144 272
WIRE 144 352 144 384
WIRE 144 496 144 528
WIRE 16 384 48 384
WIRE 16 384 16 400
WIRE 96 384 96 336
WIRE -16 480 0 480
WIRE 16 480 16 464
WIRE 96 384 96 432
WIRE 16 480 96 480
WIRE -112 240 144 240
WIRE -112 528 144 528
WIRE -16 384 16 384
WIRE 48 384 96 384
WIRE 48 288 96 288
WIRE -144 288 48 288
WIRE 448 384 304 384
WIRE 304 240 304 288
WIRE 304 352 304 384
WIRE 304 480 304 528
WIRE 304 528 384 528
WIRE 384 528 384 480
WIRE 384 416 384 240
WIRE 384 240 304 240
WIRE 448 240 384 240
WIRE 448 528 384 528
WIRE 304 416 304 384
WIRE 304 384 224 384
WIRE 224 240 224 288
WIRE 224 352 224 384
WIRE 144 240 224 240
WIRE 224 480 224 528
WIRE 144 528 224 528
WIRE 224 384 144 384
WIRE 224 384 224 416
WIRE 224 240 304 240
WIRE 224 528 304 528
WIRE 144 384 144 416
WIRE -128 -160 -96 -160
WIRE 0 -160 16 -160
WIRE -128 480 -96 480
WIRE 0 480 16 480
FLAG 448 -256 Hout
IOPIN 672 -288 Out
FLAG -448 -256 Hin
IOPIN -224 -288 In
FLAG -448 -400 Vcc
IOPIN -224 -432 In
FLAG 448 -400 Hcc
IOPIN 672 -432 In
FLAG 448 -112 Hss
IOPIN 672 -144 In
FLAG 48 -352 Hdrv
FLAG 48 -256 Hok
FLAG 448 0 Hcc
IOPIN 672 -32 In
FLAG -448 -112 Vss
IOPIN -224 -144 In
FLAG 448 128 Com
IOPIN 672 96 In
FLAG -448 0 Vcc
IOPIN -224 -32 In
FLAG -448 128 Vss
IOPIN -224 96 In
FLAG -448 384 Lin
IOPIN -224 352 In
FLAG -448 240 Vcc
IOPIN -224 208 In
FLAG -448 528 Vss
IOPIN -224 496 In
FLAG 48 288 Ldrv
FLAG 48 384 Lok
FLAG 448 240 Vcc
IOPIN 672 208 In
FLAG 448 528 Com
IOPIN 672 496 In
FLAG 448 384 Lout
IOPIN 672 352 Out
FLAG -128 -160 1
FLAG 0 -160 2
FLAG -128 480 3
FLAG 0 480 4
SYMBOL diode -320 -288 M180
SYMATTR InstName D1
SYMATTR Value Dd
SYMBOL diode -320 -160 M180
SYMATTR InstName D2
SYMATTR Value Dd
SYMBOL diode 288 -288 M180
SYMATTR InstName D3
SYMATTR Value Dd
SYMBOL diode 288 -160 M180
SYMATTR InstName D4
SYMATTR Value Dd
SYMBOL zener 368 -160 M180
SYMATTR InstName D5
SYMATTR Value 25V
SYMBOL cap 208 -352 R0
SYMATTR InstName C3
SYMATTR Value 22p
SYMBOL cap 208 -224 R0
SYMATTR InstName C4
SYMATTR Value 22p
SYMATTR SpiceLine Rpar=100k
SYMBOL sw 144 -272 M180
SYMATTR InstName S1
SYMATTR Value SH
SYMBOL sw 144 -240 R0
SYMATTR InstName S2
SYMATTR Value SL
SYMBOL Digital\\diffschmitt -208 -320 R0
SYMATTR InstName A1
SYMATTR Value Trise=20n Tfall=20n Td=125n
SYMATTR Value2 Vt=1.9 Vh=1 Tripdt=50n
SYMBOL cap 0 -240 R0
SYMATTR Value 10p
SYMATTR InstName C2
SYMBOL res 0 -176 R90
SYMATTR InstName R1
SYMATTR Value 1.5k
SYMBOL Digital\\diffschmtinv -80 -320 R0
SYMATTR InstName A2
SYMATTR Value Trise=20n Tfall=20n Td=20n
SYMATTR Value2 Vt=8.9 Vh=.35 Tripdt=50n
SYMBOL cap -400 -224 R0
SYMATTR InstName C1
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL zener 368 96 M180
SYMATTR InstName D7
SYMATTR Value 625V
SYMBOL zener -400 96 M180
SYMATTR InstName D6
SYMATTR Value 25V
SYMBOL diode -320 352 M180
SYMATTR InstName D8
SYMATTR Value Dd
SYMBOL diode -320 480 M180
SYMATTR InstName D9
SYMATTR Value Dd
SYMBOL Digital\\diffschmitt -208 320 R0
SYMATTR InstName A3
SYMATTR Value Trise=20n Tfall=20n Td=125n
SYMATTR Value2 Vt=1.9 Vh=1 Tripdt=50n
SYMBOL res 0 464 R90
SYMATTR InstName R2
SYMATTR Value 1.5k
SYMBOL Digital\\diffschmtinv -80 320 R0
SYMATTR InstName A4
SYMATTR Value Trise=20n Tfall=20n Td=20n
SYMATTR Value2 Vt=8.9 Vh=.35 Tripdt=50n
SYMBOL cap -400 416 R0
SYMATTR InstName C5
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL sw 144 368 M180
SYMATTR InstName S3
SYMATTR Value SH
SYMBOL sw 144 400 R0
SYMATTR InstName S4
SYMATTR Value SL
SYMBOL cap 0 400 R0
SYMATTR Value 10p
SYMATTR InstName C6
SYMBOL diode 288 352 M180
SYMATTR InstName D10
SYMATTR Value Dd
SYMBOL diode 288 480 M180
SYMATTR InstName D11
SYMATTR Value Dd
SYMBOL zener 368 480 M180
SYMATTR InstName D12
SYMATTR Value 25V
SYMBOL cap 208 288 R0
SYMATTR InstName C7
SYMATTR Value 22p
SYMBOL cap 208 416 R0
SYMATTR InstName C8
SYMATTR Value 22p
SYMATTR SpiceLine Rpar=100k