From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1757/CH6/EX6.9/EX6_9.sce | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 1757/CH6/EX6.9/EX6_9.sce (limited to '1757/CH6/EX6.9/EX6_9.sce') diff --git a/1757/CH6/EX6.9/EX6_9.sce b/1757/CH6/EX6.9/EX6_9.sce new file mode 100755 index 000000000..2ec833c25 --- /dev/null +++ b/1757/CH6/EX6.9/EX6_9.sce @@ -0,0 +1,48 @@ +// Example6.9 // determine Vo when 1) VI1 = 2 V VI2 = -2 V and 2) VI1 = 2 V VI2 = 2 V +// and common mode rejection ratio CMRR +clc; +clear; +close; +R1 = 10*10^3 ; // ohm +R2 = 20*10^3 ; // ohm +R3 = 10*10^3 ; // ohm +R4 = 22*10^3 ; // ohm + + +// the output of the difference amplifier is given by +// Vo = (((R4)/(R3+R4))*(((1+(R2/R1))*VI2))-((R2/R1)*VI1)); + +// Case 1 when VI1 = 2 V VI2 = -2 V +VI1 = 2 ; +VI2 = -2 ; + +Vo = (((R4)/(R3+R4))*(((1+(R2/R1))*VI2))-((R2/R1)*VI1)); +disp('The output of the difference amplifier is = '+string(Vo)+' V '); + +// case 2 when VI1 = 2 V VI2 = 2 V +VI1 = 2 ; +VI2 = 2 ; + +Vo = (((R4)/(R3+R4))*(((1+(R2/R1))*VI2))-((R2/R1)*VI1)); +disp('The output of the difference amplifier is = '+string(Vo)+' V '); + +// the common mode input of difference amplifier is given by +VCM = (VI2+VI1)/2 ; +disp('the common mode input of difference amplifier is = '+string(VCM)+' '); + +// the common mode gain ACM of difference amplifier is given by +ACM = Vo/VCM +disp('the common mode gain ACM of difference amplifier is = '+string(ACM)+' '); + +// the differential gain of the difference amplifier is given +Ad = R2/R1 ; +disp('the differential gain of the difference amplifier is = '+string(Ad)+' '); + +// the common mode rejection ratio CMRR is +CMRR = abs(Ad/ACM); +disp('The common mode rejection ratio CMRR is = '+string(CMRR)+' '); + +// in decibal it can be expressed as +CMRR = 20*log10(CMRR); +disp('The common mode rejection ratio CMRR in decibel is = '+string(CMRR)+' dB '); + -- cgit