ok, now I go resistive instead of capacitive style.
anyways, I could pull off a circuit which gives me a unique resistance based on a 4-bit binary output.
I'm using a 74HC393 binary counter.
I want to have it so that the output pins of the counter are the same as VCC, or floating (resistance is higher than the highest resistor available in the market).
I could get away with it by adding a diode in series with the resistor, because a diode can't accept small reverse currents.
But is there a way I can do it without the diodes?
I'm doing this because I'm making a digital voltage divider and I don't want any internal resistances (connected to the output pins of the IC) to interfere.