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 --- 317/CH18/EX18.10/example10.sce | 29 +++++++++++++++++++++++++++++ 317/CH18/EX18.10/example10.txt | 3 +++ 317/CH18/EX18.11/example11.sce | 28 ++++++++++++++++++++++++++++ 317/CH18/EX18.11/example11.txt | 1 + 317/CH18/EX18.12/example12.sce | 27 +++++++++++++++++++++++++++ 317/CH18/EX18.12/example12.txt | 1 + 317/CH18/EX18.13/example13.sce | 25 +++++++++++++++++++++++++ 317/CH18/EX18.13/example13.txt | 2 ++ 317/CH18/EX18.4/example4.sce | 19 +++++++++++++++++++ 317/CH18/EX18.4/example4.txt | 1 + 317/CH18/EX18.5/example5.sce | 19 +++++++++++++++++++ 317/CH18/EX18.5/example5.txt | 1 + 317/CH18/EX18.6/example6.sce | 27 +++++++++++++++++++++++++++ 317/CH18/EX18.6/example6.txt | 3 +++ 317/CH18/EX18.7/example7.sce | 32 ++++++++++++++++++++++++++++++++ 317/CH18/EX18.7/example7.txt | 4 ++++ 317/CH18/EX18.8/example8.sce | 30 ++++++++++++++++++++++++++++++ 317/CH18/EX18.8/example8.txt | 1 + 317/CH18/EX18.9/example9.sce | 30 ++++++++++++++++++++++++++++++ 317/CH18/EX18.9/example9.txt | 1 + 20 files changed, 284 insertions(+) create mode 100755 317/CH18/EX18.10/example10.sce create mode 100755 317/CH18/EX18.10/example10.txt create mode 100755 317/CH18/EX18.11/example11.sce create mode 100755 317/CH18/EX18.11/example11.txt create mode 100755 317/CH18/EX18.12/example12.sce create mode 100755 317/CH18/EX18.12/example12.txt create mode 100755 317/CH18/EX18.13/example13.sce create mode 100755 317/CH18/EX18.13/example13.txt create mode 100755 317/CH18/EX18.4/example4.sce create mode 100755 317/CH18/EX18.4/example4.txt create mode 100755 317/CH18/EX18.5/example5.sce create mode 100755 317/CH18/EX18.5/example5.txt create mode 100755 317/CH18/EX18.6/example6.sce create mode 100755 317/CH18/EX18.6/example6.txt create mode 100755 317/CH18/EX18.7/example7.sce create mode 100755 317/CH18/EX18.7/example7.txt create mode 100755 317/CH18/EX18.8/example8.sce create mode 100755 317/CH18/EX18.8/example8.txt create mode 100755 317/CH18/EX18.9/example9.sce create mode 100755 317/CH18/EX18.9/example9.txt (limited to '317/CH18') diff --git a/317/CH18/EX18.10/example10.sce b/317/CH18/EX18.10/example10.sce new file mode 100755 index 000000000..89b907f38 --- /dev/null +++ b/317/CH18/EX18.10/example10.sce @@ -0,0 +1,29 @@ +// find closed-loop voltage gain, bandwidth and output voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-10, page 683 + +clear; clc; close; + +// Given data +R1=10^2;// in ohms from the given figure +Rf=3.9*10^3;// in ohms from the given figure +Vin=50*10^-3;// input voltage in mVpp +f=250*10^3;// frequency in hertz +funity=10^6;// unity gain frequency in hertz + +// Calculations +Avcl=(Rf/R1)+1;// cloased loop voltage gain +f2cl=funity/Avcl;// closed-loop bandwidth +// Avcl at 250 Khertz is equilaent to a voltage gain of 4 +Vout=4*Vin;// output voltage at 250*10^3 Hertz +disp(Avcl,"closed loop voltage gain=") +disp("Hertz",f2cl,"closed loop bandwidth=") +disp("Volts",Vout,"output voltage=") + +// Result +// Closed loop voltage gain is 40 +// Closed loop bandwidth is 25 Khertz +// Output voltage is 200 mVpp at 250 KHertz \ No newline at end of file diff --git a/317/CH18/EX18.10/example10.txt b/317/CH18/EX18.10/example10.txt new file mode 100755 index 000000000..b5e493cd8 --- /dev/null +++ b/317/CH18/EX18.10/example10.txt @@ -0,0 +1,3 @@ +Closed loop voltage gain is 40 +Closed loop bandwidth is 25 Khertz +Output voltage is 200 mVpp at 250 KHertz \ No newline at end of file diff --git a/317/CH18/EX18.11/example11.sce b/317/CH18/EX18.11/example11.sce new file mode 100755 index 000000000..42a65c9a9 --- /dev/null +++ b/317/CH18/EX18.11/example11.sce @@ -0,0 +1,28 @@ +// find output error voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-11, page 684 + +clear; clc; close; + +// Given data +R1=10^2;// in ohms from the given figure +Rf=3.9*10^3;// in ohms from the given figure +Inbias=500*10^-9;// input bias current in amperes +Inoff=200*10^-9;// input offset current in amperes +Vinoff=6*10^-3;// input offset voltage in volts +Rb1=0;// in ohms + +// Calculations +Avcl=(Rf/R1)+1;// cloased loop voltage gain +Rb2=R1*Rf/(R1+Rf);// in ohms +V1err=(Rb1-Rb2)*Inbias;// unwanted dc error input in volts +V2err=(Rb1+Rb2)*Inoff/2;// unwanted dc error input in volts +V3err=Vinoff;// unwanted dc error input in volts +Verror=Avcl*(V1err+V2err+V3err);// output error voltage in volts; +disp("Volts",Verror,"output error voltage=") + +// Result +// Output error voltage is 238 mVolts \ No newline at end of file diff --git a/317/CH18/EX18.11/example11.txt b/317/CH18/EX18.11/example11.txt new file mode 100755 index 000000000..916adbd54 --- /dev/null +++ b/317/CH18/EX18.11/example11.txt @@ -0,0 +1 @@ +Output error voltage is 238 mVolts \ No newline at end of file diff --git a/317/CH18/EX18.12/example12.sce b/317/CH18/EX18.12/example12.sce new file mode 100755 index 000000000..f9e3bc585 --- /dev/null +++ b/317/CH18/EX18.12/example12.sce @@ -0,0 +1,27 @@ +// find ac output voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-12, page 687 + +clear; clc; close; + +// Given data +Rf=100*10^3;// in ohms from the given figure +R1=20*10^3;// in ohms from the given figure +R2=10*10^3;// in ohms from the given figure +R3=50*10^3;// in ohms from the given figure +V1=100*10^-3;// voltage in Vpp from the given figure +V2=200*10^-3;// voltage in Vpp from the given figure +V3=300*10^-3;// voltage in Vpp from the given figure + +// Calculations +Av1cl=-Rf/R1;// cloased loop voltage gain +Av2cl=-Rf/R2;// cloased loop voltage gain +Av3cl=-Rf/R3;// cloased loop voltage gain +Vout=(Av1cl*V1)+(Av2cl*V2)+(Av3cl*V3);// output voltage in Vpp +disp("Vpp",Vout,"output voltage=") + +// Result +// Output voltage is -3.1 Vpp \ No newline at end of file diff --git a/317/CH18/EX18.12/example12.txt b/317/CH18/EX18.12/example12.txt new file mode 100755 index 000000000..aa748a86f --- /dev/null +++ b/317/CH18/EX18.12/example12.txt @@ -0,0 +1 @@ +Output voltage is -3.1 Vpp \ No newline at end of file diff --git a/317/CH18/EX18.13/example13.sce b/317/CH18/EX18.13/example13.sce new file mode 100755 index 000000000..5b7762aa3 --- /dev/null +++ b/317/CH18/EX18.13/example13.sce @@ -0,0 +1,25 @@ +// find output voltage and bandwidth +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-13, page 688 + +clear; clc; close; + +// Given data +Vin=10*10^-3;// ac input source in Vpp +R=100*10^3;// internal resistance in ohms +Rl=1;// load resistance in ohms +funity=10^6;// unity gain frequency in hertz + +// Calculations +Avcl=1;// closed loop voltage gain of a voltage follower +Vout=Avcl*Vin;// output voltage in volts +f2cl=funity/Avcl;// closed-loop bandwidth +disp("Hertz",f2cl,"closed loop bandwidth=") +disp(Vout,"output voltage=") + +// Result +// Output voltage is 10 mVpp +// bandwidth is 1 MHertz \ No newline at end of file diff --git a/317/CH18/EX18.13/example13.txt b/317/CH18/EX18.13/example13.txt new file mode 100755 index 000000000..7dcda67ef --- /dev/null +++ b/317/CH18/EX18.13/example13.txt @@ -0,0 +1,2 @@ +Output voltage is 10 mVpp +Bandwidth is 1 MHertz \ No newline at end of file diff --git a/317/CH18/EX18.4/example4.sce b/317/CH18/EX18.4/example4.sce new file mode 100755 index 000000000..25723e610 --- /dev/null +++ b/317/CH18/EX18.4/example4.sce @@ -0,0 +1,19 @@ +// find slew rate of op-amp +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-4, page 673 + +clear; clc; close; + +// Given data +dV=0.25;// voltage change in volts +dT=0.1*10^-6;// time duration in which the voltage change took place in seconds + +// Calculations +Sr=dV/dT;// slew rate in volts/second +disp(Sr,"Slew rate=") + +// Result +// slew rate of the op-amp is 2.5 Megavolts/second \ No newline at end of file diff --git a/317/CH18/EX18.4/example4.txt b/317/CH18/EX18.4/example4.txt new file mode 100755 index 000000000..d20cde03a --- /dev/null +++ b/317/CH18/EX18.4/example4.txt @@ -0,0 +1 @@ +Slew rate of the op-amp is 2.5 Megavolts/second \ No newline at end of file diff --git a/317/CH18/EX18.5/example5.sce b/317/CH18/EX18.5/example5.sce new file mode 100755 index 000000000..5ab9a42ef --- /dev/null +++ b/317/CH18/EX18.5/example5.sce @@ -0,0 +1,19 @@ +// find power band width +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-5, page 673 + +clear; clc; close; + +// Given data +Sr=15*10^6;// slew rate in volts/second +Vp=10;// peak voltage in volts + +// Calculations +fmax=Sr/(2*%pi*Vp);// power band width in hertz +disp("Hertz ",fmax,"power band width=") + +// Result +// Power bandwidth is 239 kHertz \ No newline at end of file diff --git a/317/CH18/EX18.5/example5.txt b/317/CH18/EX18.5/example5.txt new file mode 100755 index 000000000..a6a2cd446 --- /dev/null +++ b/317/CH18/EX18.5/example5.txt @@ -0,0 +1 @@ +ower bandwidth is 239 kHertz \ No newline at end of file diff --git a/317/CH18/EX18.6/example6.sce b/317/CH18/EX18.6/example6.sce new file mode 100755 index 000000000..c85dd0415 --- /dev/null +++ b/317/CH18/EX18.6/example6.sce @@ -0,0 +1,27 @@ +// find power band width +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-6, page 673 + +clear; clc; close; + +// Given data +Vp=8;// peak voltage in volts +Sr1=0.5*10^6;// slew rate in volts/second +Sr2=5*10^6;// slew rate in volts/second +Sr3=50*10^6;// slew rate in volts/second + +// Calculations +fmax1=Sr1/(2*%pi*Vp);// power band width in hertz +fmax2=Sr2/(2*%pi*Vp);// power band width in hertz +fmax3=Sr3/(2*%pi*Vp);// power band width in hertz +disp("Hertz ",fmax1,"power band width 1=") +disp("Hertz ",fmax2,"power band width 2=") +disp("Hertz ",fmax3,"power band width 3=") + +// Result +// Power bandwidth when slew rate is 0.5 Volts/micro seconds is 10 kHertz +// Power bandwidth when slew rate is 5 Volts/micro seconds is 100 kHertz +// Power bandwidth when slew rate is 50 Volts/micro seconds is 1 MHertz \ No newline at end of file diff --git a/317/CH18/EX18.6/example6.txt b/317/CH18/EX18.6/example6.txt new file mode 100755 index 000000000..2b3fd8492 --- /dev/null +++ b/317/CH18/EX18.6/example6.txt @@ -0,0 +1,3 @@ +Power bandwidth when slew rate is 0.5 Volts/micro seconds is 10 kHertz +Power bandwidth when slew rate is 5 Volts/micro seconds is 100 kHertz +Power bandwidth when slew rate is 50 Volts/micro seconds is 1 MHertz \ No newline at end of file diff --git a/317/CH18/EX18.7/example7.sce b/317/CH18/EX18.7/example7.sce new file mode 100755 index 000000000..ec3379dd4 --- /dev/null +++ b/317/CH18/EX18.7/example7.sce @@ -0,0 +1,32 @@ +// find closed-loop voltage gain, bandwidth and output voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-7, page 678 + +clear; clc; close; + +// Given data +R1=1.5*10^3;// in ohms from the given figure +Rf=75*10^3;// in ohms from the given figure +Vin=10^-2;// input voltage in mVpp +f1=10^3;// frequency in hertz +f2=10^6;// frequency in hertz +funity=10^6;// unity gain frequency in hertz + +// Calculations +Avcl=-Rf/R1;// closed loop voltage gain +f2cl=funity/-Avcl;// closed-loop bandwidth +Vout1=Avcl*Vin;// output voltage at 10^3 Hertz +Vout2=-Vin;// output voltage at 10^6 Hertz as it is unity gain frequency in hertz +disp(Avcl,"closed loop voltage gain=") +disp("Hertz",f2cl,"closed loop bandwidth=") +disp("Volts",Vout1,"output voltage 1=") +disp("Volts",Vout2,"output voltage 2=") + +// Result +// Closed loop voltage gain is -50 +// Closed loop bandwidth is 20 Khertz +// Output voltage is -500 mVpp at 1 KHertz +// Output voltage is -10 mVpp at 1000 KHertz \ No newline at end of file diff --git a/317/CH18/EX18.7/example7.txt b/317/CH18/EX18.7/example7.txt new file mode 100755 index 000000000..151a870b8 --- /dev/null +++ b/317/CH18/EX18.7/example7.txt @@ -0,0 +1,4 @@ +Closed loop voltage gain is -50 +Closed loop bandwidth is 20 Khertz +Output voltage is -500 mVpp at 1 KHertz +Output voltage is -10 mVpp at 1000 KHertz \ No newline at end of file diff --git a/317/CH18/EX18.8/example8.sce b/317/CH18/EX18.8/example8.sce new file mode 100755 index 000000000..19be850ad --- /dev/null +++ b/317/CH18/EX18.8/example8.sce @@ -0,0 +1,30 @@ +// find output voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-8, page 679 + +clear; clc; close; + +// Given data +R1=1.5*10^3;// in ohms from the given figure +Rf=75*10^3;// in ohms from the given figure +Vin=0;// input voltage in mVpp +Inbias=80*10^-9;// input bias current in amperes +Inoff=20*10^-9;// input offset current in amperes +Vinoff=2*10^-3;// input offset voltage in volts +Rb1=0;// in ohms + +// Calculations +Rb2=R1*Rf/(R1+Rf);// in ohms +V1err=(Rb1-Rb2)*Inbias;// unwanted dc error input in volts +V2err=(Rb1+Rb2)*Inoff/2;// unwanted dc error input in volts +V3err=Vinoff;// unwanted dc error input in volts +Avcl=-Rf/R1;// cloased loop voltage gain +Verror=Avcl*(V1err+V2err+V3err);// output error voltage in volts; +Vout=Verror;// output voltage in volts +disp("Volts",Verror,"output error voltage=") + +// Result +// Output voltage will be (+ or -) 94.9 mVolts \ No newline at end of file diff --git a/317/CH18/EX18.8/example8.txt b/317/CH18/EX18.8/example8.txt new file mode 100755 index 000000000..893785988 --- /dev/null +++ b/317/CH18/EX18.8/example8.txt @@ -0,0 +1 @@ +Output voltage will be (+ or -) 94.9 mVolts \ No newline at end of file diff --git a/317/CH18/EX18.9/example9.sce b/317/CH18/EX18.9/example9.sce new file mode 100755 index 000000000..fc277f144 --- /dev/null +++ b/317/CH18/EX18.9/example9.sce @@ -0,0 +1,30 @@ +// find output voltage +// Electronic Principles +// By Albert Malvino , David Bates +// Seventh Edition +// The McGraw-Hill Companies +// Example 18-9, page 679 + +clear; clc; close; + +// Given data +R1=1.5*10^3;// in ohms from the given figure +Rf=75*10^3;// in ohms from the given figure +Vin=0;// input voltage in mVpp +Inbias=500*10^-9;// input bias current in amperes +Inoff=200*10^-9;// input offset current in amperes +Vinoff=6*10^-3;// input offset voltage in volts +Rb1=0;// in ohms + +// Calculations +Rb2=R1*Rf/(R1+Rf);// in ohms +V1err=(Rb1-Rb2)*Inbias;// unwanted dc error input in volts +V2err=(Rb1+Rb2)*Inoff/2;// unwanted dc error input in volts +V3err=Vinoff;// unwanted dc error input in volts +Avcl=-Rf/R1;// cloased loop voltage gain +Verror=Avcl*(V1err+V2err+V3err);// output error voltage in volts; +Vout=Verror;// output voltage in volts +disp("Volts",Verror,"output error voltage=") + +// Result +// Output voltage will be (+ or -) 270.5 mVolts \ No newline at end of file diff --git a/317/CH18/EX18.9/example9.txt b/317/CH18/EX18.9/example9.txt new file mode 100755 index 000000000..a1b33e972 --- /dev/null +++ b/317/CH18/EX18.9/example9.txt @@ -0,0 +1 @@ +Output voltage will be (+ or -) 270.5 mVolts \ No newline at end of file -- cgit