* Z:\tmp\asc_dec_bjh7r6w2\13ff6b113288_schmidt_trigger_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
R32 N052 N053 220
D1 N022 N019 BAT54
R6 N002 Out2 1k
R1 N007 In 22k
C2 N025 N030 100n
C7 N034 N038 1n
R18 N014 N016 1k
M4 N016 N018 N027 N027 2N7002
Q4 Out2 N005 N011 0 2N3904
R34 N040 N044 10k
R7 N011 N013 22
Q6 N003 N006 N012 0 2N3904
R11 N012 N013 22
R15 N014 N015 1k
R19 N027 N030 22
R35 N050 N053 1k
R22 N028 N030 220
R25 N046 osc_out2 10k
R13 N002 N001 1k
M10 N029 N031 N035 N035 2N7002
M13 N039 N033 N032 N032 BSS84
R27 N039 N042 10k
R16 N026 N030 22
R26 N046 N048 10k
R3 N002 Out 1k
Q8 N048 N049 N052 0 2N3904
Q1 N004 N007 N010 0 2N3904
R5 N002 N005 1k
Q10 osc_out2 N051 N055 0 2N3904
M9 N031 N034 N035 N035 2N7002
Q7 N001 N003 N013 0 2N3904
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 3940 3804
WIRE 2064 -352 1472 -352
WIRE 208 -240 -320 -240
WIRE 400 -240 208 -240
WIRE 864 -240 400 -240
WIRE 1056 -240 864 -240
WIRE 1680 -240 1056 -240
WIRE 1872 -240 1680 -240
WIRE 2000 -240 1872 -240
WIRE 2000 -224 2000 -240
WIRE 208 -176 208 -240
WIRE 400 -176 400 -240
WIRE 864 -176 864 -240
WIRE 1056 -176 1056 -240
WIRE 1680 -176 1680 -240
WIRE 1872 -176 1872 -240
WIRE 2064 -144 2064 -352
WIRE 2064 -144 2000 -144
WIRE 2000 -128 2000 -144
WIRE 400 -80 400 -96
WIRE 512 -80 400 -80
WIRE 608 -80 512 -80
WIRE 1056 -80 1056 -96
WIRE 1168 -80 1056 -80
WIRE 1264 -80 1168 -80
WIRE 1872 -80 1872 -96
WIRE 1936 -80 1872 -80
WIRE 2064 -80 2064 -144
WIRE 2304 -80 2064 -80
WIRE 400 -48 400 -80
WIRE 1056 -48 1056 -80
WIRE 1872 -48 1872 -80
WIRE 208 0 208 -96
WIRE 336 0 208 0
WIRE 864 0 864 -96
WIRE 992 0 864 0
WIRE 1680 0 1680 -96
WIRE 1808 0 1680 0
WIRE 208 80 208 0
WIRE 864 80 864 0
WIRE 1680 80 1680 0
WIRE 32 128 0 128
WIRE 144 128 112 128
WIRE 800 128 768 128
WIRE 1616 128 1584 128
WIRE 208 240 208 176
WIRE 400 240 208 240
WIRE 864 240 864 176
WIRE 1056 240 1056 48
WIRE 1056 240 864 240
WIRE 1680 240 1680 176
WIRE 1872 240 1872 48
WIRE 1872 240 1680 240
WIRE 0 256 0 128
WIRE 1056 336 1056 240
WIRE 1872 336 1872 240
WIRE 400 480 400 416
WIRE 400 480 48 480
WIRE 656 480 400 480
WIRE 1056 480 1056 416
WIRE 1056 480 656 480
WIRE 1472 480 1056 480
WIRE 1872 480 1872 416
WIRE 1872 480 1472 480
WIRE 2000 480 2000 -32
WIRE 2000 480 1872 480
WIRE 224 624 -96 624
WIRE 352 624 224 624
WIRE 752 624 352 624
WIRE 880 624 752 624
WIRE 1392 624 880 624
WIRE 224 656 224 624
WIRE 352 656 352 624
WIRE 752 656 752 624
WIRE 880 656 880 624
WIRE 352 880 352 736
WIRE 880 880 880 736
WIRE 1056 880 880 880
WIRE 880 896 880 880
WIRE 3088 896 2864 896
WIRE 3312 896 3088 896
WIRE 3088 928 3088 896
WIRE 224 976 224 736
WIRE 752 976 752 736
WIRE 832 976 752 976
WIRE 3168 976 3152 976
WIRE 3216 976 3168 976
WIRE 3248 976 3216 976
WIRE 224 1040 224 976
WIRE 752 1040 752 976
WIRE 1392 1040 1392 976
WIRE 3088 1072 3088 1024
WIRE 3104 1072 3088 1072
WIRE 3168 1072 3168 976
WIRE 3216 1088 3216 976
WIRE 3312 1088 3216 1088
WIRE 176 1120 48 1120
WIRE 704 1120 576 1120
WIRE 1216 1120 1216 768
WIRE 1344 1120 1216 1120
WIRE 224 1168 224 1136
WIRE 352 1168 352 992
WIRE 352 1168 224 1168
WIRE 752 1168 752 1136
WIRE 880 1168 880 992
WIRE 880 1168 752 1168
WIRE 1392 1168 1392 1136
WIRE 1520 1168 1520 992
WIRE 1520 1168 1392 1168
WIRE 48 1184 48 1120
WIRE 576 1184 576 1120
WIRE 1216 1184 1216 1120
WIRE 3088 1200 3088 1072
WIRE 224 1216 224 1168
WIRE 752 1216 752 1168
WIRE 1392 1216 1392 1168
WIRE 3040 1216 2960 1216
WIRE 48 1360 48 1264
WIRE 48 1360 -96 1360
WIRE 224 1360 224 1296
WIRE 224 1360 48 1360
WIRE 576 1360 576 1264
WIRE 576 1360 224 1360
WIRE 752 1360 752 1296
WIRE 752 1360 576 1360
WIRE 1216 1360 1216 1248
WIRE 1216 1360 752 1360
WIRE 1392 1360 1392 1296
WIRE 1392 1360 1216 1360
WIRE 1744 1360 1392 1360
WIRE 2864 1552 2864 1008
WIRE 2960 1552 2960 1216
WIRE 2960 1552 2864 1552
WIRE 3040 1552 2960 1552
WIRE 2864 1680 2864 1552
WIRE 2736 1760 2736 1008
WIRE 2816 1760 2736 1760
WIRE 2736 1824 2736 1760
WIRE 256 1856 256 1680
WIRE 112 1872 112 1600
WIRE 208 1872 112 1872
WIRE 2560 1904 2560 1376
WIRE 2688 1904 2560 1904
WIRE 2736 1952 2736 1920
WIRE 2864 1952 2864 1776
WIRE 2864 1952 2736 1952
WIRE 2560 1984 2560 1904
WIRE 2736 2000 2736 1952
WIRE 544 2032 464 2032
WIRE 32 2128 32 1680
WIRE 2560 2144 2560 2048
WIRE 2560 2144 2336 2144
WIRE 2736 2144 2736 2080
WIRE 2736 2144 2560 2144
WIRE 3088 2144 2736 2144
WIRE 256 2176 256 1952
WIRE 352 2176 256 2176
WIRE 416 2176 352 2176
WIRE 720 2176 720 1952
WIRE 848 2176 720 2176
WIRE 928 2176 848 2176
WIRE 256 2224 256 2176
WIRE 592 2224 592 2048
WIRE 592 2224 464 2224
WIRE 720 2224 720 2176
WIRE 352 2240 352 2176
WIRE 848 2240 848 2176
WIRE 256 2416 256 2304
WIRE 352 2416 352 2304
WIRE 720 2416 720 2304
WIRE 848 2416 848 2304
WIRE 1280 2592 112 2592
WIRE 256 2672 32 2672
WIRE 464 2672 256 2672
WIRE 592 2672 464 2672
WIRE 720 2672 592 2672
WIRE 1168 2672 720 2672
WIRE 464 2704 464 2672
WIRE 592 2704 592 2672
WIRE 1168 2704 1168 2672
WIRE 256 2848 256 2672
WIRE 1168 2864 1168 2784
WIRE 1280 2864 1280 2592
WIRE 1280 2864 1168 2864
WIRE 1328 2864 1280 2864
WIRE 592 2896 592 2784
WIRE 656 2896 592 2896
WIRE 592 2944 592 2896
WIRE 464 2992 464 2784
WIRE 528 2992 464 2992
WIRE 464 3088 464 2992
WIRE 1168 3088 1168 2864
WIRE 256 3136 256 2944
WIRE 352 3136 256 3136
WIRE 400 3136 352 3136
WIRE 720 3136 720 2944
WIRE 848 3136 720 3136
WIRE 960 3136 848 3136
WIRE 1104 3136 1040 3136
WIRE 256 3216 256 3136
WIRE 464 3216 464 3184
WIRE 592 3216 592 3040
WIRE 592 3216 464 3216
WIRE 720 3216 720 3136
WIRE 352 3232 352 3136
WIRE 848 3232 848 3136
WIRE 464 3264 464 3216
WIRE 256 3408 256 3296
WIRE 256 3408 32 3408
WIRE 352 3408 352 3296
WIRE 352 3408 256 3408
WIRE 464 3408 464 3344
WIRE 464 3408 352 3408
WIRE 720 3408 720 3296
WIRE 720 3408 464 3408
WIRE 848 3408 848 3296
WIRE 1168 3408 1168 3184
SYMBOL res 448 3248 R0
SYMATTR InstName R32
SYMATTR Value 220
SYMBOL diode 3104 1088 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 1040 -192 R0
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL res 128 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 22k
SYMBOL cap 1200 1184 R0
SYMATTR InstName C2
SYMATTR Value 100n
SYMBOL cap 2544 1984 R0
SYMATTR InstName C7
SYMATTR Value 1n
SYMBOL res 864 640 R0
SYMATTR InstName R18
SYMATTR Value 1k
SYMBOL nmos 832 896 R0
SYMATTR InstName M4
SYMATTR Value 2N7002
SYMBOL npn 992 -48 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 704 2208 R0
SYMATTR InstName R34
SYMATTR Value 10k
SYMBOL res 1040 320 R0
SYMATTR InstName R7
SYMATTR Value 22
SYMBOL npn 1808 -48 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res 1856 320 R0
SYMATTR InstName R11
SYMATTR Value 22
SYMBOL res 336 640 R0
SYMATTR InstName R15
SYMATTR Value 1k
SYMBOL res 736 1200 R0
SYMATTR InstName R19
SYMATTR Value 22
SYMBOL res 704 3200 R0
SYMATTR InstName R35
SYMATTR Value 1k
SYMBOL res 1376 1200 R0
SYMATTR InstName R22
SYMATTR Value 220
SYMBOL res 1152 2688 R0
SYMATTR InstName R25
SYMATTR Value 10k
SYMBOL res 1984 -240 R0
SYMATTR InstName R13
SYMATTR Value 1k
SYMBOL nmos 2816 1680 R0
SYMATTR InstName M10
SYMATTR Value 2N7002
SYMBOL pmos 208 1952 M180
SYMATTR InstName M13
SYMATTR Value BSS84
SYMBOL res 240 2208 R0
SYMATTR InstName R27
SYMATTR Value 10k
SYMBOL res 208 1200 R0
SYMATTR InstName R16
SYMATTR Value 22
SYMBOL res 448 2688 R0
SYMATTR InstName R26
SYMATTR Value 10k
SYMBOL res 384 -192 R0
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL npn 400 3088 R0
SYMATTR InstName Q8
SYMATTR Value 2N3904
SYMBOL npn 144 80 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res 848 -192 R0
SYMATTR InstName R5
SYMATTR Value 1k
SYMBOL npn 1104 3088 R0
SYMATTR InstName Q10
SYMATTR Value 2N3904
SYMBOL nmos 2688 1824 R0
SYMATTR InstName M9
SYMATTR Value 2N7002
SYMBOL npn 1936 -128 R0
SYMATTR InstName Q7
SYMATTR Value 2N3904
FLAG 512 -80 Out
FLAG 0 128 In
FLAG 1168 -80 Out2
FLAG 1328 2864 osc_out2