summaryrefslogtreecommitdiff
path: root/53/CH3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /53/CH3
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 '53/CH3')
-rwxr-xr-x53/CH3/EX3.1/example_1.sce32
-rwxr-xr-x53/CH3/EX3.2/example_2.sce24
-rwxr-xr-x53/CH3/EX3.3/example_3.sce27
3 files changed, 83 insertions, 0 deletions
diff --git a/53/CH3/EX3.1/example_1.sce b/53/CH3/EX3.1/example_1.sce
new file mode 100755
index 000000000..7a2b2f6ab
--- /dev/null
+++ b/53/CH3/EX3.1/example_1.sce
@@ -0,0 +1,32 @@
+//example1:
+
+printf(" Given:")
+disp("The value of Rin=Rout=100kohms,Rload=1kohm,Kv=100")//To display given values
+Rin=100//assigning given values
+Rout=100
+Rload=1
+Kv=100
+disp("All resistances are in kohms")
+disp("The whole two stage amplifier is fed by a generator having a voltage of Eg=1mV when no load and having self resistance Rg=20kohms")
+Eg=(1/1000)//Eg converted to volts
+Rg=20//all resistances are in kohms
+disp("Since amplifiers are identical")//given
+disp("Rin1=Rin")
+disp("Rin2=Rin")
+disp("Rout1=Rout")
+disp("Rout2=Rout")
+Rin1=Rin//assigning given values
+Rin2=Rin
+Rout1=Rout
+Rout2=Rout
+disp("Vout2 is given by equation")
+disp("Vout2=((Eg)*(Rin1/(Rg+Rin1)))*(Kv)*(Rin2/(Rout1+Rin2))*(Kv)*(Rload/(Rout2+Rload))")
+Vout2=((Eg)*(Rin1/(Rg+Rin1)))*(Kv)*(Rin2/(Rout1+Rin2))*(Kv)*(Rload/(Rout2+Rload))//equation for Vout2
+printf(" Therefore Vout2=%f",Vout2)
+disp("Vin is given by equation ")
+disp("Vin=(Eg*(Rin1/Rg+Rin1))")
+Vin=(Eg*(Rin1/(Rg+Rin1)))//Equation for Vin
+disp("Now overall gain ")
+disp("Av=(Vout2/Vin)")
+Av=(Vout2/Vin)//Equation for Av
+printf(" Therefore Vout2=%f and overall voltage gain Av=%f",Vout2,Av)//To print the required values. \ No newline at end of file
diff --git a/53/CH3/EX3.2/example_2.sce b/53/CH3/EX3.2/example_2.sce
new file mode 100755
index 000000000..8ba7b7cf4
--- /dev/null
+++ b/53/CH3/EX3.2/example_2.sce
@@ -0,0 +1,24 @@
+
+rin=10000;//in ohms
+Kv=100;//constant for voltage-controlled voltage-source
+rout=1000;//in ohms
+//load resistance Rload
+Rload=4000;//in ohms
+C2=50*(10**-12);//in Farads
+disp('Vout=Vin*(input voltage coupling)*Kv*(output voltage coupling)');
+disp('(i)Mid band gain');
+disp('Av=(Vout/Vin)=Kv*(Rload/(rout+Rload))');
+Av=Kv*(Rload/(rout+Rload));
+disp('(ii)For the upper half-power frequency');
+disp('fu=(1/(2*%pi))*(1/(C2*(rout||Rload)))');
+fu=(1/(2*%pi))*(1/(C2*((rout*Rload)/(rout+Rload))));
+//Let coupling capacitance be C
+disp('(iii)For coupling capacitance C ');
+disp('fl=(1/(2*%pi))*(1/(C*rin))');
+fl=10;//given lower half-power frequency fl
+disp('C=1/(2*%pi*fl*rin)');
+C=1/(2*%pi*fl*rin);
+disp('RESULTS:\n');
+printf('(i)Mid-band gain=%d\n',Av);
+printf('(ii)Upper half-power frequency=%1.2f MHz\n',fu/(10**6));//fu divided by 10^6 to convert into MHz
+printf('(iii)Coupling capacitance C for fl to be 10Hz is %1.2f uF\n',C*(10**6));// C multiplied by 10^6 by convert to microFarads \ No newline at end of file
diff --git a/53/CH3/EX3.3/example_3.sce b/53/CH3/EX3.3/example_3.sce
new file mode 100755
index 000000000..f486a0341
--- /dev/null
+++ b/53/CH3/EX3.3/example_3.sce
@@ -0,0 +1,27 @@
+
+disp("given:")
+disp("The voltage generated by an transducer which is connected to differential amplifier is Vdm=50mV ")
+Vdm=50*(1/1000)//Vdm in volts
+disp("Vcm=5V")
+Vcm=5
+disp("Vout should be equal to 10V")
+Vout=10
+disp("The unwanted output component owing to the common-mode input is to be less than 1% of the wanted component i.e Voutcm=1% of Voutdm")
+Voutcm=(1/100)*10
+printf(" Voutcm=%f",Voutcm)
+disp("Let amplifier differential-mode gain be Adm")
+disp("Vout,Admand Vdm are related as")
+disp("Vout=Adm*Vdm------(1)")
+disp("Adm=Vout/Vdm")
+Adm=Vout/Vdm
+printf(" Therefore amplifier differential-mode gain(Adm)=%d",Adm)
+disp("Equation (1)can also be used for calculating unwanted output component")
+disp("Unwanted components arise when operating in common-mode")
+disp("Acm=Voutcm/Vcm")
+Acm=Voutcm/Vcm
+printf(" Common-mode gain Acm=%f",Acm)
+disp("Now CMRR can be calculated using relation")
+disp("CMRR=Adm/Acm")
+CMRR=Adm/Acm
+printf(" There fore CMRR of amplifier should be greater than or equal to %f",CMRR)
+printf(" CMRR>=%d",CMRR)