summaryrefslogtreecommitdiff
path: root/3754/CH20/EX20.10/20_10.sce
blob: d26e1764a680dc2c3360b68957ef4186faf283a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear//

//Variables

VZ = 10.0                                //Zener voltage (in volts)
VSmin = 13.0                             //Minimum source voltage (in volts)
VSmax = 16.0                             //Maximum source voltage (in volts)
ILmin = 10.0                             //Minimum load current (in milli-Ampere)
ILmax = 85.0                             //Maximum load current (in milli-Ampere)
IZmin = 15.0                             //Minimum zener current (in milli-Ampere)

//Calculation

RSmax = (VSmin - VZ)/ (IZmin + ILmax)    //Maximum value of RS (in kilo-ohm)
IZmax = (VSmax - VZ)/ RSmax - ILmin      //Maximum zener current (in milli-Ampere)
PZmax = IZmax * 10**-3 * VZ              //Maximum power dissipation in zener (in watt)

//Result

printf("\n Maximum value of RS is  %0.3f  ohm.\nMaximum power dissipation be the zener diode is  %0.3f  W.",RSmax*10**3,PZmax)