* SPICE netlist
A1 5 11 N006 N007 0 0 9 0 OR vhigh=4.8 td=50n
A2 0 6 9 0 0 2 0 0 OR vhigh=4.8 td=50n
A3 0 10 0 9 0 12 0 0 OR vhigh=4.8 td=50n
A4 0 OC\ 0 8 0 0 6 0 AND vhigh=4.8 td=50n
A5 0 4 0 OC\ 0 0 10 0 AND vhigh=4.8 td=50n
E1 OC\ 0 OC 0 1
A6 4 0 9 0 0 4 8 0 DFLOP vhigh=4.8 vlow=0.2 td=50n
I2 FB GRD 0.7m
R1 N003 2 470
R2 N005 12 470
S1 GRD CT Set GRD OSC Off
R6 1 0 1G
D1 N009 FB IDEAL
D2 N008 FB IDEAL
VDT 7 DTC 0.12
V2 14 CT 0.7
C6 Set GRD 10p
R7 Set CT 5k
D6 N001 RT IDEAL
F1 GRD CT E5 -1
B2 N007 GRD V=if(V(1)>40,5,0)
R3 1IN+ GRD 500k
R8 1IN- GRD 500k
E2 N008 0 1IN+ 1IN- TABLE = (0,0,1m,1,5m,5)
R9 2IN+ GRD 500k
R10 2IN- GRD 500k
E3 N009 0 2IN+ 2IN- TABLE = (0,0,1m,1,5m,5)
S2 REF 5 7 CT DTC
R11 5 GRD 200
S3 REF 11 FB 14 PWMC
R12 11 GRD 200
S4 E1 N002 N003 0 NPN
S5 E2 N004 N005 0 NPN
R4 N003 E1 2k7
R5 N005 E2 2k7
D3 E1 C1 40V
D4 E2 C2 40V
D5 C1 N002 DD
D7 C2 N004 DD
E4 REF GRD 1 GRD TABLE = (0,0,1,0,2,1,3,2,4,3,5,4,6,5,7,5)
E5 N001 GRD REF GRD TABLE = (0,0,3.65,3.65,5,3.65)
A7 N010 REF 0 0 0 0 N006 0 SCHMITT vhigh=5 Ref=-1
V1 N010 GRD 3.5
.ic V(Set)=1.5

