diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2534/CH14 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2534/CH14')
-rwxr-xr-x | 2534/CH14/EX14.1/Ex14_1.sce | 10 | ||||
-rwxr-xr-x | 2534/CH14/EX14.2/Ex14_2.sce | 6 | ||||
-rwxr-xr-x | 2534/CH14/EX14.3/Ex14_3.sce | 16 | ||||
-rwxr-xr-x | 2534/CH14/EX14.4/Ex14_4.sce | 18 | ||||
-rwxr-xr-x | 2534/CH14/EX14.7/Ex14_7.sce | 8 |
5 files changed, 58 insertions, 0 deletions
diff --git a/2534/CH14/EX14.1/Ex14_1.sce b/2534/CH14/EX14.1/Ex14_1.sce new file mode 100755 index 000000000..fb94fbbb8 --- /dev/null +++ b/2534/CH14/EX14.1/Ex14_1.sce @@ -0,0 +1,10 @@ +//Ex14_1
+clc
+Ad = 100//differential gain
+Ac = 0.01//common mode gain
+CMRR = Ad/Ac//Common Mode Rejection Ratio
+CMRR_dB = 20*log10(CMRR)//Common Mode Rejection Ratio in decibles
+disp("Ad = "+string(Ad))
+disp("Ac = "+string(Ac))
+disp("CMRR = Ad/Ac = "+string(CMRR))
+disp("CMRR = "+string(CMRR_dB)+"dB")
diff --git a/2534/CH14/EX14.2/Ex14_2.sce b/2534/CH14/EX14.2/Ex14_2.sce new file mode 100755 index 000000000..3aec5896c --- /dev/null +++ b/2534/CH14/EX14.2/Ex14_2.sce @@ -0,0 +1,6 @@ +//Ex14_2
+clc
+CMRR_dB = 100//Common Mode Rejection Ratio in decibles
+CMRR = 10^(100/20)//CMRR as a ratio
+disp("CMRR = "+string(CMRR_dB)+"dB")
+disp("CMRR = 10^(100/20) = "+string(CMRR))
diff --git a/2534/CH14/EX14.3/Ex14_3.sce b/2534/CH14/EX14.3/Ex14_3.sce new file mode 100755 index 000000000..ca4d524a0 --- /dev/null +++ b/2534/CH14/EX14.3/Ex14_3.sce @@ -0,0 +1,16 @@ +//Ex14_3
+clc
+Rf = 10*10^3//feedback resistance
+R1 = 10*10^3//resistance 1
+R2 = 2*10^3//resistance 2
+v1 = 10//input voltage across resistance 1
+v2 = 4//input voltage across resistance 2
+//note: according to the given fig. in the textbook for the question we have:
+
+vo = -Rf*((v1/R1)+(v2/R2))//output voltage of adder circuit
+disp("Rf = "+string(Rf)+"ohm")
+disp("R1 = "+string(R1)+"ohm")
+disp("R2 = "+string(R2)+"ohm")
+disp("v1 = "+string(v1)+"V")
+disp("v2 = "+string(v2)+"V")
+disp("vo = -Rf*((v1/R1)+(v2/R2)) = "+string(vo)+"V")
diff --git a/2534/CH14/EX14.4/Ex14_4.sce b/2534/CH14/EX14.4/Ex14_4.sce new file mode 100755 index 000000000..d5aed62b1 --- /dev/null +++ b/2534/CH14/EX14.4/Ex14_4.sce @@ -0,0 +1,18 @@ +//Ex14_4
+clc
+Rf = 1*10^3//feedback resistance
+R1 = 1*10^3//resistance 1
+R2 = 1*10^3//resistance 2
+R3 = 1*10^3//resistance 3
+v1 = 2//input voltage 1
+v2 = 1//input voltage 2
+v3 = 3//input voltage 3
+vo = -Rf*((v1/R1)+(v2/R2)+(v3/R3))//output voltage of adder circuit
+disp("Rf = "+string(Rf)+"ohm")
+disp("R1 = "+string(R1)+"ohm")
+disp("R2 = "+string(R2)+"ohm")
+disp("R3 = "+string(R3)+"ohm")
+disp("v1 = "+string(v1)+"V")
+disp("v2 = "+string(v2)+"V")
+disp("v3 = "+string(v3)+"V")
+disp("vo = -Rf*((v1/R1)+(v2/R2)+(v3/R3)) = "+string(vo)+"V")
diff --git a/2534/CH14/EX14.7/Ex14_7.sce b/2534/CH14/EX14.7/Ex14_7.sce new file mode 100755 index 000000000..eebd1134e --- /dev/null +++ b/2534/CH14/EX14.7/Ex14_7.sce @@ -0,0 +1,8 @@ +//Ex14_7
+clc
+Af = -20//closed loop gain of op-amp
+R = 10*10^3//output resistance
+Rf = -Af*R//feedback resistance
+disp("Af = "+string(Af))
+disp("R = "+string(R)+"ohm")
+disp("Rf = -Af/R = "+string(Rf)+"ohm")
|