summaryrefslogtreecommitdiff
path: root/506/CH15/EX15.1.b/Example15_1b.sce
blob: cff68fc65015b2a074f910ba9068a9fb1f8ec549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
clear;
clc;

//Caption:difference in output voltage for two set of output signals when Common Mode Rejection Ratio =10000
//Given Data
//First Set of Input Signal
v11=50;//in microV
v21=-50;//in microV
//Second Set of Input Signal
v12=1050;//in microV
v22=950;//in microV
p=100;//Common Mode Rejection Ratio

//Required Formulae
//vo = Ad*vd*(1+vc/p*vd) .... p = commom mode rejection ratio
//Ad  will be same for both case, So let us write Vo = vo/Ad = Ad*(1+vc/p*vd)

//First Set of Values
vd1=v11-v21;//in microV
vc1=(v11+v21)/2;//in microV
Vo1 = vd1*(1+vc1/(p*vd1));

//Second Set of Values
vd2=v12-v22;//in microV
vc2=(v12+v22)/2;//in microV
Vo2 = vd2*(1+vc2/(p*vd2));


//Now we have to calculate the same thing with common mode rejection ratio = 10000

p=10000;//Common Mode Rejection Ratio

//First Set of Values
vd1=v11-v21;//in microV
vc1=(v11+v21)/2;//in microV
Vo1 = vd1*(1+vc1/(p*vd1));

//Second Set of Values
vd2=v12-v22;//in microV
vc2=(v12+v22)/2;//in microV
Vo2 = vd2*(1+vc2/(p*vd2));

disp(100*(Vo2-Vo1)/Vo1,'Percentage difference in output signal=');

//end