From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3754/CH24/EX24.9/24_9.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 3754/CH24/EX24.9/24_9.sce (limited to '3754/CH24/EX24.9/24_9.sce') diff --git a/3754/CH24/EX24.9/24_9.sce b/3754/CH24/EX24.9/24_9.sce new file mode 100644 index 000000000..adb6c6446 --- /dev/null +++ b/3754/CH24/EX24.9/24_9.sce @@ -0,0 +1,30 @@ +clear// + +//Variables + +VCC = 20.0 //Source voltage (in volts) +RC = 5.7 //Collector resistance (in kilo-ohm) +RE = 1.0 //Emitter resistance (in kilo-ohm) +beta = 100.0 //Common emitter current gain +VBE = 0.7 //Emitter-to-Base Voltage (in volts) +R1 = 100.0 //Resistance (in kilo-ohm) +R2 = 10.0 //Resistance (in kilo-ohm) +Vs = 10.0 * 10**-3 //a.c voltage (in volts) +RS = 100.0 * 10**-3 //Source resistance (in kilo-ohm) + +//Calculation + +Vth = VCC * R2 /(R1 + R2) //Thevenin's voltage (in volts) +Rth = R1 * R2 / (R1 + R2) //Thevenin's equivalent resistance (in kilo-ohm) +IE = (Vth - VBE)/(RE + Rth/beta) //Emitter current (in milli-Ampere) +r1e = 25.0 / IE * 10**-3 //a.c. resistance of emitter diode (in kilo-hm) +Ris = Rth * beta*r1e/(Rth + beta*r1e) //input resistance of the stage (in ohm) +rL = RC //Load resistance (in kilo-ohm) +Av = rL / r1e //Voltage gain +vin = Vs * Ris / (Ris + RS) //input voltage (in milli-volts) +vo = Av * vin //Output voltage (in milli-volts) +Avs = Av * vin / Vs //Overall voltage gain + +//Result + +printf("\n Av is %0.3f .\nRi is %0.2f ohm.\nVo is %0.2f V.\nAvs is %0.2f .",Av,Ris*10**3,vo,Avs) -- cgit