From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1757/CH6/EX6.1/EX6_1.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1757/CH6/EX6.1/EX6_1.sce (limited to '1757/CH6/EX6.1/EX6_1.sce') 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'); -- cgit