* Z:\tmp\asc_dec_bjh7r6w2\1671f0d9a9b0_InrushTimer-3_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R3 HalfIn Zero 2.2e3
C10 5V Zero 10e-6
XU2 N004 Sig 12V Zero N003 TLC272 ;pnba In+)In-)V+)V-)OUT
S1 L N011 N010 N009 MainsOff
S2 N022 5V N020 N023 OptoOn
D8 N001 HalfIn UF5406
R9 N013 5V 680
D1 N008 Rect RR2L6S
C9 5V Zero 100e-9
C4 N002 PeakValue 1e-9
A1 N018 0 Peak 0 Reset 0 N019 0 DFLOP Trise=5n Tfall=5n Td=5n
C6 12V Zero 10e-6
C12 5V Zero 10e-6
C5 Rect Zero 10e-6
A2 N019 0 Peak 0 Reset 0 N020 0 DFLOP Trise=5n Tfall=5n Td=5n
R17 Peak N006 100e3
R8 5V nReset 51e3
C1 Rect Zero 10e-6
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2532 1284
WIRE -1104 -656 -1104 -672
WIRE -1328 -528 -1376 -528
WIRE -1216 -528 -1248 -528
WIRE -1104 -528 -1104 -592
WIRE -1104 -528 -1152 -528
WIRE -1008 -528 -1104 -528
WIRE -960 -528 -960 -576
WIRE -960 -528 -1008 -528
WIRE -880 -528 -960 -528
WIRE -704 -512 -816 -512
WIRE -592 -512 -704 -512
WIRE -432 -512 -432 -560
WIRE -432 -512 -512 -512
WIRE -400 -512 -432 -512
WIRE -880 -496 -928 -496
WIRE -240 -496 -336 -496
WIRE -112 -496 -240 -496
WIRE -400 -480 -432 -480
WIRE -112 -464 -112 -496
WIRE -560 -448 -592 -448
WIRE -240 -448 -240 -496
WIRE -928 -432 -928 -496
WIRE -832 -432 -928 -432
WIRE -704 -432 -704 -512
WIRE -704 -432 -768 -432
WIRE -560 -416 -560 -448
WIRE -1008 -400 -1008 -528
WIRE -704 -400 -704 -432
WIRE -112 -352 -112 -384
WIRE -80 -352 -112 -352
WIRE -1104 -336 -1104 -528
WIRE -432 -320 -432 -480
WIRE -240 -320 -240 -368
WIRE -240 -320 -336 -320
WIRE -928 -304 -928 -432
WIRE -816 -304 -928 -304
WIRE -704 -304 -704 -336
WIRE -704 -304 -816 -304
WIRE -112 -304 -112 -352
WIRE -816 -288 -816 -304
WIRE -704 -288 -704 -304
WIRE -1104 -192 -1104 -256
WIRE -1104 -192 -1376 -192
WIRE -1008 -192 -1008 -336
WIRE -1008 -192 -1104 -192
WIRE -816 -192 -1008 -192
WIRE -112 -192 -112 -224
WIRE -112 -192 -560 -192
WIRE -1616 -80 -1632 -80
WIRE -1520 -80 -1536 -80
WIRE -1968 -32 -2048 -32
WIRE 784 -32 784 -128
WIRE 784 -32 608 -32
WIRE 880 -32 784 -32
WIRE 1584 -32 880 -32
WIRE 1984 -32 1584 -32
WIRE -2048 -16 -2048 -32
WIRE -1904 -16 -1904 -64
WIRE 880 -16 880 -32
WIRE -1968 0 -1968 -32
WIRE -1952 0 -1968 0
WIRE 784 0 784 -32
WIRE -1632 16 -1776 16
WIRE -1600 16 -1632 16
WIRE -1520 16 -1520 -80
WIRE -1520 16 -1536 16
WIRE -1488 16 -1520 16
WIRE -1424 16 -1488 16
WIRE -1280 16 -1360 16
WIRE -1232 16 -1280 16
WIRE -1152 16 -1232 16
WIRE -1040 16 -1152 16
WIRE -864 16 -1040 16
WIRE -704 16 -864 16
WIRE 1984 16 1984 -32
WIRE -1040 32 -1040 16
WIRE -1952 48 -1968 48
WIRE -2048 80 -2048 64
WIRE -1968 80 -1968 48
WIRE -1968 80 -2048 80
WIRE -864 80 -864 16
WIRE 880 80 880 48
WIRE -1232 96 -1232 16
WIRE -1152 96 -1152 16
WIRE 720 96 656 96
WIRE 784 96 784 80
WIRE 784 96 720 96
WIRE -1904 112 -1904 64
WIRE -1488 112 -1488 16
WIRE -1424 112 -1488 112
WIRE -1312 112 -1360 112
WIRE -1040 128 -1040 112
WIRE -976 128 -1040 128
WIRE -928 128 -976 128
WIRE 784 128 784 96
WIRE 1984 128 1984 96
WIRE 2016 128 1984 128
WIRE 2208 128 2176 128
WIRE 672 160 608 160
WIRE -976 176 -976 128
WIRE -1424 192 -1488 192
WIRE -1280 192 -1280 16
WIRE -1280 192 -1360 192
WIRE -864 192 -864 176
WIRE -800 192 -864 192
WIRE -704 192 -800 192
WIRE -864 208 -864 192
WIRE -800 208 -800 192
WIRE 2016 208 1984 208
WIRE 2208 208 2176 208
WIRE -2048 240 -2048 80
WIRE 896 256 496 256
WIRE 1232 256 1056 256
WIRE 1520 256 1392 256
WIRE 1664 256 1520 256
WIRE 1792 256 1712 256
WIRE -1488 288 -1488 192
WIRE -1424 288 -1488 288
WIRE -1312 288 -1312 112
WIRE -1312 288 -1360 288
WIRE -1232 288 -1232 160
WIRE -1232 288 -1312 288
WIRE -1152 288 -1152 160
WIRE -1152 288 -1232 288
WIRE -976 288 -976 240
WIRE -976 288 -1152 288
WIRE -864 288 -864 272
WIRE -864 288 -976 288
WIRE -800 288 -800 272
WIRE -800 288 -864 288
WIRE -704 288 -800 288
WIRE 1584 288 1584 -32
WIRE 1712 288 1712 256
WIRE 672 304 672 160
WIRE 896 304 864 304
WIRE 1232 304 1200 304
WIRE 1520 304 1520 256
WIRE 1536 304 1520 304
WIRE 1664 304 1664 256
WIRE 1984 304 1984 208
WIRE -704 368 -704 352
WIRE -1312 384 -1312 288
WIRE -1040 384 -1040 128
WIRE 976 384 976 352
WIRE 1312 384 1312 352
WIRE 1584 384 1584 368
WIRE 1712 384 1712 368
WIRE 1712 384 1584 384
WIRE 1824 384 1712 384
WIRE -928 400 -928 384
WIRE 784 448 784 192
WIRE 1536 448 1536 352
WIRE 1536 448 784 448
WIRE 1664 448 1664 352
WIRE 1664 448 1536 448
WIRE -704 464 -704 448
WIRE -592 464 -704 464
WIRE -704 480 -704 464
WIRE -816 496 -928 496
WIRE 1664 544 1664 448
WIRE 1792 544 1664 544
WIRE -816 560 -816 496
WIRE -48 640 -96 640
WIRE 48 640 -48 640
WIRE 112 640 48 640
WIRE -48 672 -48 640
WIRE 48 672 48 640
WIRE -224 784 -224 736
WIRE -48 784 -48 736
WIRE -48 784 -224 784
WIRE 48 784 48 736
WIRE 48 784 -48 784
WIRE -224 832 -224 784
SYMBOL res -1120 -352 R0
SYMATTR InstName R3
SYMATTR Value 2.2e3
SYMBOL cap -64 672 R0
SYMATTR InstName C10
SYMATTR Value 10e-6
SYMBOL Opamps\\opamp2 -368 -560 R0
SYMATTR InstName U2
SYMATTR Value TLC272
SYMBOL sw -1904 -32 R0
SYMATTR InstName S1
SYMATTR Value MainsOff
SYMBOL sw 1584 384 M180
SYMATTR InstName S2
SYMATTR Value OptoOn
SYMBOL diode -1216 -544 M90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D8
SYMATTR Value UF5406
SYMBOL res 2000 112 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R9
SYMATTR Value 680
SYMBOL diode -1424 0 M90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMATTR Value RR2L6S
SYMBOL cap 864 -16 R0
SYMATTR InstName C9
SYMATTR Value 100e-9
SYMBOL cap -768 -448 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 1e-9
SYMBOL Digital\\dflop 976 208 R0
WINDOW 3 8 12 Left 2
SYMATTR InstName A1
SYMATTR Value Trise=5n Tfall=5n Td=5n
SYMBOL cap -880 208 R0
SYMATTR InstName C6
SYMATTR Value 10e-6
SYMBOL cap 32 672 R0
SYMATTR InstName C12
SYMATTR Value 10e-6
SYMBOL cap -1248 96 R0
SYMATTR InstName C5
SYMATTR Value 10e-6
SYMBOL Digital\\dflop 1312 208 R0
WINDOW 3 8 12 Left 2
SYMATTR InstName A2
SYMATTR Value Trise=5n Tfall=5n Td=5n
SYMBOL res -128 -320 R0
SYMATTR InstName R17
SYMATTR Value 100e3
SYMBOL res -720 352 R0
SYMATTR InstName R8
SYMATTR Value 51e3
SYMBOL cap -1168 96 R0
SYMATTR InstName C1
SYMATTR Value 10e-6
FLAG -1776 16 L
FLAG -1904 -64 L
FLAG -704 192 12V
FLAG -704 16 Rect
FLAG -704 288 Zero
FLAG -1376 -192 Zero
FLAG -960 -576 HalfIn
FLAG -848 -480 12V
FLAG -848 -544 Zero
FLAG -368 -528 12V
FLAG -368 -464 Zero
FLAG -1376 -528 L
FLAG -1104 -672 12V
FLAG -432 -560 Sig
FLAG -592 -448 12V
FLAG -80 -352 Peak
FLAG -816 -304 PeakValue
FLAG -928 384 5V
FLAG -816 496 Reset
FLAG -592 464 nReset
FLAG -704 352 5V
FLAG 784 -128 5V
FLAG 880 80 Zero
FLAG 720 96 TCharge
FLAG 672 160 CV
FLAG -224 832 Zero
FLAG 112 640 5V
FLAG 864 304 Peak
FLAG 976 384 Reset
FLAG 1312 384 Reset
FLAG 1200 304 Peak