diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1757/CH6/EX6.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1757/CH6/EX6.1')
-rwxr-xr-x | 1757/CH6/EX6.1/EX6_1.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1757/CH6/EX6.1/EX6_1.sce b/1757/CH6/EX6.1/EX6_1.sce new file mode 100755 index 000000000..687474bf5 --- /dev/null +++ b/1757/CH6/EX6.1/EX6_1.sce @@ -0,0 +1,22 @@ +//Example6.1 // design an inverting amplifier with a closed loop voltage gain of Av = -5
+clc;
+clear;
+close;
+Av = -5 ;
+Is = 5*10^-6 ; // A
+Rs = 1*10^3 ; // ohm
+// input voltage source Vs = sinwt volts
+
+// in an inverting amplifier frequency effect is neglected then i/p volt Vin = 1 V and total resistance equal to Rs+R1
+
+// the input current can be written as Iin=Is
+// Is = (Vin/Rs+R1);
+Iin = Is;
+Vin = 1 ; // V
+R1 = (1-(Iin*Rs))/Iin ;
+disp('the value of resistance R1 is = '+string(R1)+' ohm');
+
+// closed loop voltage gain of an inverting amplifier
+//Av = -(R2/Rs+R1)
+R2 = -(Av*(Rs+R1));
+disp('the value of resistance R2 is = '+string(R2)+' ohm');
|