summaryrefslogtreecommitdiff
path: root/2459/CH20/EX20.8/Ex20_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH20/EX20.8/Ex20_8.sce')
-rw-r--r--2459/CH20/EX20.8/Ex20_8.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2459/CH20/EX20.8/Ex20_8.sce b/2459/CH20/EX20.8/Ex20_8.sce
new file mode 100644
index 000000000..42392619e
--- /dev/null
+++ b/2459/CH20/EX20.8/Ex20_8.sce
@@ -0,0 +1,23 @@
+//chapter20
+//example20.8
+//page441
+
+Ic=1 // A
+gain=50
+Vout=6 // V
+Vbe=0.5 // V
+Vin=10 // V
+Iz=10d-3 // A
+
+Ib=Ic/gain
+Vz=Vbe+Vout // Vout=Vz-Vbe
+
+V_Rs=Vin-Vz
+Rs=V_Rs/(Ib+Iz)
+
+printf("required breakdown voltage for zener diode = %.3f V \n",Vz)
+printf("required value of Rs = %.3f ohm \n",Rs)
+
+// in book Rs=117 ohm but accurate answer is 116.667 ohm
+
+// note : in xcos, there is no Zener diode so in the result (circuit) file a simple diode is used to represent a zener diode