blob: c625cbc477d3d2e283d900d4ce9929234e263c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
////Ex 13.5
clc;
clear;
close;
format('v',6);
Vout=15;//V
Vin=20;//V
INL=2;//mA(INL=Iadj+Iref)
Iadj=60;//mA(Assumed)
Iref=INL-Iadj/1000;//mA
Vref=1.25;//V
R1=Vref/Iref*1000;//ohm
VR2=Vout-Vref;//V
R2=VR2/INL*1000;//ohm
disp("Design values are : ");
disp(R1,"Resistance, R1(ohm)");
disp(R2/1000,"Resistance, R2(kohm)");
|