diff options
Diffstat (limited to '3809/CH18')
-rw-r--r-- | 3809/CH18/EX18.1/EX18_1.sce | 19 | ||||
-rw-r--r-- | 3809/CH18/EX18.10/EX18_10.sce | 25 | ||||
-rw-r--r-- | 3809/CH18/EX18.11/EX18_11.sce | 30 | ||||
-rw-r--r-- | 3809/CH18/EX18.2/EX18_2.sce | 22 | ||||
-rw-r--r-- | 3809/CH18/EX18.3/EX18_3.sce | 28 | ||||
-rw-r--r-- | 3809/CH18/EX18.4/EX18_4.sce | 13 | ||||
-rw-r--r-- | 3809/CH18/EX18.6/EX18_6.sce | 30 | ||||
-rw-r--r-- | 3809/CH18/EX18.7/EX18_7.sce | 27 | ||||
-rw-r--r-- | 3809/CH18/EX18.8/EX18_8.sce | 40 | ||||
-rw-r--r-- | 3809/CH18/EX18.9/EX18_9.sce | 20 |
10 files changed, 254 insertions, 0 deletions
diff --git a/3809/CH18/EX18.1/EX18_1.sce b/3809/CH18/EX18.1/EX18_1.sce new file mode 100644 index 000000000..2e457afd3 --- /dev/null +++ b/3809/CH18/EX18.1/EX18_1.sce @@ -0,0 +1,19 @@ +//Chapter 18, Example 18.1 +clc +//Initialisation +VCC=10 //voltage +VBE=0.7 //base emitter voltage +RB=910*10**3 //resistance in ohm +hfe=100 //HFE parameter of the transistor +RC=4.7*10**3 //resistance in ohm + + +//Calculation +IB=(VCC-VBE)/RB //base current in ampere +IC=hfe*IB //collector current in ampere +Vq=VCC-(IC*RC) //quiescent output voltage + + +//Results +printf("Quiescent Output Current = %.2f mA\n",IC*1000) +printf("Quiescent Output Voltage = %.1f V\n",Vq) diff --git a/3809/CH18/EX18.10/EX18_10.sce b/3809/CH18/EX18.10/EX18_10.sce new file mode 100644 index 000000000..4883b9768 --- /dev/null +++ b/3809/CH18/EX18.10/EX18_10.sce @@ -0,0 +1,25 @@ +//Chapter 18, Example 18.10 +clc +//Initialisation +VCC=10 //voltage +R2=10*10**3 //resistance in ohm +R1=27*10**3 //resistance in ohm +RE=100 //resistance in ohm +RC=2.2 //resistance in ohm +VBE=0.7 //base emitter voltage +av=1 //small sg voltage gain + + +//Calculation +VB=VCC*(R2/(R1+R2)) //Quiescent base voltage +VE=VB-VBE //Quiescent emitter voltage +IE=VE/RE //Quiescent emitter current +ri=(R1*R2)/(R1+R2) //input resistance +ro=1/(40*IE) //output resistance + + + +//Results +printf("Small Signal Voltage Gain = %d\n",av) +printf("Small Signal Input Resistance is %.1f kOhm\n",(ri/1000)) +printf("Small Signal Output Resistance is %.2f kOhm\n",(ro)) diff --git a/3809/CH18/EX18.11/EX18_11.sce b/3809/CH18/EX18.11/EX18_11.sce new file mode 100644 index 000000000..041e93433 --- /dev/null +++ b/3809/CH18/EX18.11/EX18_11.sce @@ -0,0 +1,30 @@ +//Chapter 18, Example 18.11 +clc +//Initialisation +VCC=10 //voltage +R2=3*10**3 //resistance in ohm +R1=7*10**3 //resistance in ohm +RE=10**3 //resistance in ohm +RC=3*10**3 //resistance in ohm +VBE=0.7 //base emitter voltage +av=1 //small sg voltage gain +RE2=2*10**3 //resistance in ohm +RC2=4*10**3 //resistance in ohm + + +//Calculation +VB=VCC*(R2/(R1+R2)) //Quiescent base voltage +VE=VB-VBE //Quiescent emitter voltage +IE=VE/RE //Quiescent emitter current +VC1=VCC-(IE*RC) //Quiescent collector voltage +VB2=VC1 //bias voltage +VE2=VB2-VBE //emitter voltage +IC2=VE2/RE2 //collector current in ampere +VC2=VCC-(IC2*RC2) //collector voltage +Av=(-RC/RE)*(-RC2/RE2) //overall gain + + + +//Results +printf("Quiescent output voltage = %.1f V\n",VC2) +printf("Overall Voltage Gain = %d",Av) diff --git a/3809/CH18/EX18.2/EX18_2.sce b/3809/CH18/EX18.2/EX18_2.sce new file mode 100644 index 000000000..c78321878 --- /dev/null +++ b/3809/CH18/EX18.2/EX18_2.sce @@ -0,0 +1,22 @@ +//Chapter 18, Example 18.2
+clc
+//Initialisation
+Ie=1.02*10**-3
+RB=910*10**3 //resistance in ohm
+hfe=100 //HFE parameter of the transistor
+RC=4.7*10**3 //resistance in ohm
+hoe=10*10**-6 //HOE parameter of the transistor
+
+//Calculation
+gm=40*Ie
+hie=hfe/(40*Ie) //HIE parameter of the transistor
+av=-gm*RC/((hoe*RC)+1) //small signal voltage gain
+ri=(RB*hie)/(RB+hie) //Input Resistance
+a1=1/hoe
+ro=(RC*a1)/(RC+a1) //Output Resistance
+
+
+//Results
+printf("Small Signal Voltage Gain = %d \n",av)
+printf("Input Resistance = %.1f kOhm \n",ri/1000)
+printf("Output Resistance = %.1f kOhm \n",ro/1000)
diff --git a/3809/CH18/EX18.3/EX18_3.sce b/3809/CH18/EX18.3/EX18_3.sce new file mode 100644 index 000000000..89d255e45 --- /dev/null +++ b/3809/CH18/EX18.3/EX18_3.sce @@ -0,0 +1,28 @@ +//Chapter 18, Example 18.3 +clc +//Initialisation +VCC=10 //voltage +R2=10*10**3 //resistance in ohm +R1=27*10**3 //resistance in ohm +RE=1*10**3 //resistance in ohm +RC=2.2 //resistance in ohm +VBE=0.7 //base emitter voltage + + + +//Calculation +VB=VCC*(R2/(R1+R2)) //Quiescent base voltage +VE=VB-VBE //Quiescent emitter voltage +IE=VE/RE //Quiescent emitter current +IC=IE //Quiescent collector current +VO=VCC-(IC*RC) //Quiescent collector voltage + + + + +//Results +printf("Quiescent base voltage = %.2f V\n",VB) +printf("Quiescent emitter voltage = %d V\n",VE) +printf("Quiescent emitter current = %d mA\n",IE*1000) +printf("Quiescent collector current = %d mA\n",IC*1000) +printf("Quiescent collector voltage = %.1f V\n",VO) //wrong answer on textbook diff --git a/3809/CH18/EX18.4/EX18_4.sce b/3809/CH18/EX18.4/EX18_4.sce new file mode 100644 index 000000000..c01a960e8 --- /dev/null +++ b/3809/CH18/EX18.4/EX18_4.sce @@ -0,0 +1,13 @@ +//Chapter 18, Example 18.4 +clc +//Initialisation +RE=1.2*10**3 //resistance in ohm +RC=2.2*10**3 //resistance in ohm + + +//Calculation +av=-RC/RE //voltage gain + + +//Results +printf("Voltage gain = %.1f ",av) //wrong answer in the textbook diff --git a/3809/CH18/EX18.6/EX18_6.sce b/3809/CH18/EX18.6/EX18_6.sce new file mode 100644 index 000000000..4a2971847 --- /dev/null +++ b/3809/CH18/EX18.6/EX18_6.sce @@ -0,0 +1,30 @@ +//Chapter 18, Example 18.6 +clc +//Initialisation +vcc=15 //voltage +vc=9.5 //voltage +ic=10**-3 //collector current +Ie=10**-3 //emitter current +RE=5.6*10**3 //resistance in ohm +RC=1.3*10**3 //resistance in ohm +R2=13*10**3 //resistance in ohm, choosen R2 as approximately 10 times RE +pi=3.14 //pi +fc=10 //frequency in hertz + + +//Calculation +rc=(vcc-vc)/ic //resistance in ohm +re=rc/4 //resistance in ohm +vg=-RC/(RE+re) //voltage gain +R1=(R2*(vcc-2))/2 //resistance in ohm +Ri=(R1*R2)/(R1+R2) //input resistance in ohm +c=1/(2*pi*fc*Ri) //cut-off frequency + + + +//Results +printf("C = %.1f uF\n",c*10**6) +printf("R1 = %.1f kOhm\n",R1/10**3) +printf("R2 = %d kOhm\n",R2/10**3) +printf("RC = %.1f kOhm\n",rc/10**3) +printf("RE = %.1f kOhm\n",re/10**3) diff --git a/3809/CH18/EX18.7/EX18_7.sce b/3809/CH18/EX18.7/EX18_7.sce new file mode 100644 index 000000000..fbd0af61c --- /dev/null +++ b/3809/CH18/EX18.7/EX18_7.sce @@ -0,0 +1,27 @@ +//Chapter 18, Example 18.7 +clc +//Initialisation +vcc=15 //voltage +RC=5.6*10**3 //resistance in ohm +RE=1.3*10**3 //resistance in ohm +R2=13*10**3 //resistance in ohm, +R1=82*10**3 //resistance in ohm +pi=3.14 //pi +fc=10 //frequency in hertz +VBE=0.7 //base to emitter voltage + +//Calculation +VB=vcc*(R2/(R1+R2)) //Quiescent base voltage +VE=VB-VBE //Quiescent emitter voltage +IE=VE/RE //Quiescent emitter current +IC=IE //Quiescent collector current +VO=vcc-(IC*RC) //Quiescent collector voltage + + + +//Results +printf("Quiescent base voltage = %.2f V\n",VB) +printf("Quiescent emitter voltage = %.2f V\n",VE) +printf("Quiescent emitter current = %.2f mA\n",IE*1000) +printf("Quiescent collector current = %.2f mA\n",IC*1000) +printf("Quiescent collector voltage = %.1f V\n",VO) diff --git a/3809/CH18/EX18.8/EX18_8.sce b/3809/CH18/EX18.8/EX18_8.sce new file mode 100644 index 000000000..5331dcb1d --- /dev/null +++ b/3809/CH18/EX18.8/EX18_8.sce @@ -0,0 +1,40 @@ +//Chapter 18, Example 18.8 +clc +//Initialisation +vcc=15 //voltage +RC=5.6*10**3 //resistance in ohm +RE=1.3*10**3 //resistance in ohm +R2=13*10**3 //resistance in ohm, +R1=82*10**3 //resistance in ohm +pi=3.14 //pi +fc=10 //frequency in hertz +VBE=0.7 //base to emitter voltage +hfe1=100 +hfe2=400 + +//Calculation +VB=vcc*(R2/(R1+R2)) //Quiescent base voltage +VE=VB-VBE //Quiescent emitter voltage +IE=VE/RE //Quiescent emitter current +IC=IE //Quiescent collector current +VO=vcc-(IC*RC) //Quiescent collector voltage + +re=1/(40*IE) +av=-RC/re //voltage gain +rp=(R1*R2)/(R1+R2) + +//if hfe=100 +hie1=hfe1*re +ri1=(rp*hie1)/(rp+hie1) + +//if hfe=400 +hie2=hfe2*re +ri2=(rp*hie2)/(rp+hie2) + +ro=RC + +//Results +printf("Small Signal Voltage Gain = %d\n",av) +printf("Small Signal Input Resistance is %d kOhm to %.1f kOhm\n",round(ri1/1000),(ri2/1000)) +printf("Small Signal Output Resistance is %.1f kOhm\n",(RC/1000)) + diff --git a/3809/CH18/EX18.9/EX18_9.sce b/3809/CH18/EX18.9/EX18_9.sce new file mode 100644 index 000000000..4431f5612 --- /dev/null +++ b/3809/CH18/EX18.9/EX18_9.sce @@ -0,0 +1,20 @@ +//Chapter 18, Example 18.9 +clc +//Initialisation +R1=2*10**3 //resistance in ohm +R2=5.2*10**3 //resistance in ohm +pi=3.14 //pi +c=2.2*10**-6 //capacitance in farad +ce=10*10**-6 //capacitance in farad +re=24 //resistance in ohm + +//Calculation +fc1=1/(2*pi*c*R1) //cut-off frequency + +fc2=1/(2*pi*c*R2) //cut-off frequency + +fc=1/(2*pi*ce*re) //cut-off frequency + +//Results +printf("Coupling Capacitor is in the range %d Hz - %d Hz\n",round(fc2),round(fc1)) +printf("Decoupling Capacitor, Ce = %d Hz",fc) |