blob: 9820129f790de1d2ad13f35704890b80fc32009e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Exa 4.1
clc;
clear;
// Given data
// To design an adder circuit as shown in Fig. 4.2(a)
// Vo = -(0.1*V1+V2+10*V3);
// V1,V2,V3 are the inputs
// Solution
printf(' The output in Fig. 4.2(a) is - \n Vo = -[(Rf/R1)*V1 + (Rf/R2)*V2 + (Rf/R3)*V3].');
printf('\n The desired output is -\n Vo = [(0.1)*V1 + (1)*V2 + (10)*V3].');
printf('\n\n Comparing above two equations,');
printf('\n We can say, Let Rf = 10 kΩ, R1 = 100 kΩ and R2 = 10 kΩ and R3 = 1 kΩ.\n');
printf('\n Thus, the desired output expression is obtained.');
|