summaryrefslogtreecommitdiff
path: root/2300/CH14/EX14.12.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2300/CH14/EX14.12.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2300/CH14/EX14.12.3')
-rwxr-xr-x2300/CH14/EX14.12.3/Ex14_3.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/2300/CH14/EX14.12.3/Ex14_3.sce b/2300/CH14/EX14.12.3/Ex14_3.sce
new file mode 100755
index 000000000..ed45ef486
--- /dev/null
+++ b/2300/CH14/EX14.12.3/Ex14_3.sce
@@ -0,0 +1,32 @@
+//scilab 5.4.1
+//Windows 7 operating system
+//chapter 14 Integrated Circuits and Operational Amplifiers
+clc
+clear
+//First case
+v1=40*10^-6//v1=voltage applied to the non-inverting input terminal
+v2=-40*10^-6//v2=voltage applied to the inverting input terminal
+vo=100*10^-3//vo=output voltage for the above inputs v1 and v2
+//Second case
+V1=40*10^-6//V1=voltage applied to the non-inverting input terminal
+V2=40*10^-6//V2=voltage applied to the inverting input terminal
+Vo=0.4*10^-3//Vo=output voltage for the above inputs V1 and V2
+disp("In first case:")
+vd=v1-v2//vd=difference signal voltage
+disp("µV",vd/10^-6,"vd=")
+vc=(v1+v2)/2//vc=common mode signal voltage
+format("v",5)
+disp("µV",vc/10^-6,"vc=")
+//Output voltage is vo=(Ad*vd)+(Ac*vc) where Ad and Ac are the voltage gains for the difference signal and the common-mode signal,respectively
+Ad=vo/vd//Ad calculated in first case as common mode signal vc=0
+disp(Ad,"Voltage gain for the difference signal is Ad =")
+disp("In second case:")
+Vd=V1-V2//Vd=difference signal voltage
+disp("µV",Vd/10^-6,"Vd=")
+Vc=(V1+V2)/2//Vc=common mode signal voltage
+format("v",5)
+disp("µV",Vc/10^-6,"Vc=")
+Ac=Vo/Vc//Ac calculated in second case as difference signal Vc=0
+disp(Ac,"Voltage gain for the common-mode signal is Ac =")
+CMRR=abs(Ad/Ac)//CMRR=Common Mode Rejection Ratio=|Ad/Ac|
+disp(CMRR,"Common Mode Rejection Ratio is CMRR=")