* SPICE netlist
Q1 N002 N010 N012 0 NP
Q2 N002 6 N010 0 NP
Q3 N003 N011 N012 0 NP
Q4 N003 5 N011 0 NP
R1 N012 0 10K
Q5 N003 N003 8 0 PN
Q6 N006 N003 8 0 PN
Q7 N002 N002 8 0 PN
Q8 N008 N002 8 0 PN
Q9 N013 N004 N001 0 PN
R2 8 N001 1K
Q10 N023 N017 N013 0 PN
Q11 0 N021 N017 0 PN
Q12 N022 N016 N013 0 PN
Q13 0 2 N016 0 PN
Q14 N022 N023 0 0 NP
Q15 N023 N023 0 0 NP
R3 8 5 5K
R4 5 N021 5K
R5 N021 0 5K
Q16 N008 N006 0 0 NP
Q17 N006 N006 0 0 NP
Q18 N014 N022 0 0 NP
Q19 N018 N014 0 0 NP
Q20 N015 N018 0 0 NP
Q21 N009 N008 N014 0 NP
Q22 N009 N009 N018 0 NP
Q23 N004 N004 8 0 PN
Q24 N004 N004 8 0 PN
Q25 N015 N004 8 0 PN
R6 N004 N009 7.5K
R7 N015 N014 4.7K
Q26 N024 4 N009 0 PN
Q27 7 N024 0 0 NP
Q28 N005 N015 N019 0 NP
R8 8 N005 6.2K
R9 N019 N024 100
R10 N019 0 3.3K
R11 N020 N019 120
Q29 3 N020 0 0 NP
Q30 8 N007 3 0 NP
Q31 8 N005 N007 0 NP
R12 N007 3 3.9K
Q32 0 N005 3 0 PN
.tran 30m

