diff options
Diffstat (limited to '2825/CH3')
-rwxr-xr-x | 2825/CH3/EX3.1/Ex3_1.sce | 13 | ||||
-rwxr-xr-x | 2825/CH3/EX3.10/Ex3_10.sce | 14 | ||||
-rwxr-xr-x | 2825/CH3/EX3.11/Ex3_11.sce | 27 | ||||
-rwxr-xr-x | 2825/CH3/EX3.12/Ex3_12.sce | 21 | ||||
-rwxr-xr-x | 2825/CH3/EX3.13/Ex3_13.sce | 28 | ||||
-rwxr-xr-x | 2825/CH3/EX3.14/Ex3_14.sce | 14 | ||||
-rwxr-xr-x | 2825/CH3/EX3.15/Ex3_15.sce | 16 | ||||
-rwxr-xr-x | 2825/CH3/EX3.16/Ex3_16.sce | 22 | ||||
-rwxr-xr-x | 2825/CH3/EX3.17/Ex3_17.sce | 7 | ||||
-rwxr-xr-x | 2825/CH3/EX3.18/Ex3_18.sce | 23 | ||||
-rwxr-xr-x | 2825/CH3/EX3.19/Ex3_19.sce | 7 | ||||
-rwxr-xr-x | 2825/CH3/EX3.2/Ex3_2.sce | 9 | ||||
-rwxr-xr-x | 2825/CH3/EX3.20/Ex3_20.sce | 14 | ||||
-rwxr-xr-x | 2825/CH3/EX3.21/Ex3_21.sce | 14 | ||||
-rwxr-xr-x | 2825/CH3/EX3.3/Ex3_3.sce | 8 | ||||
-rwxr-xr-x | 2825/CH3/EX3.4/Ex3_4.sce | 14 | ||||
-rwxr-xr-x | 2825/CH3/EX3.5/Ex3_5.sce | 13 | ||||
-rwxr-xr-x | 2825/CH3/EX3.6/Ex3_6.sce | 12 | ||||
-rwxr-xr-x | 2825/CH3/EX3.7/Ex3_7.sce | 24 | ||||
-rwxr-xr-x | 2825/CH3/EX3.8/Ex3_8.sce | 28 | ||||
-rwxr-xr-x | 2825/CH3/EX3.9/Ex3_9.sce | 14 |
21 files changed, 342 insertions, 0 deletions
diff --git a/2825/CH3/EX3.1/Ex3_1.sce b/2825/CH3/EX3.1/Ex3_1.sce new file mode 100755 index 000000000..fc3f1ec48 --- /dev/null +++ b/2825/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,13 @@ +//Ex3_1 Pg-127
+clc
+
+disp("Refer to the diagram 3.11(b)")
+disp("Using ohm''s law")
+disp("Vt = Vd1 + Vr1")
+Vd1=0.7 //voltage drop in V
+Vt=12 //supply voltage in V
+R1=1.2*10^3 //resistor R1 in ohm
+Vr1=Vt-Vd1 //voltage across R1 in V
+It=Vr1/R1 //current in A
+disp("Ohm''s law")
+printf("\n Current I_t = %.2f mA",It*10^3)
diff --git a/2825/CH3/EX3.10/Ex3_10.sce b/2825/CH3/EX3.10/Ex3_10.sce new file mode 100755 index 000000000..0e4f1d176 --- /dev/null +++ b/2825/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,14 @@ +//Ex3_10 Pg-186
+clc
+
+ disp("We know that I = I0*(exp(V/n*Vt)-1)")
+ disp("Dividing on both sides by area A, one obtains")
+ disp(" I/A = I0/A*(exp(V/n*Vt)-1)")
+ disp("or J = J0*(exp(V/n*Vt)-1)")
+n=1 //constant
+T=300 //temperature in K
+Vt=T/11600
+J=10^5 //forward current density
+J0=250*10^(-3) //saturation current density
+V=Vt*log(J/J0)
+printf("\n The voltage applied across the junction =%.4f V",V)
diff --git a/2825/CH3/EX3.11/Ex3_11.sce b/2825/CH3/EX3.11/Ex3_11.sce new file mode 100755 index 000000000..428e8b064 --- /dev/null +++ b/2825/CH3/EX3.11/Ex3_11.sce @@ -0,0 +1,27 @@ +//Ex3_11 Pg-186
+clc
+
+Vmin=0.7 //minimum voltage across diode in V
+V=5 //supply voltage in V
+V_R1=V-Vmin //voltage across resistor R in V
+Imin=10^(-3) //minimum current
+R1=V_R1/Imin
+
+printf("Maximum value of R =%.1f kohm \n ",R1*1e-3)
+
+I=5*10^(-3) //current through resistance in A
+V_R2=V-Vmin //voltage across resistor R in V
+R2=V_R2/I
+printf("\n\n Minimum value of R =%.0f ohm ",R2)
+
+Vb=6 //supply voltage
+Vb_res=Vb-Vmin //voltage across resistor
+P=I*Vb_res //power dissipated across resistor
+printf("\n\n Power dissipated across R =%.1f W",P*10^3)
+
+P_diode=I*Vmin //power dissipated across diode
+printf("\n power dissipated across diode =%.1f mW",P_diode*1e3)
+R=10^3 //resistor in ohm
+V_R=R*Imin //voltage drop across resistor R in V
+Vb=V_R+Vmin
+printf("\n\n The minimum voltage across diode = %.1f V",Vb)
diff --git a/2825/CH3/EX3.12/Ex3_12.sce b/2825/CH3/EX3.12/Ex3_12.sce new file mode 100755 index 000000000..1ca4c1100 --- /dev/null +++ b/2825/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,21 @@ +//Ex3_12 Pg-188
+clc
+
+disp("Refer to the figure 3.51")
+Id1=2*10^(-3) //diode current in I
+Vd1=0.5 //diode voltage in V
+Rf1=Vd1/Id1 //Dc resistance
+disp("At Id=2mA and Vd=0.5V")
+printf("\n Rf = %.0f ohm \n\n",Rf1)
+
+Id2=20*10^(-3) //diode current in I
+Vd2=0.75 //diode voltage in V
+Rf2=Vd2/Id2 //Dc resistance
+disp("At Id=20mA and Vd=0.75V")
+printf("\n Rf = %.1f ohm \n\n",Rf2)
+
+Id3=2*10^(-6) //diode current in I
+Vd3=10 //diode voltage in V
+Rf3=Vd3/Id3 //Dc resistance
+disp("At Id=2*10^(-6)A and Vd=10V")
+printf("\n Rf = %.0f Mohm \n\n",Rf3*10^-6)
diff --git a/2825/CH3/EX3.13/Ex3_13.sce b/2825/CH3/EX3.13/Ex3_13.sce new file mode 100755 index 000000000..9ad7da55a --- /dev/null +++ b/2825/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,28 @@ +//Ex3_13 Pg-188
+clc
+
+disp("Refer to the figure 3.52")
+disp("(a) Assuming the diode D to be ideal ")
+disp(" Ignoring diode D,voltage across R2 is given as (By applying potential divider concept)")
+R1=45 //resistor R1
+R2=5 //resistor R2
+Vaa=10 //supply voltage
+Vab=Vaa*(R2/(R1+R2))
+printf("\n Vab= %.0f V \n",Vab)
+
+disp(" Thus,diode D is forward biased.It conducts,offering zero resistance Hence no current would flow through the parallel bransh R2.The circuit equivalent to that shown in figure 3.53(a)")
+ID=Vaa/R1 //diode current
+printf("\n Current through diode = %.0f mA \n\n",ID*10^3)
+
+disp("(b)Assuming the diode to be real")
+disp(" Voltage Vab is much larger than Vt hencethe diode conducts.It is replaced by its equivalent as shown in figure 3.53(b).To determine current Id through the diode we first find the Thevenin''s equivalent of the circuit on the left of AB.Vth=open circuit voltage across AB")
+Vth=Vaa*(R2/(R1+R2))
+printf("\n Vth=%.0f V \n",Vth)
+Rth=R1*R2/(R1+R2)
+printf("\n Rth=%.0f ohm \n",Rth) //textbook value is wrong
+ disp("Thus,the equivalent circuit becomes as shown in figure 3.53(c)")
+ Vt=0.3 //load voltage
+ tf=25 //load resistance
+ Id=(Vth-Vt)/(Rth+tf)
+ printf("\n Current through diode =%.1f mA \n\n",Id*10^3)
+
diff --git a/2825/CH3/EX3.14/Ex3_14.sce b/2825/CH3/EX3.14/Ex3_14.sce new file mode 100755 index 000000000..f08f12a89 --- /dev/null +++ b/2825/CH3/EX3.14/Ex3_14.sce @@ -0,0 +1,14 @@ +//Ex3_14 Pg-190
+clc
+
+disp(" Diodes D2 and D3 are reverse-biased. Therefore, these are like open-switches. Diodes D1 and D2 are forward biased. These are replaced by their equivalent circuits,as shown in figure 3.54. Since the diodes are silicon V=0.7V. ")
+Vt=0.7 //voltage drop
+Vaa=20 //supply voltage in V
+net_emf=Vaa-Vt-Vt //net emf
+R1=5
+R2=90
+R3=5 //R1,R2,R3 are resistances
+tot_res=R1+R2+R3 //total resistance
+disp("Therefore, current through 90 ohm resistor is")
+I=net_emf/tot_res
+printf("\n Current I =%.0f mA",I*10^3)
diff --git a/2825/CH3/EX3.15/Ex3_15.sce b/2825/CH3/EX3.15/Ex3_15.sce new file mode 100755 index 000000000..86672d1c0 --- /dev/null +++ b/2825/CH3/EX3.15/Ex3_15.sce @@ -0,0 +1,16 @@ +//Ex3_15 Pg-190
+clc
+
+disp("(a) When the diode is forward biased figure 3.55(b),it offers zero resistance. It is like shorted switch.This shorted switch across AB also short-circuits the resistance R2.Obviously,a parallel combination of the diode and R2 is equivalent to a resistance of zero ohms.")
+R1=100 //reisitor R1 in ohm
+R=R1
+Vaa=10 //supply voltage in V
+I=Vaa/R
+printf("\n Current drawn from battery =%.1f A \n\n",I)
+
+disp("(a) When the diode is reverse biased figure 3.55(b).It is like open switch.Obviously,it then does not make any difference whether the diode is connected or not.")
+R2=100 //resistor R2 in ohm
+tot_R=R1+R2
+I1=Vaa/tot_R
+
+printf("\n Current drawn from battery =%.2f A \n\n",I1)
diff --git a/2825/CH3/EX3.16/Ex3_16.sce b/2825/CH3/EX3.16/Ex3_16.sce new file mode 100755 index 000000000..251fc801b --- /dev/null +++ b/2825/CH3/EX3.16/Ex3_16.sce @@ -0,0 +1,22 @@ +//Ex3_16 Pg-191
+clc
+
+Vz=9 //breakdown voltage in V
+per=0.1 //10% tolerance
+Tol=Vz*per
+printf("Tolerance =%.1f V",Tol)
+tol_high=Vz+Tol
+tol_low=Vz-Tol //ranges in tolerance
+printf("\n Range of breakdown voltage= %.1f to %.1f V",tol_low,tol_high)
+// in the textbook the value 8.2 is wrong the correct value is 8.1
+T1=25 //temperature T1 in degree celcius
+T2=75 //temperature T2 in degree celcius
+diff_temp=T2-T1 //chnage in temperature
+Vzener=2*10^(-3) //zener voltage
+fall_break_vol=Vzener*diff_temp //fall in breakdown voltage
+new_break_vol=Vz-fall_break_vol //new break don voltage
+printf("\n New break don voltage =%.1f V",new_break_vol)
+
+range_high=tol_low-fall_break_vol
+range_low=tol_high-fall_break_vol
+printf("\n Range of breakdown voltage= %.1f to %.1f V",range_high,range_low)
diff --git a/2825/CH3/EX3.17/Ex3_17.sce b/2825/CH3/EX3.17/Ex3_17.sce new file mode 100755 index 000000000..695a877b9 --- /dev/null +++ b/2825/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,7 @@ +//Ex3_17 Pg-192
+clc
+ C=20 //capacitance in pF
+ V=5 //supply voltage in V
+ K=C*sqrt(V)
+C_V1=K/sqrt(V+1)
+printf("Capacitance for 1V increase =%.1f pF",C_V1)
diff --git a/2825/CH3/EX3.18/Ex3_18.sce b/2825/CH3/EX3.18/Ex3_18.sce new file mode 100755 index 000000000..a0daf2ce0 --- /dev/null +++ b/2825/CH3/EX3.18/Ex3_18.sce @@ -0,0 +1,23 @@ +//Ex3_18 Pg-192
+clc
+
+printf("(a) The two diodes are connected in series and hence the \n current I flows in D1 and D2. Obviously,it is in forward \n direction through D2 and in reverse direction through D1.\n Since D2 diode is forward biased,V2 will be very small and\n hence V1=(5-V2) will be very much larger than Vt=0.026V.\n This means the current will be equal to reverse saturation \n current I0. Now,we consider diode D2.We have \n\n")
+disp(" I = I0*(exp(V/Vt)-1)")
+disp("Putting I=I0 and V=V2, we have")
+disp(" I0 = I0*(exp(V2/Vt)-1)")
+disp(" exp(V2/Vt)-1 = 1")
+Vt=0.026 //threshold voltage
+V2=Vt*log(2)
+V=5 //supply voltage in V
+V1=V-V2 //value in textbook incorrect
+printf("\n V2 = %.3f V",V2)
+printf("\n V2 = %.3f V\n ",V1)
+disp("Effect of temperature : V2=Vt*ln(2) = kT*ln(2)")
+disp("So V2 will increase with temperature ")
+disp("(b) If Vz is 4.9V then D1 will breakdown. This means V1=4.9V")
+Vz=4.9 //breakdown voltage
+V2=V-Vz
+disp("Now using I0=5*10^(-6)A and V2=0.1V,one obtains")
+I0=5*10^(-6) //current in ampere
+I=I0*(exp(V2/Vt)-1)
+printf("\n Current I=%.0f microA",I*10^6)
diff --git a/2825/CH3/EX3.19/Ex3_19.sce b/2825/CH3/EX3.19/Ex3_19.sce new file mode 100755 index 000000000..8fdfac09f --- /dev/null +++ b/2825/CH3/EX3.19/Ex3_19.sce @@ -0,0 +1,7 @@ +//Ex3_19 Pg-193
+clc
+
+disp("We have Iv=40*iD")
+Iv=1 //luminous intensity
+iD=Iv/(40*10^(-3)) //LED current
+printf("LED current = %.0f mA",iD)
diff --git a/2825/CH3/EX3.2/Ex3_2.sce b/2825/CH3/EX3.2/Ex3_2.sce new file mode 100755 index 000000000..45c637ed3 --- /dev/null +++ b/2825/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,9 @@ +//Ex3_2 Pg-182
+clc
+J=10^5 //forward current density
+Js=250*10^(-3) //saturation current density
+e=1.6*10^(-19) //electron charge
+T=300 //temperature
+k=1.38*10^(-23) //Boltzmann constant
+V=(log(J/Js)*k*T)/e //voltage applied across junction
+printf("The voltage applied across the junction =%.2f V",V)
diff --git a/2825/CH3/EX3.20/Ex3_20.sce b/2825/CH3/EX3.20/Ex3_20.sce new file mode 100755 index 000000000..d473c4727 --- /dev/null +++ b/2825/CH3/EX3.20/Ex3_20.sce @@ -0,0 +1,14 @@ +//Ex3_20 Pg-193
+clc
+
+disp("(a) At Id=10mA,")
+V=25 //voltage in mV
+Id=10 //current in mA
+Rac=V/Id
+//AC resistance (value in textbook is wrong)
+printf("\n AC resistance Rac=%.1f ohm",Rac)
+
+Id=20 //current in mA
+Rac=V/Id
+//AC resistance (value in textbook is wrong)
+printf("\n AC resistance Rac=%.2f ohm",Rac)
diff --git a/2825/CH3/EX3.21/Ex3_21.sce b/2825/CH3/EX3.21/Ex3_21.sce new file mode 100755 index 000000000..7711c9800 --- /dev/null +++ b/2825/CH3/EX3.21/Ex3_21.sce @@ -0,0 +1,14 @@ +//Ex3_21 Pg-194
+clc
+
+disp("We know that")
+disp(" r_ac = dV/dI - 1/(dI/dV) = 1/((I0/KT)exp(V/KT))")
+k=8.62*10^(-5)
+T=300 //temperaturein K
+kT=k*T
+I0=10^(-6) //saturation current
+V=150*10^(-3) //voltage forward biased
+r_ac = 1/((I0/kT)*exp(V/kT))
+ //value of exp(0.15/0.02586)=330.45 and not the textbook value of 332.66
+
+printf("\n The AC resistance = %.2f ohm",r_ac) //text book value wrong
diff --git a/2825/CH3/EX3.3/Ex3_3.sce b/2825/CH3/EX3.3/Ex3_3.sce new file mode 100755 index 000000000..febbd4aef --- /dev/null +++ b/2825/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,8 @@ +//Ex3_3 Pg-182
+clc
+
+I=2*10^6 //forward current density
+Is=30 //saturation current density
+ekt=40
+V=(1/40)*log(I/Is) //Applied forward voltage
+printf("Applied forward voltage = %.3f V",V)
diff --git a/2825/CH3/EX3.4/Ex3_4.sce b/2825/CH3/EX3.4/Ex3_4.sce new file mode 100755 index 000000000..9df394953 --- /dev/null +++ b/2825/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,14 @@ +//Ex3_4 Pg-182
+clc
+
+disp(" I = Is*exp(eV/kT) = Is*exp(40V)")
+disp(" Re = del_V/del_I = 1/40I")
+disp(" Dividing throughtout by volume, one obtains the equation in the form of current density as")
+disp(" J = Js*(exp(eV/kT)-1)")
+J=10^5 //forward current density
+Js=250*10^(-3) //saturation current density
+e=1.6*10^(-19) //electron charge
+T=300 //temperature
+k=1.38*10^(-23) //Boltzmann constant
+V=(log(J/Js)*k*T)/e //voltage applied across junction
+printf("\n The voltage applied across the junction =%.2f V",V)
diff --git a/2825/CH3/EX3.5/Ex3_5.sce b/2825/CH3/EX3.5/Ex3_5.sce new file mode 100755 index 000000000..ea0a628db --- /dev/null +++ b/2825/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,13 @@ +//Ex3_5 Pg-183
+clc
+
+disp("(a) Forward-bias")
+Av=50 //applied voltage
+Jr=5000 //junction resistance
+Er=50 //external resistance
+cur=Av/(Er+Jr) //current
+printf("\n Current = %.1f mA \n",cur*10^3)
+
+disp("(b) Reverse-bias")
+cur_rev=Av/(Jr+10^6) //book expression is wrong
+printf("\n Current = %.3f*1e-2 mA \n",cur_rev*10^5)
diff --git a/2825/CH3/EX3.6/Ex3_6.sce b/2825/CH3/EX3.6/Ex3_6.sce new file mode 100755 index 000000000..d7cde2e04 --- /dev/null +++ b/2825/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,12 @@ +//Ex3_6 Pg-183
+clc
+
+disp("We know that")
+disp(" r_ac = dV/dI - 1/(dI/dV) = 1/((I0/KT)exp(V/KT))")
+k=8.62*10^(-5)
+T=300 //temperaturein K
+kT=k*T
+I0=10^(-6) //saturation current
+V=150*10^(-3) //voltage forward biased
+r_ac = 1/((I0/kT)*exp(V/kT)) //value of exp(0.15/0.02586)=330.45 and not the textbook value of 332.66
+printf("\n The AC resistance = %.2f ohm",r_ac) //text book value wrong
diff --git a/2825/CH3/EX3.7/Ex3_7.sce b/2825/CH3/EX3.7/Ex3_7.sce new file mode 100755 index 000000000..6ea695440 --- /dev/null +++ b/2825/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,24 @@ +//Ex3_7 Pg-184
+clc
+
+disp("We know that (I0)*T2 = (I0)*T1*(2)^((T2-T1/10))")
+
+disp("Substituting the given values,we have ")
+
+disp("(40*10^(-6)) = (25*10^(-6)*(2)^x) where x=(T2-T1)/10")
+
+disp("(2)^x = 1.6")
+
+disp("Taking log on both sides,one obtains")
+
+disp(" x*log(2) = log(1.6)")
+
+disp("or x = log(1.6)/log(2)")
+
+x=log(1.6)/log(2)
+
+disp(" Now x = (T2-T1)/10 or 0.678 = (T2-25)/10")
+T1=25 //temperature T1
+T2=x*10+T1 //temperature T2
+diff_temp=T2-T1 //change in temperature
+printf("\n So the change in temperature = %.2f degree celsius",diff_temp)
diff --git a/2825/CH3/EX3.8/Ex3_8.sce b/2825/CH3/EX3.8/Ex3_8.sce new file mode 100755 index 000000000..0e7eb7e10 --- /dev/null +++ b/2825/CH3/EX3.8/Ex3_8.sce @@ -0,0 +1,28 @@ +//Ex3_8 Pg-185
+clc
+disp("Forward current I is given by ")
+disp(" I=I0*exp(V/(n*Vt))-1")
+
+I_22=poly(0,"I_22")
+V=0.3 //voltage
+n=1 //constant
+T1=22+273 //temperature T1 in Kelvin
+Vt1=T1/11600
+I=I_22*(exp(V/0.025)-1)
+disp("When temperature rises to 72 degree celcius, then")
+
+T2=72+273 //temperature T2 in Kelvin
+Vt2=T2/11600
+TR=T2-T1 //temperature rise
+I_72=poly(0,"I_72")
+I_72=I_22*(2)^(TR/10)
+
+I_hash=I_72*(exp(V/(Vt2))-1)
+for_cur_rises=I_hash/I
+disp("Thus, at 72 degree celcius Forward current rises by ")
+disp(for_cur_rises)
+cur_I=768849.72
+cur_I_hash=162753.79
+FCR=cur_I/cur_I_hash
+printf("\n = %.2f",FCR)
+ //answer in the book is wrong
diff --git a/2825/CH3/EX3.9/Ex3_9.sce b/2825/CH3/EX3.9/Ex3_9.sce new file mode 100755 index 000000000..23c7b0c38 --- /dev/null +++ b/2825/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,14 @@ +//Ex3_9 Pg-185
+clc
+
+n=1 //constant
+T=27+273 //temperature in K
+Vt=T/11600
+V=0.2 //voltage
+I0=10^(-6) //saturation current
+I=I0*(exp(V/Vt)-1)
+stat_res=V/I //static resistance
+printf("Static resistance = %.2f ohm \n",stat_res)
+
+dyn_res=Vt/(I+I0) //dynamic resistance
+printf("Dynamic resistance = %.2f ohm",dyn_res)
|