diff options
Diffstat (limited to '2882/CH14')
-rwxr-xr-x | 2882/CH14/EX14.1/Ex14_1.sce | 24 | ||||
-rwxr-xr-x | 2882/CH14/EX14.10/Ex14_10.sce | 17 | ||||
-rwxr-xr-x | 2882/CH14/EX14.11/Ex14_11.sce | 18 | ||||
-rwxr-xr-x | 2882/CH14/EX14.13/Ex14_13.sce | 23 | ||||
-rwxr-xr-x | 2882/CH14/EX14.14/Ex14_14.sce | 21 | ||||
-rwxr-xr-x | 2882/CH14/EX14.2/Ex14_2.sce | 18 | ||||
-rwxr-xr-x | 2882/CH14/EX14.3/Ex14_3.sce | 27 | ||||
-rwxr-xr-x | 2882/CH14/EX14.4/Ex14_4.sce | 18 | ||||
-rwxr-xr-x | 2882/CH14/EX14.5/Ex14_5.sce | 15 | ||||
-rwxr-xr-x | 2882/CH14/EX14.6/Ex14_6.sce | 15 | ||||
-rwxr-xr-x | 2882/CH14/EX14.7/Ex14_7.sce | 15 | ||||
-rwxr-xr-x | 2882/CH14/EX14.8/Ex14_8.sce | 21 | ||||
-rwxr-xr-x | 2882/CH14/EX14.9/Ex14_9.sce | 22 |
13 files changed, 254 insertions, 0 deletions
diff --git a/2882/CH14/EX14.1/Ex14_1.sce b/2882/CH14/EX14.1/Ex14_1.sce new file mode 100755 index 000000000..c90e588db --- /dev/null +++ b/2882/CH14/EX14.1/Ex14_1.sce @@ -0,0 +1,24 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 418
+clear;
+clc;
+
+//Given
+
+vICM1=0;//input common mode vOltage in volts
+vOCM1=5.4;//output common mode vOltage in volts
+vICM2=1.05;//input common mode vOltage in volts
+vOCM2=5.0;//output common mode vOltage in volts
+vO2=5.4;//vOltage at collector of transistor Q2 in volts
+
+//Solution
+
+disp("vOCM=5.4 Volts");
+vO1=2*vOCM1-vO2;//vOltage at collector of transistor Q1 in volts
+printf("Voltage at collector of transistor Q1 vO1 = %.1f volts\n ",vO1);
+
+disp("vOCM=5.0 Volts");
+vO1=2*vOCM2-vO2;//vOltage at collector of transistor Q1 in volts
+printf("Voltage at collector of transistor Q1 vO1 = %.1f volts",vO1);
+
+//calculation for vOCM=5 Volts not done in textbook
diff --git a/2882/CH14/EX14.10/Ex14_10.sce b/2882/CH14/EX14.10/Ex14_10.sce new file mode 100755 index 000000000..d7caa1392 --- /dev/null +++ b/2882/CH14/EX14.10/Ex14_10.sce @@ -0,0 +1,17 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 432
+clear;
+clc;
+
+//Given
+
+Av_ol=175000;//open loop voltage gain
+Zin=1.5D6;//input impedance in ohms
+Zout=70;//output impedance in ohms
+
+//Solution
+
+Zi_vf=(1+Av_ol)*Zin;//input impedance of voltage follower in ohms
+Zo_vf=Zout/(1+Av_ol);//output impedance of voltage follower in ohms
+printf("Input impedance (Zi)VF = %.f Mega-ohms\n ",Zi_vf/10^6);
+printf("Output impedance (Zo)VF = %.4f ohms\n ",Zo_vf);
diff --git a/2882/CH14/EX14.11/Ex14_11.sce b/2882/CH14/EX14.11/Ex14_11.sce new file mode 100755 index 000000000..bc17ebe84 --- /dev/null +++ b/2882/CH14/EX14.11/Ex14_11.sce @@ -0,0 +1,18 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 435 and 436
+clear;
+clc;
+
+//Given
+//Figure 14.21
+
+R=12D3;//resistances R1,R2,R3 in RC network in ohms
+C=0.001D-6;//capacitances C1,C2,C3 in RC network in ohms
+A=29;//gain for oscillator operation
+
+//Solution
+
+fr=1/(2*%pi*R*C*sqrt(6));//frequency of oscillations in hertz
+Rf=A*R;//feedback resistance in ohms
+printf("Frequency of oscillations fr = %.2f kHz\n ",fr/10^3);
+printf("Feedback resistance Rf = %.f kilo-ohms\n ",Rf/10^3);
diff --git a/2882/CH14/EX14.13/Ex14_13.sce b/2882/CH14/EX14.13/Ex14_13.sce new file mode 100755 index 000000000..7435f9c04 --- /dev/null +++ b/2882/CH14/EX14.13/Ex14_13.sce @@ -0,0 +1,23 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 442
+clear;
+clc;
+
+//Given
+//Figure 14.32
+
+V1=2;V2=1;V3=0.5;V4=0.2;//input voltages in volts
+R=20D3;//input resistances R1,R2,R3,R4 in ohms
+R5=20D3;//feedback resistance in ohms
+
+//Solution
+
+A=-R5/R;//gain for each input
+disp("(a)");
+Vo=A*(V1+V2+V3+V4);//output voltage in volts
+printf("Normal output voltage Vo = %.1f Volts",Vo);
+disp("(b)");
+Vo=A*(V1+V2+V4);//output voltage in volts
+printf("For R3 open, output voltage Vo = %.1f Volts",Vo);
+disp("(c)");
+printf("If resistor R5 opens output becomes -Vsat.")
diff --git a/2882/CH14/EX14.14/Ex14_14.sce b/2882/CH14/EX14.14/Ex14_14.sce new file mode 100755 index 000000000..02d20e006 --- /dev/null +++ b/2882/CH14/EX14.14/Ex14_14.sce @@ -0,0 +1,21 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 442 and 443
+clear;
+clc;
+
+//Given
+//Figure 14.33
+
+V1=2;V2=1;V3=5.5;V4=2.2;V5=1.1//input voltages in volts
+R=50D3;//input resistances R1,R2,R3,R4 in ohms
+R5=10D3;//feedback resistance in ohms
+
+//Solution
+
+A=-R5/R;//gain for each input
+disp("(a)");
+Vo=A*(V1+V2+V3+V4+V5);//output voltage in volts
+printf("Normal output voltage Vo = %.2f Volts",Vo);
+disp("(b)");
+Vo=A*(V1+V2+V4+V5);//output voltage in volts
+printf("For R3 open, output voltage Vo = %.2f Volts",Vo);
diff --git a/2882/CH14/EX14.2/Ex14_2.sce b/2882/CH14/EX14.2/Ex14_2.sce new file mode 100755 index 000000000..066767caa --- /dev/null +++ b/2882/CH14/EX14.2/Ex14_2.sce @@ -0,0 +1,18 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 418
+clear;
+clc;
+
+//Given
+
+vI1=1.15;//voltage at base of transistor Q1 in volts
+vI2=0.95;//voltage at base of transistor Q2 in volts
+vO1=2;//voltage at collector of transistor Q1 in volts
+vO2=8;//voltage at collector of transistor Q2 in volts
+
+//Solution
+
+vICM=(vI1+vI2)/2;//input common mode voltage in volts
+vOCM=(vO1+vO2)/2;//output common mode voltage in volts
+printf("Input common mode voltage vICM = %.2f Volts\n ",vICM);
+printf("Output common mode voltage vOCM = %.1f Volts",vOCM);
diff --git a/2882/CH14/EX14.3/Ex14_3.sce b/2882/CH14/EX14.3/Ex14_3.sce new file mode 100755 index 000000000..693d10b64 --- /dev/null +++ b/2882/CH14/EX14.3/Ex14_3.sce @@ -0,0 +1,27 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 418 and 419
+clear;
+clc;
+
+//Given
+
+vI1=0;//voltage at base of transistor Q1 in volts
+vI2p=5D-3;//peak voltage at base of transistor Q2 in volts
+vI2w=0.2;//frequency of vI2 in hertz
+vICM_a=0;//input common mode voltage in volts
+vOCM_a=5;//output common mode voltage in volts
+vICM_b=-2D-3;//input common mode voltage in volts
+vOCM_b=5.01;//output common mode voltage in volts
+vICM_c=2D-3;//input common mode voltage in volts
+vOCM_c=4.99;//output common mode voltage in volts
+
+//Solution
+
+dvICMp=vI2p/2;//peak input common mode voltage in volts
+dvICMw=vI2w;//input common mode frequency in hertz
+printf("vICM = %.1f sin(%.1f pi t) mV\n ",dvICMp*10^3,dvICMw*2);
+dvOCMp=(vOCM_b-vOCM_a)/vICM_b*dvICMp;//peak output common mode voltage in volts
+dvOCMw=dvICMw;//output common mode frequency in hertz
+printf("vOCM =5 V %.f sin(%.1f pi t) mV",dvOCMp*10^3,dvOCMw*2);
+
+//error in calculation of vOCM in textbook
diff --git a/2882/CH14/EX14.4/Ex14_4.sce b/2882/CH14/EX14.4/Ex14_4.sce new file mode 100755 index 000000000..1007974af --- /dev/null +++ b/2882/CH14/EX14.4/Ex14_4.sce @@ -0,0 +1,18 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 418
+clear;
+clc;
+
+//Given
+
+vI1=[-3.3 1.9];//voltage at base of transistor Q1 at instants T1 and T2 in volts
+vI2=[-3.7 1.1];//voltage at base of transistor Q2 at instants T1 and T2 in volts
+vO1=[4.3 2.7];//voltage at collector of transistor Q1 at instants T1 and T2 in volts
+vO2=[4.5 3.1];//voltage at collector of transistor Q2 at instants T1 and T2 in volts
+
+//Solution
+
+vICM=((vI1(2)-vI1(1))+(vI2(2)-vI2(1)))/2;//input common mode voltage in volts
+vOCM=((vO1(2)-vO1(1))+(vO2(2)-vO2(1)))/2;//output common mode voltage in volts
+ACM=vOCM/vICM;//common mode gain
+printf("Common mode gain ACM = %.2f",ACM);
diff --git a/2882/CH14/EX14.5/Ex14_5.sce b/2882/CH14/EX14.5/Ex14_5.sce new file mode 100755 index 000000000..25c49d6fa --- /dev/null +++ b/2882/CH14/EX14.5/Ex14_5.sce @@ -0,0 +1,15 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 423
+clear;
+clc;
+
+//Given
+
+Ad=15000;//differential gain
+Ac=15;//common mode gain
+
+//Solution
+
+CMRR=Ad/Ac;//common mode rejection ratio
+CMRR_dB=20*log10(CMRR);//common mode rejection ratio in dB units
+printf("(CMRR)dB = %.f dB",CMRR_dB);
diff --git a/2882/CH14/EX14.6/Ex14_6.sce b/2882/CH14/EX14.6/Ex14_6.sce new file mode 100755 index 000000000..6037d7c81 --- /dev/null +++ b/2882/CH14/EX14.6/Ex14_6.sce @@ -0,0 +1,15 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 425 and 426
+clear;
+clc;
+
+//Given
+
+V1=-10.8;//output at time instant t1 in volts
+V2=10.8;//output at time instant t2 in volts
+t2_t1=2D-6;//time gap between t1 and t2 in seconds
+
+//Solution
+
+SR=(V2-V1)/t2_t1/10^6;//slew rate in Volts/micro-seconds
+printf("Slew Rate S.R. = %.1f V/μS",SR);
diff --git a/2882/CH14/EX14.7/Ex14_7.sce b/2882/CH14/EX14.7/Ex14_7.sce new file mode 100755 index 000000000..3210a0dec --- /dev/null +++ b/2882/CH14/EX14.7/Ex14_7.sce @@ -0,0 +1,15 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 428 and 429
+clear;
+clc;
+
+//Given
+//Figure E 14.7
+
+Av_cl=50;//closed loop voltage gain
+Ri=2.7D3;//resistance Ri in ohms
+
+//Solution
+
+Rf=Av_cl*Ri;//feedback resistance in ohms
+printf("Feedback resistor Rf = %d kilo-ohms",Rf/10^3);
diff --git a/2882/CH14/EX14.8/Ex14_8.sce b/2882/CH14/EX14.8/Ex14_8.sce new file mode 100755 index 000000000..0d0de9c0e --- /dev/null +++ b/2882/CH14/EX14.8/Ex14_8.sce @@ -0,0 +1,21 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 429
+clear;
+clc;
+
+//Given
+//Figure E 14.7
+
+Av_ol=200000;//open loop voltage gain
+Zin=5;//input impedance in ohms
+Zout=50;//output impedance in ohms
+Ri=2.7D3;//resistance Ri in ohms
+Rf=135D3;//feedback resistance in ohms
+
+//Solution
+
+Zin=Ri;//input impedance of amplifier in ohms
+Zout_miller=Rf*Av_ol/(1+Av_ol);//miller output impedance in ohms
+Zout_total=1/(1/Zout+1/Zout_miller);//total output impedance of amplifier in ohms
+printf("Input impedance Zin = %.1f kilo-ohms\n ",Zin/10^3);
+printf("Output impedance Zout = %.f ohms",Zout_total);
diff --git a/2882/CH14/EX14.9/Ex14_9.sce b/2882/CH14/EX14.9/Ex14_9.sce new file mode 100755 index 000000000..517588511 --- /dev/null +++ b/2882/CH14/EX14.9/Ex14_9.sce @@ -0,0 +1,22 @@ +//Tested on Windows 7 Ultimate 32-bit
+//Chapter 14 Operational Amplifiers Pg no. 431 and 432
+clear;
+clc;
+
+//Given
+
+A=175000;//open loop voltage gain
+Zin=1.5D6;//input impedance in ohms
+Zout=70;//output impedance in ohms
+Ri=8.2D3;//resistance Ri in ohms
+Rf=180D3;//feedback resistance in ohms
+
+//Solution
+
+X=Ri/(Ri+Rf);//voltage divider ratio
+Zin_n=Zin*(1+A*X);//input impedance in ohms
+Zout_n=Zout/(1+A*X);//output impedance in ohms
+Av_cl=1/X;//closed loop voltage gain
+printf("Input impedance Zin = %.f Mega-ohms\n ",Zin_n/10^6);
+printf("Output impedance Zout = %.4f ohms\n ",Zout_n);
+printf("Closed loop voltage gain (Av)cl = %.f",Av_cl);
|