summaryrefslogtreecommitdiff
path: root/3809/CH17
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH17')
-rw-r--r--3809/CH17/EX17.1/EX17_1.sce17
-rw-r--r--3809/CH17/EX17.2/EX17_2.sce13
-rw-r--r--3809/CH17/EX17.3/EX17_3.sce18
-rw-r--r--3809/CH17/EX17.4/EX17_4.sce20
-rw-r--r--3809/CH17/EX17.5/EX17_5.sce21
-rw-r--r--3809/CH17/EX17.6/EX17_6.sce21
-rw-r--r--3809/CH17/EX17.7/EX17_7.sce15
7 files changed, 125 insertions, 0 deletions
diff --git a/3809/CH17/EX17.1/EX17_1.sce b/3809/CH17/EX17.1/EX17_1.sce
new file mode 100644
index 000000000..b56218817
--- /dev/null
+++ b/3809/CH17/EX17.1/EX17_1.sce
@@ -0,0 +1,17 @@
+//Chapter 17, Example 17.1
+clc
+//Initialisation
+rd=100*10**3 //resistance in ohm
+gm=2*10**-3 //in seimens
+RD=2*10**3 //resistance in ohm
+RG=10**6 //resistance in ohm
+
+//Calculation
+ro=((rd*RD)/(rd+RD)) //Input Resistance
+v=-gm*ro //Small Signal Voltage Gain
+ri=RG //Input Resistance
+
+//Results
+printf("Small Signal Voltage Gain = %.1f \n",v)
+printf("Input Resistance, ri = %d MOhm \n",ri/10**6)
+printf("Ouput Resistance, ro = %d kOhm \n",round(ro/10**3))
diff --git a/3809/CH17/EX17.2/EX17_2.sce b/3809/CH17/EX17.2/EX17_2.sce
new file mode 100644
index 000000000..145890ab0
--- /dev/null
+++ b/3809/CH17/EX17.2/EX17_2.sce
@@ -0,0 +1,13 @@
+//Chapter 17, Example 17.2
+clc
+//Initialisation
+C=10**-6 //capacitance in farad
+RG=10**6 //resistance in ohm
+pi=3.14 //pi
+
+
+//Calculation
+fc=1/(2*pi*C*RG) //frequency in Hz
+
+//Results
+printf("Fc = %.2f Hz",fc )
diff --git a/3809/CH17/EX17.3/EX17_3.sce b/3809/CH17/EX17.3/EX17_3.sce
new file mode 100644
index 000000000..e865e5b54
--- /dev/null
+++ b/3809/CH17/EX17.3/EX17_3.sce
@@ -0,0 +1,18 @@
+//Chapter 17, Example 17.3
+clc
+//Initialisation
+VDD=15 //voltage
+Vq=10 //quiescent output voltage
+VGS=3 //voltage
+RD=2.5*10**3 //resistance in Ohm
+
+//Calculation
+VR=VDD-Vq //voltage
+ID=VR/RD //quiescent drain current
+Rs=VGS/ID //resistance in ohm
+
+
+//Results
+printf("Rs = %.1f kOhm\n",Rs/1000)
+printf("ID = %d mA\n",ID*1000)
+printf("VR = %d V",VR)
diff --git a/3809/CH17/EX17.4/EX17_4.sce b/3809/CH17/EX17.4/EX17_4.sce
new file mode 100644
index 000000000..13e60ece7
--- /dev/null
+++ b/3809/CH17/EX17.4/EX17_4.sce
@@ -0,0 +1,20 @@
+//Chapter 17, Example 17.4
+clc
+//Initialisation
+VDD=15 //voltage
+Vq=10 //quiescent output voltage
+RD=2.5*10**3 //resistance in Ohm
+Vp=-6 //voltage
+IDSS=8*10**-3 //saturation drain current in amp
+
+//Calculation
+VR=VDD-Vq //voltage
+ID=VR/RD //quiescent drain current
+VGS=Vp*(1-sqrt(ID/IDSS)) //voltage
+Rs=VGS/ID //resistance in ohm
+
+
+//Results
+printf("Rs = %.1f kOhm\n",-Rs/1000)
+printf("ID = %d mA\n",ID*1000)
+printf("VGS = %d V\n",VGS)
diff --git a/3809/CH17/EX17.5/EX17_5.sce b/3809/CH17/EX17.5/EX17_5.sce
new file mode 100644
index 000000000..d64959db0
--- /dev/null
+++ b/3809/CH17/EX17.5/EX17_5.sce
@@ -0,0 +1,21 @@
+//Chapter 17, Example 17.5
+clc
+//Initialisation
+r1=10**6 //resistance in ohm
+r2=2*10**6 //resistance in ohm
+Rd=3.3*10**3 //resistance in ohm
+Rs=10**3 //resistance in ohm
+c=10**-6 //capactance in farad
+pi=3.14 //pi
+
+//Calculation
+ri=(r1*r2)/(r1+r2) //resistance in R1 & R2 parallel
+ro=Rd //output resistance
+av=-Rd/Rs //votlage gain
+fc=1/(2*pi*ri*c) //frequency in Hz
+
+//Results
+printf("Input resistance ri = %d kOhm\n",round(ri/1000))
+printf("Output resistance ro = %.1f kOhm\n",ro/1000)
+printf("Small Signal Voltage Gain = %.1f\n",av)
+printf("Fo = %.2f Hz ",fc)
diff --git a/3809/CH17/EX17.6/EX17_6.sce b/3809/CH17/EX17.6/EX17_6.sce
new file mode 100644
index 000000000..d362fee18
--- /dev/null
+++ b/3809/CH17/EX17.6/EX17_6.sce
@@ -0,0 +1,21 @@
+//Chapter 17, Example 17.6
+clc
+//Initialisation
+rd=50*100*3 //resistance in ohm
+gm=72*10**-3 //in siemens
+Rd=3.3*10**3 //resistance in ohm
+Rs=10**3 //resistance in ohm
+
+
+
+//Calculation
+av=-Rd/Rs //votlage gain from eq 17.7
+b=gm*Rd
+c=gm*Rs
+av1=-(b)/(1+(c)+((Rd+Rs)/rd)) //voltage gain from eq 17.8
+av2=-(b)/(1+(c)) //voltage gain from eq 17.9
+
+//Results
+printf("From Eq 17.7, Gain = %.1f\n",av)
+printf("From Eq 17.8, Gain = %.3f\n",av1)
+printf("From Eq 17.9, Gain = %.3f\n",av2)
diff --git a/3809/CH17/EX17.7/EX17_7.sce b/3809/CH17/EX17.7/EX17_7.sce
new file mode 100644
index 000000000..57d8da13b
--- /dev/null
+++ b/3809/CH17/EX17.7/EX17_7.sce
@@ -0,0 +1,15 @@
+//Chapter 17, Example 17.7
+clc
+//Initialisation
+gm=72*10**-3 //in siemens
+Rd=3.3*10**3 //resistance in ohm
+
+
+
+//Calculation
+b=-gm*Rd //gain of the circuit
+
+
+//Results
+printf(" Gain = %.1f\n",round(b))
+