* Z:\tmp\asc_dec_bjh7r6w2\04a8c385d606_aoi_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
R2 N008 N009 220
D1 N008 OUT BAT54
Q11 N015 N012 INT2c 0 2N3906
R101 BIT1 0 10Mega
M1 OUTc N011 N010 N010 BSS84
R5 N001 N005 520
R1 N007 N008 220
V_BIT4 BIT4 0 PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
C2 OUT N002 50p
R102 BIT2 0 10Mega
V_BIT0 BIT0 0 PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps}) AC 5
R104 BIT4 0 10Mega
VCC VCC 0 {VCC}
R8 N011 N015 52
.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 14868 10612
WIRE -288 80 -304 80
WIRE -272 80 -288 80
WIRE -144 80 -160 80
WIRE -128 80 -144 80
WIRE -304 208 -304 80
WIRE -160 208 -160 80
WIRE 2448 416 2208 416
WIRE 2736 416 2448 416
WIRE 2448 448 2448 416
WIRE -304 480 -304 272
WIRE -160 480 -160 272
WIRE 2560 576 2208 576
WIRE 2672 576 2560 576
WIRE -752 912 -752 880
WIRE 2896 976 2896 416
WIRE -752 1008 -752 992
WIRE 2448 1024 2448 528
WIRE 2832 1024 2560 1024
WIRE 3184 1072 3184 688
WIRE 3280 1072 3184 1072
WIRE 3344 1072 3280 1072
WIRE 2736 1104 2736 624
WIRE 2896 1104 2896 1072
WIRE 2896 1104 2736 1104
WIRE 2896 1120 2896 1104
WIRE 3088 1184 3024 1184
WIRE 3184 1184 3184 1072
WIRE 3184 1184 3152 1184
WIRE 3184 1232 3184 1184
WIRE 2896 1280 2896 1200
WIRE 3024 1280 3024 1184
WIRE 3024 1280 2896 1280
WIRE 3120 1280 3024 1280
WIRE 2896 1344 2896 1280
WIRE 2896 1472 2896 1424
WIRE 2896 1472 2448 1472
WIRE 3184 1472 3184 1328
WIRE 3184 1472 2896 1472
WIRE 3184 2288 3184 1824
WIRE 3136 2304 3008 2304
WIRE 2448 2432 2448 1936
WIRE 2560 2432 2448 2432
WIRE 2832 2432 2560 2432
WIRE 2448 2464 2448 2432
WIRE 2448 2464 2320 2464
WIRE 3184 2480 3184 2384
WIRE 3280 2480 3184 2480
WIRE 3344 2480 3280 2480
WIRE 2448 2496 2448 2464
WIRE 2384 2544 1904 2544
WIRE 2896 2592 2896 2512
WIRE 3008 2592 3008 2304
WIRE 3008 2592 2896 2592
WIRE 3184 2640 3184 2480
WIRE 2320 2672 2320 2464
WIRE 2256 2720 1904 2720
WIRE 3008 2720 3008 2592
WIRE 3136 2720 3008 2720
WIRE 2896 2752 2896 2592
WIRE 2320 2880 2320 2768
WIRE 2448 2880 2448 2592
WIRE 2896 2880 2896 2832
WIRE 2896 2880 2448 2880
WIRE 3184 2880 2896 2880
SYMBOL res 2880 1328 R0
SYMATTR InstName R2
SYMATTR Value 220
SYMBOL schottky 3088 1200 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 pnp 2384 2592 M180
SYMATTR InstName Q11
SYMATTR Value 2N3906
SYMBOL res -944 1440 R0
SYMATTR InstName R101
SYMATTR Value 10Mega
SYMBOL pmos 3136 2384 M180
SYMATTR InstName M1
SYMATTR Value BSS84
SYMBOL res 2432 432 R0
SYMATTR InstName R5
SYMATTR Value 520
SYMBOL res 2880 1104 R0
SYMATTR InstName R1
SYMATTR Value 220
SYMBOL voltage 144 1472 R90
WINDOW 123 -77 30 VRight 2
WINDOW 39 0 0 Left 0
WINDOW 0 -51 28 VRight 2
WINDOW 3 46 -379 VRight 2
SYMATTR InstName V_BIT4
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
SYMBOL cap -320 208 R0
SYMATTR InstName C2
SYMATTR Value 50p
SYMBOL res -784 1440 R0
SYMATTR InstName R102
SYMATTR Value 10Mega
SYMBOL voltage 144 880 R90
WINDOW 123 -77 30 VRight 2
WINDOW 39 0 0 Left 0
WINDOW 0 -51 28 VRight 2
WINDOW 3 46 -379 VRight 2
SYMATTR Value2 AC 5
SYMATTR InstName V_BIT0
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps})
SYMBOL res -464 1440 R0
SYMATTR InstName R104
SYMATTR Value 10Mega
SYMBOL voltage -752 896 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL res 2880 2736 R0
SYMATTR InstName R8
SYMATTR Value 52
FLAG -752 1008 0
FLAG 128 880 BIT0
FLAG -752 880 VCC
FLAG 48 880 0
FLAG 128 1040 BIT1
FLAG 48 1040 0
FLAG 128 1328 BIT3
FLAG 48 1328 0
FLAG 128 1472 BIT4
FLAG 48 1472 0
FLAG -1088 1456 BIT0
FLAG -1088 1536 0
FLAG -928 1456 BIT1
FLAG -928 1536 0
FLAG -768 1456 BIT2
FLAG -768 1536 0
FLAG -608 1456 BIT3
FLAG -608 1536 0
FLAG -448 1456 BIT4
FLAG -448 1536 0
FLAG 3280 1072 OUT
FLAG 2560 576 INT1
FLAG -288 80 OUT
FLAG -144 80 OUT_NN
FLAG 3280 2480 OUTc
FLAG 2560 2432 INT2c