summaryrefslogtreecommitdiff
path: root/3515/CH1/EX1.7/Ex1_7.sce
blob: 36bf0cb8bc4af115355cf8fb2c5140d6f7eaa681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Exa 1.7
format('v',7);
clc;
clear;
close;
// Given data
V1= 745;// in µV
V2= 740;// in µV
V1=V1*10^-6;// in volt
V2=V2*10^-6;// in volt
CMRR=80;// in dB
Av=5*10^5;
// (i)
// CMRR in dB= 20*log(Ad/Ac)
Ad=Av;
Ac= Ad/10^(CMRR/20);
// (ii)
Vo= Ad*(V1-V2)+Ac*(V1+V2)/2;
disp(Vo,"Output voltage in volt is : ")

// Note:- In the book, there is calculation error to evaluate the value of Ac, so the value of Ac is wrong ans to evaluate the output voltage there is also calculation error