* LTspice schematic (.asc)
Version 4
SHEET 1 2736 1424
WIRE -840 -280 -840 -296
WIRE -840 -296 -728 -296
WIRE -728 -296 -728 -216
WIRE -600 -216 -600 -296
WIRE -600 -296 -488 -296
WIRE -488 -296 -488 -280
WIRE -728 -120 -728 -104
WIRE -728 -104 -664 -104
WIRE -600 -104 -600 -120
WIRE -664 -104 -664 -24
WIRE -664 -104 -600 -104
WIRE -664 56 -664 72
WIRE -664 72 -712 72
WIRE -552 -472 -424 -472
WIRE -616 -536 -488 -536
WIRE -488 -536 -488 -520
WIRE -776 -472 -904 -472
WIRE -712 -520 -712 -536
WIRE -712 -536 -840 -536
WIRE -840 -536 -840 -520
WIRE -920 -472 -920 -392
WIRE -920 -392 -840 -392
WIRE -840 -392 -840 -424
WIRE -840 -392 -840 -296
WIRE -488 -424 -488 -392
WIRE -712 -536 -712 -648
WIRE -616 -648 -616 -536
WIRE -616 -520 -616 -536
WIRE -328 -648 -328 -616
WIRE -328 -424 -328 24
WIRE -328 -536 -328 -520
WIRE -792 -168 -840 -168
WIRE -840 -168 -840 -184
WIRE -488 -184 -488 -168
WIRE -488 -168 -536 -168
WIRE -184 104 -136 104
WIRE -136 104 -136 120
WIRE -248 56 -248 24
WIRE -248 24 -328 24
WIRE -328 24 -408 24
WIRE -472 104 -536 104
WIRE -536 104 -536 120
WIRE -408 56 -408 24
WIRE -328 360 -328 264
WIRE -328 360 -344 360
WIRE -328 264 -248 264
WIRE -248 264 -248 312
WIRE -248 152 -248 264
WIRE -408 312 -408 232
WIRE -408 408 -408 424
WIRE -248 424 -248 408
WIRE -536 216 -536 424
WIRE -408 424 -248 424
WIRE -248 424 -136 424
WIRE -136 424 -136 216
WIRE -600 168 -952 168
WIRE -664 72 -664 424
WIRE -664 424 -536 424
WIRE -536 424 -408 424
WIRE -904 -472 -920 -472
WIRE -424 -472 -408 -472
WIRE -408 -472 -408 -392
WIRE -408 -392 -488 -392
WIRE -488 -392 -488 -296
WIRE -72 168 -40 168
WIRE -40 424 -40 360
WIRE -40 -616 -40 -648
WIRE -40 -184 -40 -232
WIRE -40 280 -40 168
WIRE -40 168 -40 -104
WIRE -136 424 -40 424
WIRE -264 -472 328 -472
WIRE -424 -232 -376 -232
WIRE -40 -232 -40 -536
WIRE -376 -232 -376 -56
WIRE -376 -232 -40 -232
WIRE -376 -56 -952 -56
WIRE -40 424 56 424
WIRE 216 424 216 40
WIRE 216 -56 216 -120
WIRE 216 -328 -712 -328
WIRE -712 -328 -712 -424
WIRE -616 -424 -616 -360
WIRE -616 -360 56 -360
WIRE 56 -360 56 -88
WIRE 56 40 56 424
WIRE 56 424 216 424
WIRE 120 -8 136 -8
WIRE 136 -8 136 -88
WIRE 136 -8 152 -8
WIRE 136 -88 56 -88
WIRE 56 -88 56 -56
WIRE -904 -232 -952 -232
WIRE -408 232 328 232
WIRE -408 232 -408 152
WIRE 328 -120 216 -120
WIRE 216 -120 216 -328
WIRE 392 -72 392 24
WIRE 392 280 392 424
WIRE 472 168 392 168
WIRE 392 168 392 184
WIRE 536 120 536 104
WIRE 536 104 600 104
WIRE 216 424 392 424
WIRE 392 424 536 424
WIRE 664 424 664 152
WIRE 664 56 664 24
WIRE -40 -648 -328 -648
WIRE 536 216 536 424
WIRE 536 424 664 424
WIRE 536 104 536 -72
WIRE 536 -168 536 -216
WIRE 392 -216 392 -168
WIRE 600 -120 616 -120
WIRE 616 -120 616 -216
WIRE 616 -216 536 -216
WIRE 536 -216 392 -216
WIRE 536 -536 408 -536
WIRE 408 -536 408 -520
WIRE 408 -424 408 -392
WIRE 536 -520 536 -536
WIRE 328 -472 328 -392
WIRE 328 -392 408 -392
WIRE 536 -424 536 -392
WIRE 344 -472 472 -472
WIRE 472 -472 600 -472
WIRE 328 -472 344 -472
WIRE 616 -472 600 -472
WIRE 664 -520 664 -536
WIRE 536 -536 664 -536
WIRE 664 -536 664 -648
WIRE 536 -280 536 -216
WIRE 392 24 424 24
WIRE 504 24 664 24
WIRE 392 24 392 168
WIRE 664 24 664 -424
WIRE 392 -216 296 -216
WIRE 296 -216 296 456
WIRE 296 456 -792 456
WIRE -792 456 -792 472
WIRE -792 632 776 632
WIRE -792 568 -792 632
WIRE -856 520 -952 520
WIRE -904 584 -952 584
WIRE -840 632 -792 632
WIRE -904 680 -904 712
WIRE -904 712 -712 712
WIRE -712 712 -712 72
WIRE -712 72 -952 72
WIRE -40 -648 664 -648
WIRE 664 -648 776 -648
WIRE 776 -648 776 -600
WIRE 776 72 776 120
WIRE 776 -520 776 -456
WIRE 776 584 776 632
WIRE 664 24 712 24
WIRE 664 424 824 424
WIRE 824 424 824 312
WIRE 824 232 824 120
WIRE 1080 120 952 120
WIRE 872 120 824 120
WIRE 776 120 776 504
WIRE 824 120 776 120
WIRE 824 424 1000 424
WIRE 1144 424 1144 168
WIRE 1144 72 1144 -136
WIRE 1144 -648 920 -648
WIRE 1144 -392 1144 -648
WIRE 856 -456 776 -456
WIRE 776 -456 776 -40
WIRE 920 -648 920 -504
WIRE 920 -408 920 -344
WIRE 920 -648 776 -648
WIRE 920 -344 1000 -344
WIRE 1000 -344 1000 -296
WIRE 1000 -216 1000 -136
WIRE 1000 -344 1080 -344
WIRE 1000 -136 1144 -136
WIRE 1144 -136 1144 -296
WIRE 1000 -136 1000 -88
WIRE 1000 8 1000 424
WIRE 936 -40 776 -40
WIRE 776 -40 776 -24
WIRE 1000 424 1144 424
WIRE 1144 -136 1176 -136
WIRE -952 584 -1000 584
WIRE -952 72 -1000 72
WIRE -952 -56 -1000 -56
WIRE -952 -232 -1000 -232
WIRE -328 -648 -616 -648
WIRE -712 -648 -952 -648
WIRE -616 -648 -712 -648
WIRE -952 -648 -1000 -648
WIRE -1064 -648 -1240 -648
WIRE -1064 -232 -1192 -232
WIRE -1064 72 -1176 72
WIRE -1000 168 -952 168
WIRE -1000 520 -952 520
WIRE -1064 584 -1192 584
WIRE 1176 -136 1192 -136
WIRE 1256 -136 1336 -136
WIRE -1192 584 -1368 584
WIRE -1160 168 -1160 232
WIRE -1160 168 -1064 168
WIRE -1064 -56 -1288 -56
WIRE -1240 -648 -1240 -616
WIRE 536 -392 536 -360
WIRE 408 -392 536 -392
WIRE -1064 520 -1080 520
WIRE -312 360 -328 360
WIRE -1192 -232 -1288 -232
WIRE -1176 72 -1208 72
WIRE -1080 520 -1368 520
WIRE 1336 -136 1368 -136
WIRE -1288 -56 -1304 -56
FLAG -1208 72 GND
FLAG -952 584 7
FLAG -952 520 4
FLAG -952 168 2
FLAG -952 72 1
FLAG -952 -56 5
FLAG -952 -232 6
FLAG -952 -648 8
FLAG 1176 -136 3
FLAG -1240 -616 Vcc
IOPIN 400 304 BiDir
FLAG -1192 -232 Thres
IOPIN 448 688 In
FLAG -1288 -56 Ctrl
IOPIN 352 864 In
FLAG -1176 72 Gnd
IOPIN 464 992 BiDir
FLAG -1160 232 Trig
IOPIN 480 1152 In
FLAG -1080 520 Rst
IOPIN 560 1440 In
FLAG -1192 584 Disc
IOPIN 448 1504 Out
FLAG 1336 -136 Out
IOPIN 2976 784 Out
SYMBOL NPN -792 -216 R0
SYMATTR InstName Q1
SYMATTR Value NP
SYMBOL npn -904 -280 R0
SYMATTR InstName Q2
SYMATTR Value NP
SYMBOL npn -536 -216 M0
SYMATTR InstName Q3
SYMATTR Value NP
SYMBOL npn -424 -280 M0
SYMATTR InstName Q4
SYMATTR Value NP
SYMBOL res -680 -40 R0
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL PNP -424 -424 R180
SYMATTR InstName Q5
SYMATTR Value PN
SYMBOL pnp -552 -424 R180
SYMATTR InstName Q6
SYMATTR Value PN
SYMBOL pnp -904 -424 M180
SYMATTR InstName Q7
SYMATTR Value PN
SYMBOL pnp -776 -424 M180
SYMATTR InstName Q8
SYMATTR Value PN
SYMBOL pnp -264 -424 R180
SYMATTR InstName Q9
SYMATTR Value PN
SYMBOL res -344 -632 R0
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL pnp -184 152 R180
SYMATTR InstName Q10
SYMATTR Value PN
SYMBOL pnp -72 216 R180
SYMATTR InstName Q11
SYMATTR Value PN
SYMBOL pnp -472 152 M180
SYMATTR InstName Q12
SYMATTR Value PN
SYMBOL pnp -600 216 M180
SYMATTR InstName Q13
SYMATTR Value PN
SYMBOL npn -344 312 M0
SYMATTR InstName Q14
SYMATTR Value NP
SYMBOL npn -312 312 R0
SYMATTR InstName Q15
SYMATTR Value NP
SYMBOL res -56 -632 R0
SYMATTR InstName R3
SYMATTR Value 5K
SYMBOL res -56 -200 R0
SYMATTR InstName R4
SYMATTR Value 5K
SYMBOL res -56 264 R0
SYMATTR InstName R5
SYMATTR Value 5K
SYMBOL npn 152 -56 R0
SYMATTR InstName Q16
SYMATTR Value NP
SYMBOL npn 120 -56 M0
SYMATTR InstName Q17
SYMATTR Value NP
SYMBOL npn 328 184 R0
SYMATTR InstName Q18
SYMATTR Value NP
SYMBOL npn 472 120 R0
SYMATTR InstName Q19
SYMATTR Value NP
SYMBOL npn 600 56 R0
SYMATTR InstName Q20
SYMATTR Value NP
SYMBOL npn 328 -168 R0
SYMATTR InstName Q21
SYMATTR Value NP
SYMBOL npn 600 -168 M0
SYMATTR InstName Q22
SYMATTR Value NP
SYMBOL pnp 344 -424 M180
SYMATTR InstName Q23
SYMATTR Value PN
SYMBOL pnp 472 -424 M180
SYMATTR InstName Q24
SYMATTR Value PN
SYMBOL pnp 600 -424 M180
SYMATTR InstName Q25
SYMATTR Value PN
SYMBOL res 520 -376 R0
SYMATTR InstName R6
SYMATTR Value 7.5K
SYMBOL res 520 40 M270
SYMATTR InstName R7
SYMATTR Value 4.7K
SYMBOL pnp -856 568 M180
SYMATTR InstName Q26
SYMATTR Value PN
SYMBOL npn -840 584 M0
SYMATTR InstName Q27
SYMATTR Value NP
SYMBOL npn 712 -24 R0
SYMATTR InstName Q28
SYMATTR Value NP
SYMBOL res 760 -616 R0
SYMATTR InstName R8
SYMATTR Value 6.2K
SYMBOL res 760 488 R0
SYMATTR InstName R9
SYMATTR Value 100
SYMBOL res 808 216 R0
SYMATTR InstName R10
SYMATTR Value 3.3K
SYMBOL res 968 104 R90
SYMATTR InstName R11
SYMATTR Value 120
SYMBOL npn 1080 72 R0
SYMATTR InstName Q29
SYMATTR Value NP
SYMBOL npn 1080 -392 R0
SYMATTR InstName Q30
SYMATTR Value NP
SYMBOL npn 856 -504 R0
SYMATTR InstName Q31
SYMATTR Value NP
SYMBOL res 984 -312 R0
SYMATTR InstName R12
SYMATTR Value 3.9K
SYMBOL pnp 936 8 M180
SYMATTR InstName Q32
SYMATTR Value PN
SYMBOL MISC\\JUMPER -1032 -712 R0
SYMATTR InstName J8
SYMBOL misc\\jumper -1032 -296 R0
SYMATTR InstName J6
SYMBOL misc\\jumper -1032 -120 R0
SYMATTR InstName J5
SYMBOL misc\\jumper -1032 8 R0
SYMATTR InstName J1
SYMBOL misc\\jumper -1032 104 R0
SYMATTR InstName J2
SYMBOL misc\\jumper -1032 456 R0
SYMATTR InstName J4
SYMBOL misc\\jumper -1032 520 R0
SYMATTR InstName J7
SYMBOL misc\\jumper 1224 -200 R0
SYMATTR InstName J3