summaryrefslogtreecommitdiff
path: root/1757/CH6/EX6.2/EX6_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH6/EX6.2/EX6_2.sce')
-rwxr-xr-x1757/CH6/EX6.2/EX6_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1757/CH6/EX6.2/EX6_2.sce b/1757/CH6/EX6.2/EX6_2.sce
new file mode 100755
index 000000000..d8fb5f7ba
--- /dev/null
+++ b/1757/CH6/EX6.2/EX6_2.sce
@@ -0,0 +1,15 @@
+//Example6.2 // design an inverting amplifier with a closed loop voltage gain of Av = 10
+clc;
+clear;
+close;
+Av = 10 ;
+Vin = 0.8 ; //V
+Iin = 100*10^-6 ; // A
+// in an non- inverting amplifier the input voltage Vin=V1=V2 because of vortual short effect then the i/p current In = Vin/R1
+R1 = Vin/Iin;
+disp('the value of resistance R1 is = '+string(R1)+' ohm');
+
+// closed loop voltage gain of an non-inverting amplifier
+//Av = Vo/Vin = (1+R2/R1)
+R2 = (Av-1)*R1;
+disp('the value of resistance R2 is = '+string(R2)+' ohm');