add a resistor ladder on the d flip flop outputs and you get a dac. AND gate is removed, pin2 is a passthrough
attach a r2r ladder and a non-inverting op-amp on the output and you can control the adc output
# | Input | Output |
---|---|---|
0 | clock | segment a |
1 | reset | segment b |
2 | none | segment c |
3 | none | segment d |
4 | none | segment e |
5 | none | segment f |
6 | none | segment g |
7 | none | none |