summaryrefslogtreecommitdiff
path: root/3041/CH8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3041/CH8
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 '3041/CH8')
-rwxr-xr-x3041/CH8/EX8.1/Ex8_1.sce28
-rwxr-xr-x3041/CH8/EX8.2/Ex8_2.sce17
-rwxr-xr-x3041/CH8/EX8.3/Ex8_3.sce23
-rwxr-xr-x3041/CH8/EX8.4/Ex8_4.sce37
-rwxr-xr-x3041/CH8/EX8.5/Ex8_5.sce15
-rwxr-xr-x3041/CH8/EX8.6/Ex8_6.sce25
-rwxr-xr-x3041/CH8/EX8.7/Ex8_7.sce21
-rwxr-xr-x3041/CH8/EX8.8/Ex8_8.sce25
8 files changed, 191 insertions, 0 deletions
diff --git a/3041/CH8/EX8.1/Ex8_1.sce b/3041/CH8/EX8.1/Ex8_1.sce
new file mode 100755
index 000000000..e61eef580
--- /dev/null
+++ b/3041/CH8/EX8.1/Ex8_1.sce
@@ -0,0 +1,28 @@
+//Variable declaration
+C=0.1 //capacitance(uF)
+R1=10 //resistance(k ohms)
+R2=2.3 //resistance(k ohms)
+Vcc=12. //supply voltage(V)
+Rl=10**3. //resistance(k ohms)
+
+//Calculations
+//Part a
+f=1/(0.693*C*(R2+R1/2)) //frequency(Hz)
+
+//Part b
+D=(1+(R2/R1))/(1+2*(R2/R1))*100 //duty cycle
+
+//Part c
+//(i)
+T1=0.693*C*(R1+R2) //time period through R1(ms)
+T2=0.693*R2*C //time period through R2(ms)
+Pavg=(Vcc/Rl)**2*(T1/(T1+T2)) //average power dissipated during current sourcing(mW)
+
+//Part d
+Pavg1=(T2/(T1+T2))*(Vcc/Rl)**2 //average power dissipated during current sinking(mW)
+
+//Results
+printf (" %.2f kHz",f)
+printf ("duty cycle is %.2f %%",D)
+printf ("average power dissipated in current sourcing is %.3f mW",Pavg/1E-3)
+printf ("average power dissipated in current sinking is %.3f mW",Pavg1/1e-3)
diff --git a/3041/CH8/EX8.2/Ex8_2.sce b/3041/CH8/EX8.2/Ex8_2.sce
new file mode 100755
index 000000000..b83a262a7
--- /dev/null
+++ b/3041/CH8/EX8.2/Ex8_2.sce
@@ -0,0 +1,17 @@
+
+
+//Variable declaration
+t=1 //time constant
+e=1.8 //e=R1/R2 min=1.8
+e1=9. //e1=R1/R2 max=9
+
+//Calculations
+Betamin=1/(1+e) //current gain minimum
+Betamax=1/(1+e1) //current gain maximum
+Tmax=2*t*log((1+Betamin)/(1-Betamin))
+Tmin=2*t*log((1+Betamax)/(1-Betamax))
+fmin=1/Tmax //minimum freq(Hz)
+fmax=1/Tmin //maximum freq(k Hz)
+
+//Results
+printf ("fmin is %.f Hz and fmax is %.1f KHz",fmin/1E-3,fmax)
diff --git a/3041/CH8/EX8.3/Ex8_3.sce b/3041/CH8/EX8.3/Ex8_3.sce
new file mode 100755
index 000000000..ea76df64c
--- /dev/null
+++ b/3041/CH8/EX8.3/Ex8_3.sce
@@ -0,0 +1,23 @@
+
+
+//Variable declaration
+C=0.01 //capacitance(uF)
+R2=15 //resistance(k ohms)
+Va2=4 //voltage(V)
+Vcc=15. //supply voltage(V)
+R1=33 //resistance(k ohms)
+
+//Calculations
+Va1=0.67*Vcc //voltage(V)
+Vamax=Va1+Va2 //Va maximum(V)
+Vamin=Va1-Va2 //Va minimum(V)
+T1max=C*(R1+R2)*(log((1-(Vamax/(2*Vcc)))/(1-(Vamax/Vcc)))) //time period(ms)
+T1min=C*(R1+R2)*(log((1-(Vamin/(2*Vcc)))/(1-(Vamin/Vcc)))) //time period(ms)
+T2=0.693*R2*C
+fmax=1/(T1min+T2) //maximum frequency(K Hz)
+fmin=1/(T1max+T2) //miniimum frequency(K Hz)
+
+//Results
+printf ("minimum freq is %.2f",fmin)
+printf ("maximum freq is %.2f",fmax)
+printf(" (solution given in the textbook is incorrect)");
diff --git a/3041/CH8/EX8.4/Ex8_4.sce b/3041/CH8/EX8.4/Ex8_4.sce
new file mode 100755
index 000000000..73bf3be05
--- /dev/null
+++ b/3041/CH8/EX8.4/Ex8_4.sce
@@ -0,0 +1,37 @@
+//Variable declaration
+Vi=25 //input voltage(V)
+Vsmax=30 //supply voltage max(V)
+Vomin=12 //output minimum voltage or load voltage(V)
+Vl=12
+R1=20 //load voltage(V)
+Io=15. //output current(mA)
+Iq=3. //quinscent current of regulator(mA)
+Vo=20. //output voltage(V)
+
+//Calculations
+//Part a
+//(i)
+Vimax=Vsmax //maximum permissible voltage(V)
+Ro=0 //for Vomin=beta=0
+//(ii)
+Vomax=Vi-2
+betaVomax=Vomax-Vomin //output voltage(V)
+R2max=(R1*betaVomax)/(Vomax-betaVomax) //R2max(k ohms)
+//(iii)
+R3=betaVomax/Io //R3(k ohms)
+
+//Part b
+Vt=(Iq*betaVomax)/Io //common terminal fall(V)
+Vomin1=Vl+Vt //voltage output minimum(V)
+
+//Part c
+betaVo=Vo-Vl //output voltage(V)
+beta=betaVo/Vo //current gain
+R2=(R1*betaVo)/(Vo-betaVo) //R2(ohms)
+
+//Results
+printf ("a)i)max permissible supply voltage is %.1f V",Vimax)
+printf ("ii)output voltage range for Vi=25V is %.1f V to %.1f V and R2max is %.f k ohms",Vomin,Vomax,R2max)
+printf ("iii)R3 is %.2f kohms kohms",R3)
+printf ("b)Vomin is %.1f V",Vomin1)
+printf ("c)R2 is %.2f ohms and R3 is %.3f ohms",R2,R3)
diff --git a/3041/CH8/EX8.5/Ex8_5.sce b/3041/CH8/EX8.5/Ex8_5.sce
new file mode 100755
index 000000000..e6e610a56
--- /dev/null
+++ b/3041/CH8/EX8.5/Ex8_5.sce
@@ -0,0 +1,15 @@
+//Variable declaration
+A=.0025 //voltage gain
+Vi=8 //input voltage(V)
+R2=1.5 //resistance 2(k ohms)
+R1=1 //resistance 1(k ohms)
+Vl=5 //load voltage(V)
+
+//Calculations
+beta=R2/(R1+R2) //current gain
+Vo=Vl/(1-beta) //output voltage(V)
+Vo1=(A*Vi)/(1+(A*beta)-beta) //output voltage ripple if Vi=8Vp-p
+
+//Results
+printf ("Vo is %.1f V",Vo)
+printf ("expression of output voltage ripple %.2f Vp-p",Vo1)
diff --git a/3041/CH8/EX8.6/Ex8_6.sce b/3041/CH8/EX8.6/Ex8_6.sce
new file mode 100755
index 000000000..ee84fa5a5
--- /dev/null
+++ b/3041/CH8/EX8.6/Ex8_6.sce
@@ -0,0 +1,25 @@
+//Variable declaration
+Ro=7.5 //output resistance(ohms)
+hfe=50
+Ve=20 //voltage given to emitter(V)
+Vbe=0.8 //base to emitter voltage(V)
+Vc=15 //collector voltage(V)
+P=12 //maximum power dissipation(W)
+Ib1=5 //for minimum load current Il=0,Ib=5
+
+//Calculations
+Io=(Vc/Ro)*10**3 //output current(A)
+Il=76 //load current(mA)
+Is=Il+5 //supply current(mA)
+Ic=Io-Is //collector current(A)
+Ib=Ic/hfe //base current(mA)
+Ie=Ic-Ib //emitter current(mA)
+Pt=(Ve*Ie)-(Vc*Ic) //power dissipated in transistor(W)
+Pl=(Ve-Vbe)*Is-Vc*Il //power dissipated in LR
+Vimax=(P+Vc*(Ic*10**-3))/(Ie*10**-3) //input voltage maximum
+Iomin=hfe*Ib1 //output current minimum(mA)
+
+//Results
+printf ("power dissipated in the transistor is %.2f W and in LR is %.3f W",Pt/1E+3,Pl/1E+3)
+printf ("maximum permissible input voltage is %.2f V",Vimax)
+printf ("minimum load current for load voltage to remain stabalized is %.1f mA",Iomin)
diff --git a/3041/CH8/EX8.7/Ex8_7.sce b/3041/CH8/EX8.7/Ex8_7.sce
new file mode 100755
index 000000000..8f4909ff8
--- /dev/null
+++ b/3041/CH8/EX8.7/Ex8_7.sce
@@ -0,0 +1,21 @@
+//Variable declaration
+VL=12 //load voltage(V)
+I=2. //current at 12 V
+V=240 //dc source(V)
+d=17/50. //duty cycle
+d1=0.6 //duty cycle
+eta1=0.8 //efficiency
+
+//Calculations
+P=VL*I //average load power(W)
+Isav=(1*d)/2 //average supply current(A)
+Pav=V*Isav //average supply power(W)
+eta=(P/Pav)*100 //regulator efficiency
+Isav1=(1*d1)/2 //average supply current(A)
+Il=(eta1*V*Isav1)/Vdc //load current(A)
+Po=Il*Vdc //power output(W)
+
+//Results
+printf ("regulator efficiency is %.1f %%",eta)
+printf ("average supply current is %.1f A",Il)
+printf ("power output is %.1f W",Po)
diff --git a/3041/CH8/EX8.8/Ex8_8.sce b/3041/CH8/EX8.8/Ex8_8.sce
new file mode 100755
index 000000000..fd98e077d
--- /dev/null
+++ b/3041/CH8/EX8.8/Ex8_8.sce
@@ -0,0 +1,25 @@
+//Variable declaration
+Vs=200 //dc source voltage(V)
+Il=5 //current to load voltage(A)
+Vl=15 //load voltage(V)
+eta=.85 //efficiency
+f=20 //oscillator frequency(Hz)
+iSmax=2.6 //peak value of supply current(A)
+P=100 //full load power supply(W)
+pdf=0.4 //pulse duty factor
+
+//Calculations
+Isav=(Vl*Il)/(Vs*eta) //average peak supply current(A)
+iS=(2*Isav)/pdf //supply current(A)
+T=1000/f //oscillation time period(uS)
+tp=pdf*T //transistor time(us)
+d=iS/tp //change in iS with respect to time(A/us)
+tp1=iSmax/d //transistor time(us)
+pdf1=tp1/T //pulse duty factor
+Isav1=(iSmax*pdf1)/2 //average peak supply current(A)
+eta1=(P*100)/(Vs*Isav1) //efficiency
+
+//Results
+printf ("peak value of supply current is %.3f A",Isav)
+printf ("pdf is %.3f ",pdf)
+printf ("overall efficienc is %.1f %%",eta1)