summaryrefslogtreecommitdiff
path: root/3754/CH20/EX20.9/20_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH20/EX20.9/20_9.sce')
-rw-r--r--3754/CH20/EX20.9/20_9.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3754/CH20/EX20.9/20_9.sce b/3754/CH20/EX20.9/20_9.sce
new file mode 100644
index 000000000..59b7f2a24
--- /dev/null
+++ b/3754/CH20/EX20.9/20_9.sce
@@ -0,0 +1,19 @@
+clear//
+
+//Variables
+
+VZ = 10.0 //Zener voltage (in volts)
+RS = 1.0 //Series Resistance (in kilo-ohm)
+RL = 2.0 //Load Resistance (in kilo-ohm)
+VSmin = 22.0 //Minimum source voltage (in volts)
+VSmax = 40 //Maximum source voltage (in volts)
+
+//Calculation
+
+IL = VZ / RL //Load current (in milli-Ampere)
+IZmax = (VSmax - VZ) / RS - IL //Maximum value of zener current (in milli-Ampere)
+IZmin = (VSmin - VZ) / RS - IL //Minimum value of zener current (in milli-Ampere)
+
+//Result
+
+printf("\n Maximum value of zener current is %0.3f mA.\nMinimum value of zener current is %0.3f mA.",IZmax,IZmin)