summaryrefslogtreecommitdiff
path: root/1757/CH14/EX14.9/EX14_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH14/EX14.9/EX14_9.sce')
-rwxr-xr-x1757/CH14/EX14.9/EX14_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1757/CH14/EX14.9/EX14_9.sce b/1757/CH14/EX14.9/EX14_9.sce
new file mode 100755
index 000000000..b8dfec1c4
--- /dev/null
+++ b/1757/CH14/EX14.9/EX14_9.sce
@@ -0,0 +1,18 @@
+// Example14.9 // determine the output voltage of the audio power amplifier IC LM380
+clc;
+clear;
+close;
+Vcc = 10 ; // V
+Ic3 = 0.01*10^-6 ; // A // collector current of the transistor Q3
+Ic4 = 0.01*10^-6 ; // A // collector current of the transistor Q4
+R11 = 25*10^3 ; // ohm
+R12 = 25*10^3 ; // ohm
+
+// the collector current of Q3 is defined as
+ // Ic3 = (Vcc-3*Veb)/(R11+R12);
+Veb = (Vcc-(R11+R12)*Ic3)/3 ;
+disp('The emitter bias voltage is = '+string(Veb)+' V ');
+
+// the output voltage of the IC LM380
+Vo = (1/2)*Vcc+(1/2)*Veb;
+disp('The output voltage of the IC LM380 is = '+string(Vo)+' V ');