summaryrefslogtreecommitdiff
path: root/1217/CH9/EX9.5/Exa9_5.sce
blob: 6e0b9db892dbc3bffe70ec67b5c5389a03ca1dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Exa 9.5
clc;
clear;
close;
//given data
//for the given IC LM317: 
Iadj=100;//in micro amperes
Vref=1.25;//in volts
R1=240;//in ohms
//we have output equation Vo=Vref(1+R2/R1)+R2*Iadj
R2min=0;//in ohms
R2max=3000;//in ohms
Vomin=Vref*(1+R2min/R1)+R2min*Iadj*10^-6;//in volts
Vomax=Vref*(1+R2max/R1)+R2max*Iadj*10^-6;//in volts
disp(Vomin,"Minimum output voltage(in volts) is : ")
disp(Vomax,"Maximum output voltage(in volts) is : ")