diff options
Diffstat (limited to '226/CH3')
27 files changed, 338 insertions, 0 deletions
diff --git a/226/CH3/EX2.23/example23_sce.sce b/226/CH3/EX2.23/example23_sce.sce new file mode 100755 index 000000000..5b206d1a2 --- /dev/null +++ b/226/CH3/EX2.23/example23_sce.sce @@ -0,0 +1,11 @@ +//chapter 3
+//example 3.21
+//page 119
+printf("\n")
+printf("given")
+E=10;R1=56*10^3;f=1000;C1=1*10^-6;
+Vo=2*E
+Ic=Vo/R1
+t=1/(2*f);
+Vc=(Ic*t)/C1;
+printf(" tilt output voltage is %3.3fV\n",Vc)
\ No newline at end of file diff --git a/226/CH3/EX3.1/example1_sce.sce b/226/CH3/EX3.1/example1_sce.sce new file mode 100755 index 000000000..8afffb8f1 --- /dev/null +++ b/226/CH3/EX3.1/example1_sce.sce @@ -0,0 +1,14 @@ +//chapter 3
+//example 3.1
+//page 73
+printf("\n")
+printf("given")
+Vf=.7;Rl=500;Vi=22;
+Vpi=1.414*Vi;
+disp("Vpi")
+Vpo=Vpi-Vf;
+printf(" peak vouput voltage is %3.2fV\n",Vpo)
+Ip=Vpo/Rl;
+printf("peak load current is %3.4fA\n",Ip)
+PIV=Vpi;
+printf("diode paek reverse voltage %3.2fV\n",PIV)
\ No newline at end of file diff --git a/226/CH3/EX3.10/example10_sce.sce b/226/CH3/EX3.10/example10_sce.sce new file mode 100755 index 000000000..54d7b6adf --- /dev/null +++ b/226/CH3/EX3.10/example10_sce.sce @@ -0,0 +1,13 @@ +//chapter 3
+//example 3.10
+//page 93
+printf("\n")
+printf("given")
+Eo=21;Vf=.7;Il=40*10^-3;t1=7.19*10^-3;t2=1.16*10^-3;
+Vp=Eo+(2*Vf)
+Vr=Vp
+If=Il/2
+Ifrm=Il*(t1+t2)/t2
+Ifsm=30;
+Rs=Vp/Ifsm
+printf("surge limiting resistance is %3.3fohm\n",Rs)
\ No newline at end of file diff --git a/226/CH3/EX3.11/example11_sce.sce b/226/CH3/EX3.11/example11_sce.sce new file mode 100755 index 000000000..9a4c9b2b5 --- /dev/null +++ b/226/CH3/EX3.11/example11_sce.sce @@ -0,0 +1,10 @@ +//chapter 3
+//example 3.11
+//page 73
+printf("\n")
+printf("given")
+Eo=21;Vf=.7;Il=40*10^-3;Vp=115;
+Vs=.707*(Eo+2*Vf)
+Is=1.6*Il
+Ip=(Vs*Is)/Vp;
+printf(" supply current is %3.3fA\n",Ip)
\ No newline at end of file diff --git a/226/CH3/EX3.12/example12_sce.sce b/226/CH3/EX3.12/example12_sce.sce new file mode 100755 index 000000000..45b886e50 --- /dev/null +++ b/226/CH3/EX3.12/example12_sce.sce @@ -0,0 +1,13 @@ +//chapter 3
+//example 3.12
+//page 97
+printf("\n")
+printf("given")
+Eo=20;Il=40*10^-3;R1=22;Vr=2;C1=150*10^-6;C2=C1;fr=120;
+Vo=Eo-Il*R1;
+vi=Vr/3.14
+Xc2=1/(2*3.14*fr*C2)
+vo=(vi*Xc2)/sqrt((R1^2) + (Xc2^2))
+printf(" dc output voltage is %3.3fV\n",vo)
+Vpp=2*vo;
+printf(" peak to peak voltage is %3.3fV\n",Vpp)
\ No newline at end of file diff --git a/226/CH3/EX3.13/example13_sce.sce b/226/CH3/EX3.13/example13_sce.sce new file mode 100755 index 000000000..a35e2aacf --- /dev/null +++ b/226/CH3/EX3.13/example13_sce.sce @@ -0,0 +1,10 @@ +//chapter 3
+//example 3.13
+//page 98
+printf("\n")
+printf("given")
+C1=150*10^-6;C2=C1;vi=4;vo=1;f=120;
+Xc2=8.84;//FROM EXAMPLE 3.12
+Xl=Xc2*((vi/vo)+1)
+L1=Xl/(2*3.14*f);
+printf(" suitable value of L1 is %3.3fH\n",L1)
\ No newline at end of file diff --git a/226/CH3/EX3.14/example14_sce.sce b/226/CH3/EX3.14/example14_sce.sce new file mode 100755 index 000000000..f845eb620 --- /dev/null +++ b/226/CH3/EX3.14/example14_sce.sce @@ -0,0 +1,16 @@ +//chapter 3
+//example 3.14
+//page 101
+printf("\n")
+printf("given")
+Edc=20;vo=.24;Vo=20;Il=40*10^-3;fr=120;
+Eomax=(3.14*Edc)/2
+Epeak=(4*Eomax)/(3*3.14)
+vi=Epeak;
+Rl=Vo/Il
+Xlc=(2*Rl)/3
+Lc=Xlc/(2*3.14*fr)
+L=1.25*Lc;
+Xl=2*3.14*fr*L
+Xc=Xl/((vi/vo)+1)
+C1=1/(2*3.14*fr*Xc)
\ No newline at end of file diff --git a/226/CH3/EX3.15/example15_sce.sce b/226/CH3/EX3.15/example15_sce.sce new file mode 100755 index 000000000..3fb89ad71 --- /dev/null +++ b/226/CH3/EX3.15/example15_sce.sce @@ -0,0 +1,10 @@ +//chapter 3
+//example 3.15
+//page 105
+printf("\n")
+printf("given")
+Eo=20
+E0=20-19.7//load effect
+loadregulation =(E0*100)/Eo//percentage
+sourceeffect=20.2-20
+lineregulation =(sourceeffect*100)/Eo
\ No newline at end of file diff --git a/226/CH3/EX3.16/example16_sce.sce b/226/CH3/EX3.16/example16_sce.sce new file mode 100755 index 000000000..e4d474876 --- /dev/null +++ b/226/CH3/EX3.16/example16_sce.sce @@ -0,0 +1,10 @@ +//chapter 3
+//example 3.16
+//page 108
+printf("\n")
+printf("given")
+Vz=9.1;Izt=20*10^-3;Es=30;
+R1=(Es-Vz)/Izt
+Pr1=(Izt^2)*R1
+Es=27;
+Iz=(Es-Vz)/R1
\ No newline at end of file diff --git a/226/CH3/EX3.17/example17_sce.sce b/226/CH3/EX3.17/example17_sce.sce new file mode 100755 index 000000000..01dc9dc63 --- /dev/null +++ b/226/CH3/EX3.17/example17_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+//example 3.17
+//page 110
+printf("\n")
+printf("given")
+Vz=6.2;Pd=400*10^-3;Es=16;
+Izm=Pd/Vz
+R1=(Es-Vz)/Izm
+Pr1=(Izm^2)*R1
+Izmin=5*10^-3;
+Izmax=Izm-Izmin;
+printf("maximum current is %3.4fA\n",Izmax)
\ No newline at end of file diff --git a/226/CH3/EX3.18/example18_sce.sce b/226/CH3/EX3.18/example18_sce.sce new file mode 100755 index 000000000..4c2034542 --- /dev/null +++ b/226/CH3/EX3.18/example18_sce.sce @@ -0,0 +1,17 @@ +//chapter 3
+//example 3.18
+//page 112
+printf("\n")
+printf("given")
+Zz=7;Es=16;Vo=6.2;Il=59.5*10^-3;
+es=(10*Es)/100//10% os Es
+Rl=Vo/Il
+disp("es*Zz||Rl/R1+Zz||Rl")
+V0=es*((Zz*Rl)/(Zz+Rl))/(R1+((Zz*Rl)/(Zz+Rl)))
+lineregulation=(V0*100)/Vo;
+printf("line regulation voltage is %3.3fpercentage\n",lineregulation)
+V0=Il*((Zz*R1)/(Zz+R1))
+loadregulation=(V0*100)/Vo;
+printf("loadregulation voltage is %3.3fpercentage\n",loadregulation)
+Rr=((Zz*Rl)/(Zz+Rl))/(R1+(Zz*Rl)/(Zz+Rl));
+printf("ripple rejection is %3.3f\n",Rr)
\ No newline at end of file diff --git a/226/CH3/EX3.19/example19_sce.sce b/226/CH3/EX3.19/example19_sce.sce new file mode 100755 index 000000000..c1d4a1b32 --- /dev/null +++ b/226/CH3/EX3.19/example19_sce.sce @@ -0,0 +1,11 @@ +//chapter 3
+//example 3.19
+//page 114
+printf("\n")
+printf("given")
+E=9;Vf=.7;If=1*10^-3;
+Vo=E-Vf
+R1=Vo/If
+Vr=E;
+printf("diode forward voltage is %3.2fohm\n",Vr)
+printf("diode forward current is %3.3fA\n",If)
\ No newline at end of file diff --git a/226/CH3/EX3.2/example2_sce.sce b/226/CH3/EX3.2/example2_sce.sce new file mode 100755 index 000000000..be4b859ac --- /dev/null +++ b/226/CH3/EX3.2/example2_sce.sce @@ -0,0 +1,11 @@ +//chapter 3
+//example 3.2
+//page 779
+printf("\n")
+printf("given")
+Vi=30;Rl=300;Vf=.7;
+Vpi=1.414*Vi;
+Vpo=Vpi-2*Vf;
+printf(" peak output voltage %dV\n",Vpo)
+Ip=Vpo/Rl;
+printf(" current bridge is %3.3fA\n",Ip)
\ No newline at end of file diff --git a/226/CH3/EX3.20/example20_sce.sce b/226/CH3/EX3.20/example20_sce.sce new file mode 100755 index 000000000..91fc9444e --- /dev/null +++ b/226/CH3/EX3.20/example20_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+//example 3.20
+//page 117
+printf("\n")
+printf("given")
+E=5;Vo=4.5;Il=2*10^-3;
+R1=(E-Vo)/Il;
+printf(" suitable resistance is %dohm\n",R1)
+Vr=E
+disp("when diode is forward baised")
+If=(E-Vf)/R1;
+printf(" diode forward current is %3.3fA\n",If)
\ No newline at end of file diff --git a/226/CH3/EX3.21/example21_sce.sce b/226/CH3/EX3.21/example21_sce.sce new file mode 100755 index 000000000..bcbafecd4 --- /dev/null +++ b/226/CH3/EX3.21/example21_sce.sce @@ -0,0 +1,9 @@ +//chapter 3
+//example 3.21
+//page 119
+printf("\n")
+printf("given")
+Vo=2.7;Vf=.7;E=9;If=1*10^-3;Il=If;
+Vb=Vo-Vf;
+R1=(E-Vo)/(Il+If);
+printf("resistance is %3.3fOhm\n",R1)
\ No newline at end of file diff --git a/226/CH3/EX3.22/example22_sce.sce b/226/CH3/EX3.22/example22_sce.sce new file mode 100755 index 000000000..c9bcb07b3 --- /dev/null +++ b/226/CH3/EX3.22/example22_sce.sce @@ -0,0 +1,9 @@ +//chapter 3
+//example 3.22
+//page 120
+printf("\n")
+printf("given")
+Vo=5;Vf=.7;Iz=5*10^-3;Il=1*10^-3;E=20;
+Vz=Vo-Vf
+R1=(E-Vo)/(Il+Iz);
+printf("zener diode resistance si %dohm\n",R1)
\ No newline at end of file diff --git a/226/CH3/EX3.24/example24_sce.sce b/226/CH3/EX3.24/example24_sce.sce new file mode 100755 index 000000000..c924a395d --- /dev/null +++ b/226/CH3/EX3.24/example24_sce.sce @@ -0,0 +1,14 @@ +//chapter 3
+//example 3.24
+//page 124
+printf("\n")
+printf("given")
+f=500;Rs=600;E=8;
+t=1/(2*f)
+PW=t;
+C1=PW/Rs
+Vo=2*E
+Vc=(1*Vo)/100;//1% of the Vo
+Ic=(Vc*C1)/t
+R1=(2*E)/Ic;
+printf("suitable value of R1 is %dohm\n",R1)
\ No newline at end of file diff --git a/226/CH3/EX3.25/example25_sce.sce b/226/CH3/EX3.25/example25_sce.sce new file mode 100755 index 000000000..5e5f8af08 --- /dev/null +++ b/226/CH3/EX3.25/example25_sce.sce @@ -0,0 +1,14 @@ +//chapter 3
+//example 3.25
+//page 125
+printf("\n")
+printf("given\n")
+Vf=.7;E=6;Vb1=3;
+Vc=Vb1-Vf-(-E)
+Vo=Vb1-Vf
+disp("when input is +E")
+Vo=E+Vc
+Vc=E-Vb1-Vf
+Vo=Vb1+Vf
+disp("when input is -E")
+Vo=-E+(-Vc)
\ No newline at end of file diff --git a/226/CH3/EX3.26/example26_sce.sce b/226/CH3/EX3.26/example26_sce.sce new file mode 100755 index 000000000..69ba0b5b4 --- /dev/null +++ b/226/CH3/EX3.26/example26_sce.sce @@ -0,0 +1,16 @@ +//chapter 3
+//example 3.26
+//page 130
+printf("\n")
+printf("given")
+E=12;Vf=.7;Rl=47*10^3;f=5000;
+Vo=2*(E-Vf)
+Il=Vo/Rl
+disp(" capacitor discharge time")
+t=1/(2*f)
+disp(" for 1% ripple allow .5% due to discharge of C2 ,.5%due to discharge of C1")
+Vc=(.5*Vo)/100
+C2=((Il*t)/Vc)*10^6;
+printf(" value of capacitor C2 is %3.2fuF\n",C2)
+C1=2*C2;
+printf("value of capacitor C1 is %3.2fuF\n",C1)
\ No newline at end of file diff --git a/226/CH3/EX3.27/example27_sce.sce b/226/CH3/EX3.27/example27_sce.sce new file mode 100755 index 000000000..1a1e4f5b2 --- /dev/null +++ b/226/CH3/EX3.27/example27_sce.sce @@ -0,0 +1,18 @@ +//chapter 3
+//example 3.21
+//page 119
+printf("\n")
+printf("given")
+Vcc=5;Vf=.7;R1=3.3*10^3;
+disp("A)")
+Ir1=(Vcc-Vf)/R1;
+printf("diode forward current when all input are low is %3.4fA\n",Ir1)
+disp("for each diode")
+If=Ir1/3
+disp("B)")
+If2=Ir1/2
+If3=If2;
+printf(" forward current when input A is high is %3.5fA\n",If3)
+disp("C)")
+If3=Ir1;
+printf(" forward current when input A and B are high and C is low %3.5fA\n",If3)
\ No newline at end of file diff --git a/226/CH3/EX3.3/example3_sce.sce b/226/CH3/EX3.3/example3_sce.sce new file mode 100755 index 000000000..71c7a0455 --- /dev/null +++ b/226/CH3/EX3.3/example3_sce.sce @@ -0,0 +1,11 @@ +//chapter 3
+//example 3.3
+//page 83
+printf("\n")
+printf("given")
+C1=680*10^-6;Eo=28;Rl=200;f=60;
+Il=Eo/Rl;
+T=1/f;
+t1=T;
+Vr=(Il*t1)/C1;
+printf("peak to peak ripple voltage is %3.2fV\n",Vr)
\ No newline at end of file diff --git a/226/CH3/EX3.4/example4_sce.sce b/226/CH3/EX3.4/example4_sce.sce new file mode 100755 index 000000000..ba96b9ce4 --- /dev/null +++ b/226/CH3/EX3.4/example4_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+//example 3.4
+//page 84
+printf("\n")
+printf("given")
+Eo=20;Rl=500;f=60;
+Vr=(10*Eo)/100//10% of Eo
+Il=Eo/Rl
+T=1/f;
+t1=T
+C1=((Il*t1)/Vr)*10^6;
+printf("reservior capacitance is %duF\n",C1)
\ No newline at end of file diff --git a/226/CH3/EX3.5/example5_sce.sce b/226/CH3/EX3.5/example5_sce.sce new file mode 100755 index 000000000..b6843e927 --- /dev/null +++ b/226/CH3/EX3.5/example5_sce.sce @@ -0,0 +1,21 @@ +//chapter 3
+//example 3.5
+//page 85
+printf("\n")
+printf("given")
+Eo=20;f=60;Rl=500;
+Il=Eo/Rl;
+Vr=(10*Eo)/100;
+printf("10percent of Eo is %dV\n",Vr)
+Eomin=Eo-.5*Vr
+Eomax=Eo+.5*Vr
+Q1=sin(inv(Eomin/Eomax));
+Q1=65
+Q2=90-Q1
+T=1/f;
+t2=(Q2*T)/360;
+printf(" charging time is %3.4fs\n",t2)
+t1=T-t2
+printf("discharging time is %3.4fs\n",t1)
+C1=((Il*t1)/Vr)*10^6;
+printf("reservior capacitance is %duF\n",C1)
\ No newline at end of file diff --git a/226/CH3/EX3.6/example6_sce.sce b/226/CH3/EX3.6/example6_sce.sce new file mode 100755 index 000000000..300bc12f4 --- /dev/null +++ b/226/CH3/EX3.6/example6_sce.sce @@ -0,0 +1,14 @@ +//chapter 3
+//example 3.6
+//page 88
+printf("\n")
+printf("given")
+Eo=21;Vf=.7;
+t1=1.16*10^-3;t2=15.54*10^-3;
+Vp=Eo+Vf
+Vr=2*Vp
+Il=40*10^-4;
+Ifrm=(Il*(t1+t2))/t2;
+Ifsm=30;
+Rs=Vp/Ifsm
+printf(" surge limiting resistance is %3.2fohm\n",Rs)
\ No newline at end of file diff --git a/226/CH3/EX3.7/example7_sce.sce b/226/CH3/EX3.7/example7_sce.sce new file mode 100755 index 000000000..d55f9a9bc --- /dev/null +++ b/226/CH3/EX3.7/example7_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+//example 3.7
+//page 89
+printf("\n")
+printf("given")
+Vf=.7;Eo=21;Il=40*10^-3;Vp=115;
+Vs=.707*(Vf+Eo);
+printf(" Vrms voltage is %3.3fV\n",Vs)
+Is=3.6*Il;
+printf(" rms current is %3.3fA\n",Is)
+Ip=(Vs*Is)/Vp;
+printf("primary current is %3.3fA\n",Ip)
\ No newline at end of file diff --git a/226/CH3/EX3.8/example8_sce.sce b/226/CH3/EX3.8/example8_sce.sce new file mode 100755 index 000000000..231b3c9f7 --- /dev/null +++ b/226/CH3/EX3.8/example8_sce.sce @@ -0,0 +1,9 @@ +//chapter 3
+//example 3.8
+//page 92
+printf("\n")
+printf("given")
+Vr=2;T=16.7*10^-3;t2=1.16*10^-3;Il=40*10^-3;//from example 3.5
+t1=(T/2)-t2
+C1=(Il*t1)/Vr;
+printf(" resrvior capacitor is %3.6fF\n",C1)
\ No newline at end of file diff --git a/226/CH3/EX3.9/example9_sce.sce b/226/CH3/EX3.9/example9_sce.sce new file mode 100755 index 000000000..d5e2bdce2 --- /dev/null +++ b/226/CH3/EX3.9/example9_sce.sce @@ -0,0 +1,9 @@ +//chapter 3
+//example 3.9
+//page 93
+printf("\n")
+printf("given")
+Vr=2;T=16.7*10^-3;Il=40*10^-3;
+t1=T/2
+C1=(Il*t1)/Vr;
+printf(" reservior capacitance is %3.6fF\n",C1)
\ No newline at end of file |