//Example 9.32 clc disp("For the given DAC,") disp(" n = Number of bits = 8") disp("(i) Resolution = 2^n = 2^8 = 256") disp("i.e. the output voltage can have 256 different values including zero.") disp("(ii) V_0FS = Full scale output voltage") disp(" = 2.55 V") disp("Therefore, Resolution = V_0FS / 2^n - 1 = 2.55 / 2^8 - 1 = 10mV / 1LSB") disp("Thus an input change of 1LSB causes the output to change by 10mV")