diff options
Diffstat (limited to '275/CH2/EX2.2.58/Ch2_2_58.sce')
-rwxr-xr-x | 275/CH2/EX2.2.58/Ch2_2_58.sce | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/275/CH2/EX2.2.58/Ch2_2_58.sce b/275/CH2/EX2.2.58/Ch2_2_58.sce index 3c4b2986f..f56f86001 100755 --- a/275/CH2/EX2.2.58/Ch2_2_58.sce +++ b/275/CH2/EX2.2.58/Ch2_2_58.sce @@ -1,31 +1,30 @@ -clc
-disp("Example 2.58")
-printf("\n")
-disp("Design a voltage regulator using zener diode to meet following specification")
-printf("Given\n")
-printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n")
-//unregulated dc input voltage
-Vimin=20
-Vimax=30
-//regulated dc output voltage
-Vo=10
-//minimum zener current
-Izmin=2*10^-3
-//maximum zener current
-Izmax=100*10^-3
-//load current
-ILmin=0
-ILmax=25*10^-3
-//load resistance
-RL=Vo/ILmax
-//maximum Resistance
-Rmax=(Vimin-Vo)/(Izmin+ILmax)
-//minimum resistance
-Rmin=(Vimax-Vo)/(Izmax+ILmin)
-//Required resistance
-R=(Rmax+Rmin)/2
-printf("minimum resistance %d ohm \n",Rmin)
-printf("maximum resistance %d ohm \n",Rmax)
-printf("required resistance %d ohm \n",R)
-printf("load resistance %d ohm \n",RLmin)
-
+clc +disp("Example 2.58") +printf("\n") +disp("Design a voltage regulator using zener diode to meet following specification") +printf("Given\n") +printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n") +//unregulated dc input voltage +Vimin=20 +Vimax=30 +//regulated dc output voltage +Vo=10 +//minimum zener current +Izmin=2*10^-3 +//maximum zener current +Izmax=100*10^-3 +//load current +ILmin=0 +ILmax=25*10^-3 +//load resistance +RL=Vo/ILmax +//maximum Resistance +Rmax=(Vimin-Vo)/(Izmin+ILmax) +//minimum resistance +Rmin=(Vimax-Vo)/(Izmax+ILmin) +//Required resistance +R=(Rmax+Rmin)/2 +printf("minimum resistance %d ohm \n",Rmin) +printf("maximum resistance %d ohm \n",Rmax) +printf("required resistance %d ohm \n",R) +printf("load resistance %d ohm \n",RL)
\ No newline at end of file |