diff options
Diffstat (limited to '2210/CH8')
-rwxr-xr-x | 2210/CH8/EX8.1/8_1.sce | 9 | ||||
-rwxr-xr-x | 2210/CH8/EX8.2/8_2.sce | 14 | ||||
-rwxr-xr-x | 2210/CH8/EX8.3/8_3.sce | 13 | ||||
-rwxr-xr-x | 2210/CH8/EX8.4/8_4.sce | 13 | ||||
-rwxr-xr-x | 2210/CH8/EX8.5/8_5.sce | 28 | ||||
-rwxr-xr-x | 2210/CH8/EX8.6/8_6.sce | 23 | ||||
-rwxr-xr-x | 2210/CH8/EX8.7/8_7.sce | 12 | ||||
-rwxr-xr-x | 2210/CH8/EX8.8/8_8.sce | 12 |
8 files changed, 124 insertions, 0 deletions
diff --git a/2210/CH8/EX8.1/8_1.sce b/2210/CH8/EX8.1/8_1.sce new file mode 100755 index 000000000..aef109b1f --- /dev/null +++ b/2210/CH8/EX8.1/8_1.sce @@ -0,0 +1,9 @@ +//Chapter 8, Problem 1
+clc
+L=630e-9 //inductance in henry
+C=400e-12 //capacitance in farad
+
+//calculating the resonating frequency
+fos=1/(2*%pi*sqrt(L*C))
+
+printf("Resonant frequency = %.3f MHz",fos/10^6)
diff --git a/2210/CH8/EX8.2/8_2.sce b/2210/CH8/EX8.2/8_2.sce new file mode 100755 index 000000000..78b219dff --- /dev/null +++ b/2210/CH8/EX8.2/8_2.sce @@ -0,0 +1,14 @@ +//Chapter 8, Problem 2
+clc
+r1=100e3 //resistance in ohm
+r2=10e3 //resistance in ohm
+c1=10e-9 //capacitance in farad
+c2=100e-9 //capacitance in farad
+
+//calculation
+w=sqrt(1/(c1*c2*r1*r2))
+f=w/(2*%pi)
+g=1+(r1/r2)+(c2/c1)
+
+printf("(a) Frequency of oscillation = %.2f Hz\n\n",f)
+printf("(b) Minimum gain of the amplifier = %d ",g)
diff --git a/2210/CH8/EX8.3/8_3.sce b/2210/CH8/EX8.3/8_3.sce new file mode 100755 index 000000000..2641c8a20 --- /dev/null +++ b/2210/CH8/EX8.3/8_3.sce @@ -0,0 +1,13 @@ +//Chapter 8, Problem 3
+clc
+c1=10e-12 //capacitance in farad
+c2=100e-12 //capacitance in farad
+f=100e6 //frequency in hertz
+
+//calculation
+w=2*%pi*f
+L=(1/w^2)*((1/c1)+(1/c2))
+g=1+(c2/c1)
+
+printf("(a) Value of inductor = %.2f nH\n\n",L*10^9)
+printf("(b) Minimum voltage gain = %d ",g)
diff --git a/2210/CH8/EX8.4/8_4.sce b/2210/CH8/EX8.4/8_4.sce new file mode 100755 index 000000000..fded4b658 --- /dev/null +++ b/2210/CH8/EX8.4/8_4.sce @@ -0,0 +1,13 @@ +//Chapter 8, Problem 4
+clc
+ct=15e-12 //capacitance in farad
+c1=47e-12 //capacitance in farad
+c2=100e-12 //capacitance in farad
+L=300e-9 //inductance in henry
+
+//calculation
+w1=(1/(L*ct))*(1+(ct/c1)+(ct/c2))
+w=sqrt(w1)
+fos=w/(2*%pi)
+
+printf("Approximate frequency = %.2f MHz",fos/10^6)
diff --git a/2210/CH8/EX8.5/8_5.sce b/2210/CH8/EX8.5/8_5.sce new file mode 100755 index 000000000..37866649e --- /dev/null +++ b/2210/CH8/EX8.5/8_5.sce @@ -0,0 +1,28 @@ +//Chapter 8, Problem 5, figure 8.28
+clc
+Rf=9e3 //resistance in ohm
+R1=1e3 //resistance in ohm
+Kphi=0.12 //transfer gain in volt/radian
+Ko=-40e3 //transfer gain in hertz/volt
+fi=100e3 //input frequency in hertz
+fo=120e3 //oitput frequency in hertz from VCO
+
+//calculation
+Ka=(Rf/R1)+1
+Kl=Kphi*Ka*Ko*2*%pi
+Kl_dB=real(20*log10(Kl))
+fd=fi-fo
+Vo=fd/Ko
+Vd=Vo/Ka
+theta=Vd/Kphi
+fd1=-Kl/(2*%pi)
+Vd1=Kphi*%pi/2
+
+printf("(a) Voltage gain (ka) for the op-amp = %d\n\n",Ka)
+printf("(b) Loop gain (kL) = %.1f s^-1\n\t\t= %.1f dB\n\n",Kl,Kl_dB)
+printf("(c) With S1 open as shown, there is no phase lock and the beat frequency = %d kHz\n\n",fd/1000)
+printf("(d)(i) fo = %d kHz\n",fi/1000)
+printf(" (ii) Static phase error = %.3f rad\n",theta)
+printf(" (iii) Vo = %.1f V\n\n",Vo)
+printf("(e) Hold-in range Df = %.2f kHz\n\n",fd1/1000)
+printf("(f) Maximum value of vd = %.3f V d.c",Vd1)
diff --git a/2210/CH8/EX8.6/8_6.sce b/2210/CH8/EX8.6/8_6.sce new file mode 100755 index 000000000..e1befdc00 --- /dev/null +++ b/2210/CH8/EX8.6/8_6.sce @@ -0,0 +1,23 @@ +//Chapter 8, Problem 6
+clc
+f1=70e6 //section 1, frequency in hertz
+f2=5e6 //section 2, frequency in hertz
+f3=400e3 //section 3, frequency in hertz
+f4=80e3 //section 4, frequency in hertz
+
+//calculation
+F3h=f3+f4
+F3l=f3-f4
+
+F2h=f2+F3h
+F2l=f2-F3h
+
+F1h=f1+F2h
+F1l=f1-F2h
+
+printf("Mixer 3 : %d Khz and %d Khz\n",F3h/1000,F3l/1000)
+printf("After filter 3 : %d Khz\n\n",F3h/1000)
+printf("Mixer 2 : %.2f Mhz and %.2f Mhz\n",F2h/10^6,F2l/10^6)
+printf("After filter 2 : %.2f Mhz\n\n",F2h/10^6)
+printf("Mixer 1 : %.2f Mhz and %.2f Mhz\n",F1h/10^6,F1l/10^6)
+printf("After filter 1 : %.2f Mhz\n\n",F1h/10^6)
diff --git a/2210/CH8/EX8.7/8_7.sce b/2210/CH8/EX8.7/8_7.sce new file mode 100755 index 000000000..b7c3341da --- /dev/null +++ b/2210/CH8/EX8.7/8_7.sce @@ -0,0 +1,12 @@ +//Chapter 8, Problem 7
+clc
+fl=511e6 //lowest frequency at the divider
+res=1e6 //resolution
+fh=887e6 //highest frequency at the divider
+
+//calculation of division factor
+N=fl/res
+N2=fh/res
+
+printf("Lowest value of division factor, N = %d \n\n",N)
+printf("Highest value of division factor, N = %d ",N2)
diff --git a/2210/CH8/EX8.8/8_8.sce b/2210/CH8/EX8.8/8_8.sce new file mode 100755 index 000000000..5991a155f --- /dev/null +++ b/2210/CH8/EX8.8/8_8.sce @@ -0,0 +1,12 @@ +//Chapter 8, Problem 8
+clc
+fl=18.7e6 //lowest frequency at the divider
+fo=50e3 //divider output
+fl2=38.7e6 //highest frequency at the divider
+
+//calculation of division factor
+N=fl/fo
+N2=fl2/fo
+
+printf("Lowest value of division factor, N = %d \n\n",N)
+printf("Highest value of division factor, N = %d ",N2)
|