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 --- 1514/CH16/EX16.1/16_1.sce | 33 +++++++++++++++++++++++++++++++++ 1514/CH16/EX16.10/16_10.sce | 32 ++++++++++++++++++++++++++++++++ 1514/CH16/EX16.11/16_11.sce | 15 +++++++++++++++ 1514/CH16/EX16.2/16_2.sce | 31 +++++++++++++++++++++++++++++++ 1514/CH16/EX16.3/16_3.sce | 30 ++++++++++++++++++++++++++++++ 1514/CH16/EX16.4/16_4.sce | 17 +++++++++++++++++ 1514/CH16/EX16.5/16_5.sce | 21 +++++++++++++++++++++ 1514/CH16/EX16.6/16_6.sce | 25 +++++++++++++++++++++++++ 1514/CH16/EX16.7/16_7.sce | 27 +++++++++++++++++++++++++++ 1514/CH16/EX16.8/16_8.sce | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1514/CH16/EX16.9/16_9.sce | 40 ++++++++++++++++++++++++++++++++++++++++ 11 files changed, 316 insertions(+) create mode 100755 1514/CH16/EX16.1/16_1.sce create mode 100755 1514/CH16/EX16.10/16_10.sce create mode 100755 1514/CH16/EX16.11/16_11.sce create mode 100755 1514/CH16/EX16.2/16_2.sce create mode 100755 1514/CH16/EX16.3/16_3.sce create mode 100755 1514/CH16/EX16.4/16_4.sce create mode 100755 1514/CH16/EX16.5/16_5.sce create mode 100755 1514/CH16/EX16.6/16_6.sce create mode 100755 1514/CH16/EX16.7/16_7.sce create mode 100755 1514/CH16/EX16.8/16_8.sce create mode 100755 1514/CH16/EX16.9/16_9.sce (limited to '1514/CH16') diff --git a/1514/CH16/EX16.1/16_1.sce b/1514/CH16/EX16.1/16_1.sce new file mode 100755 index 000000000..591295bcf --- /dev/null +++ b/1514/CH16/EX16.1/16_1.sce @@ -0,0 +1,33 @@ +//chapter 16 +//example 16.1 +//page 473 +clear all; +clc ; +//given +Eo=20;//supply voltage +Rl=500;//load resistance in ohm +Vr=10/100*Eo;//ripple voltage +fin=60;//ip frequency Hz +Eomin=Eo-1; +Eomax=Eo+1; +theta1=asin(Eomin/Eomax);//in radians +theta=(theta1*180)/%pi;//in degrees +T=1000/60;//in ms +//for 360 degree,T +//for 180=> +T1=T *180/360; +T2=T1/2;//time for 90 degrees +T3=T*theta/360;//time for theta +t1=T1+T2+T3;//total time +Il=1000*Eo/Rl;//current in mA +c=Il*t1/Vr; +printf("\nReservoir capacitor is %d microF,use standard value 330 microF",ceil(c)) + + + + + + + + + diff --git a/1514/CH16/EX16.10/16_10.sce b/1514/CH16/EX16.10/16_10.sce new file mode 100755 index 000000000..b9b341b25 --- /dev/null +++ b/1514/CH16/EX16.10/16_10.sce @@ -0,0 +1,32 @@ +//chapter 16 +//example 16.10 +//page 504 +clear all; +clc ; +//given +Vo=10;//op voltage +I2=1;//error amplifier ip bias current +Vref=7.15;//V reference +VR2=Vref; +R2=Vref/I2; +printf("\nR2=%.2f kohm,standard value 6.8 kohm",R2);R2=6.8; +I2=Vref/R2;//mA +R1=(Vo-Vref)/I2; +printf("\nR1=%.1f kohm,standard value 2.7 kohm",R1); +Vs=Vo+5;//for satisfactory opertation of pass Xtor +I=25;//internal ckt current Istandby+Iref +//internal power dissipation +Pi=Vs*I; +printf("\ninternal power dissipation=%d mW",Pi) +//max power dissipation in series pass Xtor +PDmax=1000; +P=PDmax-Pi; +printf("\nmax power dissipation in series pass transistor=%d mW",P) +//maximum load current +Ilmax=P/(Vs-Vo); +printf("\nmaximum load current=%d mA",Ilmax); + + + + + diff --git a/1514/CH16/EX16.11/16_11.sce b/1514/CH16/EX16.11/16_11.sce new file mode 100755 index 000000000..0a1c8d8e2 --- /dev/null +++ b/1514/CH16/EX16.11/16_11.sce @@ -0,0 +1,15 @@ +//chapter 16 +//example 16.11 +//page 507 +clear all; +clc ; +//given +Vo=6;//op voltage +Vs=15;//supply voltage +Iadj=100;//microA +I1=2.5; +Vref=2.5; +R1=Vref/I1; +printf("\nR1=%d kohm",R1); +R2=(Vo-Vref)/I1; +printf("\nR2=%.1f kohm,use 1.2 kohm + 200 ohm in series",R2); diff --git a/1514/CH16/EX16.2/16_2.sce b/1514/CH16/EX16.2/16_2.sce new file mode 100755 index 000000000..44a162f3c --- /dev/null +++ b/1514/CH16/EX16.2/16_2.sce @@ -0,0 +1,31 @@ +//chapter 16 +//example 16.2 +//page 475 +clear all; +clc ; +//given +Eo=20;//supply voltage +Eomin=Eo-1; +Eomax=Eo+1; +theta1=asin(Eomin/Eomax);//in radians +theta=(theta1*180)/%pi;//in degrees +T=1000/60;//in ms +T1=T *180/360; +T2=T1/2;//time for 90 degrees +T3=T*theta/360;//time for theta +t1=T1+T2+T3;//total time in ms +t2=1.17; //ms +Il=40;//mA +//diode peak repetitive current +Ifm=ceil(Il*(t1+t2)/t2);//mA +//diode avg forward current +Io=Il; +Vp=Eomax+0.7;//Vf=0.7V +//diode maximum reverse voltage +Er = 2 * Vp +printf("\nIFM(rep)=%d mA",Ifm) +printf("\nFor 1n4001,\nVr=50 V\nIo=1 A\nIFM=10 A\nThis is suiatable for required application.") +Ifmsurge=30; +printf("\nIFM(surge)=%d A",Ifmsurge) +Rs=Vp/Ifmsurge; +printf("\nRs=%.1f ohm",Rs); diff --git a/1514/CH16/EX16.3/16_3.sce b/1514/CH16/EX16.3/16_3.sce new file mode 100755 index 000000000..b08ca9721 --- /dev/null +++ b/1514/CH16/EX16.3/16_3.sce @@ -0,0 +1,30 @@ +//chapter 16 +//example 16.3 +//page 477 +clear all; +clc ; +//given +Vr=2;//ripple voltage +Eo=20;//supply voltage +Eomin=Eo-1; +Eomax=Eo+1; +theta=65;//in degrees +T2=4.17;//time for 90 degrees ms +T3=3;//time for theta ms +Il=40;//mA +t2=1.17;//ms +t1=T2+T3; +C=Il*t1/Vr; +printf("\nReservoir capacitor is %d microF,use standard value 150 microF",(C)) +//diode peak repetitive current +Ifm=(Il*(t1+t2)/t2);//mA +printf("\ndiode peak repetitive current IFM(rep)=%d mA",Ifm) +//diode avg forward current +Io=Il/2; +printf("\ndiode average forward current(Io)=%d mA",Io); +//diode maximum reverse voltage +Vp=Eomax+2*0.7;//Vf=0.7V +Er=Vp; +printf("\nEr=%.1f V",Er); +printf("\n1N4001 is required") + diff --git a/1514/CH16/EX16.4/16_4.sce b/1514/CH16/EX16.4/16_4.sce new file mode 100755 index 000000000..95103ad5d --- /dev/null +++ b/1514/CH16/EX16.4/16_4.sce @@ -0,0 +1,17 @@ +//chapter 16 +//example 16.4 +//page 482 +clear all; +clc ; +//given +Vs=24;//dc supply +printf("\nSuitable device is 1N757,from datasheet") +Vz=9.1;//nominal voltage +Iz=20;//nomonal current +R1=1000*(Vs-Vz)/Iz; +printf("\nseries resistance R1=%d ohm,use standard value 820 ohm",R1);R1=820; +Vs=20; +Iz=1000*(Vs-Vz)/R1; +printf("\nWhen Vs=20 V,Iz=%.1f mA ",Iz); + + diff --git a/1514/CH16/EX16.5/16_5.sce b/1514/CH16/EX16.5/16_5.sce new file mode 100755 index 000000000..f817d03b2 --- /dev/null +++ b/1514/CH16/EX16.5/16_5.sce @@ -0,0 +1,21 @@ +//chapter 16 +//example 16.5 +//page 484 +clear all; +clc ; +//given +Vs=15;//dc supply +Vref=6; +printf("\nSuitable device is 1N753,from datasheet") +Vz=6.2;//nominal voltage +P=400;//nominal power in mW +Izmin=5; +Izm=P/Vz;//Izm=Ilmax+Izmin +R1=10^3*(Vs-Vz)/Izm; +printf("\nseries resistance R1=%d ohm,use standard value 150 ohm",R1);R1=150; +Izm=1000*(Vs-Vz)/R1; +Ilmax=Izm-Izmin; +printf("\nMax load current =%d mA ",ceil(Ilmax)) + + + diff --git a/1514/CH16/EX16.6/16_6.sce b/1514/CH16/EX16.6/16_6.sce new file mode 100755 index 000000000..2d887cfdb --- /dev/null +++ b/1514/CH16/EX16.6/16_6.sce @@ -0,0 +1,25 @@ +//chapter 16 +//example 16.6 +//page 485 +clear; +clc ; +//given +Zzr=7;//dynamic impedance of 1N753 +Vs=15;//dc supply +R1=150; +Vo=6.2; +Ilmax=55; +deltaVs=10/100*Vs; +deltaVo=1000*deltaVs*Zzr/(R1+Zzr); +//line regulation +lineR=(deltaVo*100/Vo)/1000; +printf("\nline regulation=%d%% ",lineR) +deltaIl=Ilmax; +deltaVo=deltaIl*(Zzr*R1/(Zzr+R1)); +//load regulation +loadR=(deltaVo*100/Vo)/1000; +printf("\nload regulation=%.1f%% ",loadR) +//ripple rejection +RR = 20*log10((R1+Zzr)/Zzr); +printf("\nripple rejection= %d db",RR) + diff --git a/1514/CH16/EX16.7/16_7.sce b/1514/CH16/EX16.7/16_7.sce new file mode 100755 index 000000000..3d4831791 --- /dev/null +++ b/1514/CH16/EX16.7/16_7.sce @@ -0,0 +1,27 @@ +//chapter 16 +//example 16.7 +//page 489 +clear; +clc ; +//given +Eoavg=20; +Eomax=21; +Vo=12; +Av=100//voltage gain +//10% change in filter op +deltaEo=10/100*20; +deltaVs=deltaEo; +deltaVo=1000*deltaVs/Av;//mV +//line regulation +lineR=(deltaVo*100/Vo)/1000; +printf("\nline regulation=%.2f%% ",lineR); +//Eo changes from Eomax to Eoavg +deltaEo=Eomax-Eoavg; +deltaVs=deltaEo; +//Il change from no load to full load +deltaVo=1000*deltaVs/Av; +//load regulation +loadR=(deltaVo*100/Vo)/1000; +printf("\nload regulation=%.2f%% ",loadR) + + diff --git a/1514/CH16/EX16.8/16_8.sce b/1514/CH16/EX16.8/16_8.sce new file mode 100755 index 000000000..5faf3d580 --- /dev/null +++ b/1514/CH16/EX16.8/16_8.sce @@ -0,0 +1,45 @@ +//chapter 16 +//example 16.8 +//page 490 +clear all; +clc ; +//given +Vs=20;//supply voltage +Vo=12;//op voltage +Ilmax=40;//maximum load current mA +Vz=Vo/2; +printf("\nSuitable device is 1N753,from datasheet") +Vz=6.2;//nominal voltage +//to keep D1 in breakdown +IR2=10;//mA +R2=1000*(Vo-Vz)/IR2; +printf("\nR2=%d ohm,standard value 560 ohm",R2); +IE1max=Ilmax+IR2; +//power dissipation in Q1 +P1max=IE1max*(Vs-Vo); +VCE1max=Vs; +IC1max=IE1max; +//choosing suitable transistor and finding it's hfemin at IC=50mA +hfemin=50; +IB1max=IE1max/hfemin; +//IC2>>IB1max,let +IC2=5; +VB1=Vo+0.7; +R1=(Vs-(VB1))/(IC2+IB1max); +R1=R1-0.01; +printf("\nR1=%.2f kohm,standard value 1.2 kohm",R1); +IE2=5;IR2=10; +Iz=IE2+IR2; +//I4>>IB2,let +I4=1; +R4=(Vz+0.7)/I4; +printf("\nR4=%.1f kohm,standard value 6.8 kohm",R4); +R3=(Vo-6.9)/I4; +printf("\nR3=%.1f kohm,standard value 4.7 or 5.6 kohm for Vo<12 or Vo>12 resp",R3); + + + + + + + diff --git a/1514/CH16/EX16.9/16_9.sce b/1514/CH16/EX16.9/16_9.sce new file mode 100755 index 000000000..e778f2a89 --- /dev/null +++ b/1514/CH16/EX16.9/16_9.sce @@ -0,0 +1,40 @@ +//chapter 16 +//example 16.9 +//page 4 +clear all; +clc ; +//given +Ilmax=100;//maximum op current +Vs=20;//supply voltage +//maximum op voltage 10-15V +Vomin=10;Vomax=15; +Vz1=Vomin/2; +Vz2=Vomax/2; +printf("\nSuitable device is 1N753,from datasheet") +Vz=6.2;//nominal voltage +Izr=20; +Iz=Izr; +Voavg=12.5; +R1=1000*(Voavg-Vz)/Iz; +printf("\nR1=%d ohm,standard value 330 kohm",R1);R1=330; +//I3>Ibmax for opAmp,let +I3min=1; +//Vo=min,wiper at top of R4 +R3R4=Vz/I3min; +VR3=Vz; +R2=(Vomin-VR3)/I3min; +printf("\nR2=%.1f kohm,standard value 3.3 kohm",R2);R2=3.3; +//Vo=max,wiper at bottom of R4 +I3max=Vomax/(R2+R3R4); +R3=Vz/I3max; +R4=(R3R4)-R3; +printf("\nR3=%.1f kohm",R3); +printf("\nR4=%.1f kohm,standard value 3 kohm",R4); +//Q1 specification +P1=(Vs-Vomin)*(Ilmax+Iz+I3min); +P1=P1/1000; +printf("\nP1=%.2f W",P1) +Vcemax=Vs; +ICmax=Ilmax+Iz+I3min; +printf("\nVcemax=%d V,ICmax=%d mA",Vcemax,ICmax) + -- cgit