blob: 687474bf538c26c3b62e00aace2ee8320046b9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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');
|