summaryrefslogtreecommitdiff
path: root/199/CH6/EX6.13/Example_6_13.sce
blob: 45ca1bd59510fe6dba595cb5d64096040537c79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Chapter6
// Page.No-222, Figure.No-6.20
// Example_6_13
// Range of output voltage
// Given
clear;clc;
R1=1*10^3;Rf=2.7*10^3;
Vref=2;
Io=0; // Since all the binary inputs D0 to D7 are logic zero
Vo_min=Io*Rf; // Minimum output voltage
printf("\n Minimum output voltage is = %.f V \n",Vo_min)
Io=(Vref/R1)*(1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256);
Vo_max=Io*Rf; // Maximum output voltage
printf("\n Maximum output voltage is = %.2f V \n",Vo_max)