* LTspice schematic (.asc)
Version 4.1
SHEET 1 1792 1232
WIRE 32 -584 32 -600
WIRE 32 -552 32 -584
WIRE 176 -552 176 -616
WIRE 240 -552 224 -552
WIRE 240 -504 240 -552
WIRE 256 -504 240 -504
WIRE -736 -456 -896 -456
WIRE -656 -456 -672 -456
WIRE 752 -456 736 -456
WIRE 848 -456 816 -456
WIRE 896 -456 848 -456
WIRE 160 -440 160 -504
WIRE 160 -440 144 -440
WIRE 256 -440 160 -440
WIRE 352 -440 320 -440
WIRE 416 -440 352 -440
WIRE 688 -440 592 -440
WIRE 848 -440 848 -456
WIRE -352 -424 -416 -424
WIRE 416 -424 352 -424
WIRE -512 -408 -800 -408
WIRE -416 -408 -416 -424
WIRE -416 -408 -432 -408
WIRE 256 -408 112 -408
WIRE 496 -408 480 -408
WIRE 512 -408 496 -408
WIRE 592 -408 592 -440
WIRE -656 -392 -656 -456
WIRE -512 -376 -512 -408
WIRE -416 -360 -416 -408
WIRE -416 -360 -464 -360
WIRE 592 -360 592 -408
WIRE 608 -360 592 -360
WIRE 736 -360 736 -376
WIRE 736 -360 688 -360
WIRE 848 -360 848 -376
WIRE 848 -360 736 -360
WIRE 896 -360 848 -360
WIRE -800 -296 -800 -408
WIRE -784 -296 -800 -296
WIRE -656 -296 -656 -312
WIRE -656 -296 -704 -296
WIRE -608 -296 -608 -328
WIRE -608 -296 -656 -296
WIRE -576 -296 -608 -296
WIRE -512 -296 -576 -296
WIRE -464 -296 -464 -312
WIRE -464 -296 -512 -296
WIRE -416 -296 -464 -296
WIRE 64 -280 -144 -280
WIRE -144 -248 -144 -280
WIRE -144 -216 -144 -248
WIRE -128 -216 -144 -216
WIRE 112 -216 112 -408
WIRE 112 -216 32 -216
WIRE -272 -184 -368 -184
WIRE 752 -184 736 -184
WIRE 832 -184 816 -184
WIRE 896 -184 832 -184
WIRE -464 -168 -576 -168
WIRE -384 -168 -464 -168
WIRE -368 -168 -368 -184
WIRE -368 -168 -384 -168
WIRE -272 -168 -336 -168
WIRE -192 -168 -208 -168
WIRE -176 -168 -192 -168
WIRE -128 -168 -176 -168
WIRE 64 -168 64 -280
WIRE 64 -168 48 -168
WIRE 688 -168 592 -168
WIRE 832 -168 832 -184
WIRE -576 -152 -576 -168
WIRE -272 -152 -304 -152
WIRE -784 -136 -896 -136
WIRE -640 -136 -704 -136
WIRE -624 -136 -640 -136
WIRE -272 -136 -288 -136
WIRE 160 -136 160 -440
WIRE 256 -136 160 -136
WIRE 352 -136 352 -424
WIRE 416 -136 352 -136
WIRE 496 -136 480 -136
WIRE 512 -136 496 -136
WIRE 592 -136 592 -168
WIRE 64 -104 64 -168
WIRE 256 -104 64 -104
WIRE 336 -104 320 -104
WIRE 416 -104 336 -104
WIRE -800 -88 -800 -296
WIRE -800 -88 -896 -88
WIRE -624 -88 -800 -88
WIRE -448 -88 -464 -88
WIRE 592 -88 592 -136
WIRE 608 -88 592 -88
WIRE 736 -88 736 -104
WIRE 736 -88 688 -88
WIRE 832 -88 832 -104
WIRE 832 -88 736 -88
WIRE 896 -88 832 -88
WIRE -560 -72 -576 -72
WIRE -176 -40 -176 -168
WIRE 352 -40 352 -136
WIRE 352 -40 -176 -40
WIRE -336 -24 -336 -168
WIRE -800 72 -800 -88
WIRE -688 72 -720 72
WIRE -672 72 -688 72
WIRE -608 72 -624 72
WIRE -672 88 -672 72
WIRE -512 88 -528 88
WIRE -704 136 -720 136
WIRE -672 136 -704 136
WIRE -624 168 -624 152
WIRE -528 168 -624 168
WIRE -336 168 -336 -24
WIRE -336 168 -528 168
WIRE -288 312 -288 -136
WIRE 224 312 -288 312
WIRE -304 328 -304 -152
WIRE -128 328 -304 328
WIRE -704 344 -704 136
WIRE -528 344 -704 344
WIRE -832 408 -848 408
WIRE -736 408 -752 408
WIRE -304 408 -320 408
WIRE -208 408 -224 408
WIRE -592 424 -640 424
WIRE -528 424 -528 344
WIRE -416 424 -464 424
WIRE 160 424 80 424
WIRE 224 424 224 392
WIRE 224 424 160 424
WIRE -736 440 -736 408
WIRE -736 440 -880 440
WIRE -688 440 -736 440
WIRE -640 440 -640 424
WIRE -416 440 -416 424
WIRE -320 440 -320 408
WIRE -320 440 -368 440
WIRE -176 440 -320 440
WIRE 224 440 224 424
WIRE 224 440 208 440
WIRE -688 456 -688 440
WIRE -368 456 -368 440
WIRE -208 472 -208 408
WIRE -128 472 -128 328
WIRE -96 472 -128 472
WIRE 0 472 -32 472
WIRE 80 472 80 424
WIRE -848 488 -848 408
WIRE 112 504 -32 504
WIRE 160 504 112 504
WIRE 208 504 208 488
WIRE -848 520 -848 488
WIRE -832 520 -848 520
WIRE -736 520 -752 520
WIRE -688 520 -688 504
WIRE -688 520 -736 520
WIRE -368 520 -368 504
WIRE -320 520 -368 520
WIRE -304 520 -320 520
WIRE -208 520 -208 472
WIRE -208 520 -224 520
WIRE -736 536 -736 520
WIRE -736 536 -848 536
WIRE -320 536 -320 520
WIRE -208 536 -320 536
WIRE -880 600 -880 440
WIRE -848 600 -848 536
WIRE -528 600 -528 424
WIRE -208 600 -208 536
WIRE -176 600 -176 440
WIRE 224 600 224 440
WIRE 112 616 112 504
FLAG -192 -168 9
FLAG 496 -408 2
FLAG 496 -136 12
FLAG 352 -440 6
FLAG 144 -440 OC\
FLAG 336 -104 10
FLAG 176 -616 OC
IOPIN 1376 256 In
FLAG 256 -504 0
FLAG -144 -248 4
FLAG 112 -216 8
FLAG -528 600 FB
IOPIN 672 1472 In
FLAG -576 -296 GRD
FLAG 32 -472 0
FLAG 896 -456 C1
IOPIN 2096 416 In
FLAG 896 -360 E1
IOPIN 2096 512 Out
FLAG 896 -184 C2
IOPIN 2096 688 In
FLAG 896 -88 E2
IOPIN 2096 784 Out
FLAG 112 616 REF
IOPIN 1312 1488 Out
FLAG 32 -600 VCC
IOPIN 1232 272 In
FLAG 32 -584 1
FLAG -896 -136 DTC
IOPIN 304 736 In
FLAG -640 -136 7
FLAG -896 -88 CT
IOPIN 304 784 In
FLAG -384 -168 5
FLAG -800 136 GRD
FLAG -688 72 14
FLAG -336 -24 11
FLAG -176 600 2IN+
IOPIN 1024 1472 In
FLAG -208 600 2IN-
IOPIN 992 1472 In
FLAG -896 -456 RT
IOPIN 304 416 In
FLAG 224 600 GRD
IOPIN 1424 1472 BiDir
FLAG -352 -424 Set
FLAG -880 600 1IN+
IOPIN 320 1472 In
FLAG -848 600 1IN-
IOPIN 352 1472 In
FLAG -640 520 0
FLAG -416 520 0
FLAG -560 -72 REF
FLAG -448 -88 GRD
FLAG -608 72 REF
FLAG -512 88 GRD
FLAG 688 -392 0
FLAG 688 -120 0
FLAG -848 488 GRD
FLAG -208 472 GRD
FLAG 208 504 VCC
FLAG -608 -376 REF
SYMBOL Digital\\or -240 -216 R0
SYMATTR InstName A1
SYMATTR Value vhigh=4.8 td=50n
SYMBOL Digital\\or 448 -488 R0
SYMATTR InstName A2
SYMATTR Value vhigh=4.8 td=50n
SYMBOL Digital\\or 448 -56 M180
SYMATTR InstName A3
SYMATTR Value vhigh=4.8 td=50n
SYMBOL Digital\\and 288 -488 R0
SYMATTR Value vhigh=4.8 td=50n
SYMATTR InstName A4
SYMBOL Digital\\and 288 -56 M180
SYMATTR Value vhigh=4.8 td=50n
SYMATTR InstName A5
SYMBOL e 144 -504 M90
SYMATTR InstName E1
SYMATTR Value 1
SYMBOL Digital\\dflop -48 -264 R0
SYMATTR InstName A6
SYMATTR Value vhigh=4.8 vlow=0.2 td=50n
SYMBOL current -720 136 R90
SYMATTR InstName I2
SYMATTR Value 0.7m
SYMBOL res 608 -424 R90
SYMATTR InstName R1
SYMATTR Value 470
SYMBOL res 608 -152 R90
SYMATTR InstName R2
SYMATTR Value 470
SYMBOL sw -512 -280 R180
SYMATTR InstName S1
SYMATTR Value OSC
SYMATTR Value2 Off
SYMBOL res 48 -568 M0
SYMATTR InstName R6
SYMATTR Value 1G
SYMBOL diode -464 408 R90
SYMATTR InstName D1
SYMATTR Value IDEAL
SYMBOL diode -592 408 M90
SYMATTR InstName D2
SYMATTR Value IDEAL
SYMBOL voltage -688 -136 M270
SYMATTR InstName VDT
SYMATTR Value 0.12
SYMBOL voltage -704 72 R90
SYMATTR InstName V2
SYMATTR Value 0.7
SYMBOL cap -432 -360 R0
SYMATTR Value 10p
SYMATTR InstName C6
SYMBOL res -416 -424 R90
SYMATTR InstName R7
SYMATTR Value 5k
SYMBOL diode -672 -472 R90
SYMATTR InstName D6
SYMATTR Value IDEAL
SYMBOL f -704 -296 R90
SYMATTR InstName F1
SYMATTR Value E5 -1
SYMBOL bv 224 296 M0
SYMATTR InstName B2
SYMATTR Value V=if(V(Vcc)>40,5,0)
SYMBOL res -736 392 R90
SYMATTR InstName R3
SYMATTR Value 500k
SYMBOL res -736 504 R90
SYMATTR InstName R8
SYMATTR Value 500k
SYMBOL e -640 424 R0
SYMATTR InstName E2
SYMATTR Value TABLE = (0,0,1m,1,5m,5)
SYMBOL res -320 392 M90
SYMATTR InstName R9
SYMATTR Value 500k
SYMBOL res -320 504 M90
SYMATTR InstName R10
SYMATTR Value 500k
SYMBOL e -416 424 M0
SYMATTR InstName E3
SYMATTR Value TABLE = (0,0,1m,1,5m,5)
SYMBOL sw -576 -56 M180
SYMATTR InstName S2
SYMATTR Value DTC
SYMBOL res -480 -184 R0
SYMATTR Value 200
SYMATTR InstName R11
SYMBOL sw -624 56 R0
SYMATTR InstName S3
SYMATTR Value PWMC
SYMBOL res -544 184 M180
SYMATTR InstName R12
SYMATTR Value 200
SYMBOL sw 736 -360 M180
SYMATTR InstName S4
SYMATTR Value NPN
SYMBOL sw 736 -88 M180
SYMATTR InstName S5
SYMATTR Value NPN
SYMBOL res 592 -344 R270
SYMATTR InstName R4
SYMATTR Value 2k7
SYMBOL res 592 -72 R270
SYMATTR InstName R5
SYMATTR Value 2k7
SYMBOL diode 832 -376 M180
SYMATTR InstName D3
SYMATTR Value 40V
SYMBOL diode 816 -104 M180
SYMATTR InstName D4
SYMATTR Value 40V
SYMBOL diode 816 -472 R90
SYMATTR InstName D5
SYMATTR Value DD
SYMBOL diode 816 -200 R90
SYMATTR InstName D7
SYMATTR Value DD
SYMBOL e 160 520 R180
SYMATTR InstName E4
SYMATTR Value TABLE = (0,0,1,0,2,1,3,2,4,3,5,4,6,5,7,5)
SYMBOL e -656 -408 M0
SYMATTR InstName E5
SYMATTR Value TABLE = (0,0,3.65,3.65,5,3.65)
SYMBOL Digital\\diffschmitt -32 424 M0
SYMATTR InstName A7
SYMATTR Value vhigh=5 Ref=-1
SYMBOL voltage -16 472 R270
SYMATTR InstName V1
SYMATTR Value 3.5