blob: 520a4cf693d8b27801b6015e2e8d52f6a28f02d0 (
plain)
1
2
3
4
5
6
7
8
9
|
// Calculating reference voltage and percentage change
clc;
E=10;
ER=E*256/255;
disp(ER,'Reference voltage (V)=')
n=8;
CVlsb=(2^-n)*ER;
PC=CVlsb*100/E;
disp(PC,'Percentage change =')
|