Design of a three bit binary weighted resistor DAC