blob: 0b3e99d425a6329a9801c565d0c03250da5a4044 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Chapter-2,Example2_4,pg 2_12
Res=20*10^-3
n=8
Vofs=Res*((2^n)-1)
D=bin2dec('10000000')
Vo=Res*D
printf("output voltage\n")
printf("Vo=%.2f V\n",Vo)
printf("full scale output voltage\n")
printf("Vofs=%.2f V",Vofs)
|