R1 = 2.7e3;
R2 = 4.8e3;
R5 = 5.38e3;
Vref = 5.6; %V

%A = 255
%V_DA = R2*Vref*( (A/(R1 * 256)) - 1/R5)
for V_DA = [-5 -2 -1 0 1 2 5]
    A = 256*R1*(V_DA/(R2*Vref) + 1/R5)
end
