summaryrefslogtreecommitdiff
path: root/3682/CH2/EX2.3/Ex2_3.sce
blob: 317bbd0ab84a6a3233e7fd5b09bfddc4ff38c6e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Exa 2.3

clc;
clear;

// Given data

// Single op-amp amplifier.
ACL = 5; // Required gain(positive) 

// Solution

disp("Since the gain is positive, we have to make a non-inverting amplifier.");
disp("Referring Fig. 2.7(a), select R1 = 10 kΩ.");
R1 = 10*10^3; //Input resistance in Ω
// Then from eqn. (2.20), we get, ACL = 1+ (Rf/R1);
// Therefore
Rf = (ACL-1)*R1;  //Feedback resistance in Ω   
printf(' The calculated feedback resistance of amplifier i.e Rf = %d kΩ.\n',Rf/1000);