Binary weighted resistor dac