blob: f56f860015d1dc287dd1f39bbd8d74827c6c4e71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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",RL)
|