diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /226/CH17 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '226/CH17')
-rwxr-xr-x | 226/CH17/EX17.1/example1_sce.sce | 17 | ||||
-rwxr-xr-x | 226/CH17/EX17.10/example10_sce.sce | 11 | ||||
-rwxr-xr-x | 226/CH17/EX17.12/example12_sce.sce | 12 | ||||
-rwxr-xr-x | 226/CH17/EX17.13/example13_sce.sce | 12 | ||||
-rwxr-xr-x | 226/CH17/EX17.2/example2_sce.sce | 11 | ||||
-rwxr-xr-x | 226/CH17/EX17.3/example3_sce.sce | 10 | ||||
-rwxr-xr-x | 226/CH17/EX17.4/example4_sce.sce | 17 | ||||
-rwxr-xr-x | 226/CH17/EX17.5/example5_sce.sce | 13 | ||||
-rwxr-xr-x | 226/CH17/EX17.6/example6_sce.sce | 18 | ||||
-rwxr-xr-x | 226/CH17/EX17.7/example7_sce.sce | 21 | ||||
-rwxr-xr-x | 226/CH17/EX17.8/example8_sce.sce | 13 | ||||
-rwxr-xr-x | 226/CH17/EX17.9/example9_sce.sce | 9 |
12 files changed, 164 insertions, 0 deletions
diff --git a/226/CH17/EX17.1/example1_sce.sce b/226/CH17/EX17.1/example1_sce.sce new file mode 100755 index 000000000..fa2ef84d2 --- /dev/null +++ b/226/CH17/EX17.1/example1_sce.sce @@ -0,0 +1,17 @@ +//chapter 17
+//example 17.1
+//page 716
+printf("\n")
+printf("given")
+rs=600;R1=12*10^3;Rl=100*10^3;C1=.013*10^-6;
+disp("when Rl is not connected")
+fc=1/(2*3.14*R1*C1)
+disp(" when Rl is connected")
+fc=1/(2*3.14*((R1*Rl)/(R1+Rl))*C1)
+Attn=3//at fc attenuation is =3dB
+falloffrate=6
+disp("attenuation at 2fc")
+Attn=3+6;
+printf("attenuation at 2fc is %ddB\n",Attn)
+Attn=3+6+6;
+printf(" attenuation at 4fc is %ddB\n",Attn)
\ No newline at end of file diff --git a/226/CH17/EX17.10/example10_sce.sce b/226/CH17/EX17.10/example10_sce.sce new file mode 100755 index 000000000..bb2ba4f13 --- /dev/null +++ b/226/CH17/EX17.10/example10_sce.sce @@ -0,0 +1,11 @@ +//chapter 17
+//example 17.10
+//page 737
+printf("\n")
+printf("given")
+R1=60.4*10^3;R4=1.21*10^3;C=.012*10^-6;R2=121*10^3;
+Q=sqrt((R1+R4)/(2*R4))
+fo=Q/(3.14*C*R2);
+printf(" center frequency is %3.2fHz\n",fo)
+BW=fo/Q;
+printf(" bandwidth is %3.1fHz\n",BW)
\ No newline at end of file diff --git a/226/CH17/EX17.12/example12_sce.sce b/226/CH17/EX17.12/example12_sce.sce new file mode 100755 index 000000000..46e6bd0c5 --- /dev/null +++ b/226/CH17/EX17.12/example12_sce.sce @@ -0,0 +1,12 @@ +//chapter 17
+//example 17.12
+//page 744
+printf("\n")
+printf("given")
+f1=10.3*10^3;f2=10.9*10^3;
+C1=1000*10^-12;C2=C1;
+fo=sqrt(f1*f2)
+R5=1/(2*3.14*fo*C1)
+R1=R5;
+Q=fo/(f2-f1)
+R2=R1*(2*Q-1)
\ No newline at end of file diff --git a/226/CH17/EX17.13/example13_sce.sce b/226/CH17/EX17.13/example13_sce.sce new file mode 100755 index 000000000..de56bb183 --- /dev/null +++ b/226/CH17/EX17.13/example13_sce.sce @@ -0,0 +1,12 @@ +//chapter 17
+//example 17.13
+//page 750
+printf("\n")
+printf("given")
+f1=10.3*10^3;f2=10.9*10^3;Hobp=34;
+sqrt(f1*f2)
+Q=fo/(f2-f1)
+R3=120*10^3;
+R2=R3/Q
+R1=R3/Hobp
+fck=50*fo
\ No newline at end of file diff --git a/226/CH17/EX17.2/example2_sce.sce b/226/CH17/EX17.2/example2_sce.sce new file mode 100755 index 000000000..8de2206a0 --- /dev/null +++ b/226/CH17/EX17.2/example2_sce.sce @@ -0,0 +1,11 @@ +//chapter 17
+//example 17.2
+//page 718
+printf("\n")
+printf("given")
+Ib=500*10^-9;f=1*10^3;
+R1=(70*10^-3)/Ib
+R1=140*10^3;//use standard value
+R2=R1;
+C1=(1/(2*3.14*R1*f))*10^12;
+printf(" capacitor used is of %dpF\n",C1)
\ No newline at end of file diff --git a/226/CH17/EX17.3/example3_sce.sce b/226/CH17/EX17.3/example3_sce.sce new file mode 100755 index 000000000..5428daf5f --- /dev/null +++ b/226/CH17/EX17.3/example3_sce.sce @@ -0,0 +1,10 @@ +//chapter 17
+//example 17.3
+//page 719
+printf("\n")
+printf("given")
+disp("first order high pass active filter")
+f=5*10^3;C1=1000*10^-12;fu=1*10^6;
+R1=1/(2*3.14*f*C1)
+BW=fu-f;
+printf(" bandwidth is %dHz\n",BW)
\ No newline at end of file diff --git a/226/CH17/EX17.4/example4_sce.sce b/226/CH17/EX17.4/example4_sce.sce new file mode 100755 index 000000000..b9f09c63a --- /dev/null +++ b/226/CH17/EX17.4/example4_sce.sce @@ -0,0 +1,17 @@ +//chapter 17
+//example 17.4
+//page 724
+printf("\n")
+printf("given")
+f=1*10^3;Ib=500*10^-9;
+disp("butterworth second order filter")
+R=(70*10^-3)/Ib
+R1=R/2
+R1=68.1*10^3;//use standard value
+R2=R1;
+R3=2*R1
+Xc1=sqrt(2)*R2
+C1=1/(2*3.14*f*sqrt(2)*R2)
+C2=2*C1
+fc=1/(2*3.14*(sqrt(R1*R2*C1*C2)));
+printf("actual cutoff frequency is %dHz\n",fc)
\ No newline at end of file diff --git a/226/CH17/EX17.5/example5_sce.sce b/226/CH17/EX17.5/example5_sce.sce new file mode 100755 index 000000000..8d44ba0af --- /dev/null +++ b/226/CH17/EX17.5/example5_sce.sce @@ -0,0 +1,13 @@ +//chapter 17
+//example 17.5
+//page 7
+printf("\n")
+printf("given")
+f=12*10^3;C1=1000*10^-12;
+disp("butterworth second order filter")
+C2=C1;
+R2=(sqrt(2))/(2*3.14*f*C1)
+R1=.5*R2
+R3=R2;
+fc=1/(2*3.14*(sqrt(R1*R2*C1*C2)));
+printf("actual cutoff frequency is %dHz\n",fc)
\ No newline at end of file diff --git a/226/CH17/EX17.6/example6_sce.sce b/226/CH17/EX17.6/example6_sce.sce new file mode 100755 index 000000000..e4da15b4f --- /dev/null +++ b/226/CH17/EX17.6/example6_sce.sce @@ -0,0 +1,18 @@ +//chapter 17
+//example 17.6
+//page 729
+printf("\n")
+printf("given")
+f=30*10^3;C1=1000*10^-12;
+disp(" third order low pass filter")
+disp("-20 dB per decade stage")
+fc1=f/.65;
+R1=1/(2*3.14*fc1*C1)
+R2=R1;
+disp("-40dB per decade stage")
+C3=1000*10^-12;
+C2=2*C3
+fc2=f/.8
+R4=1/(2*3.14*fc2*C3*(sqrt(2)))
+R3=R4;
+R5=R3+R4
\ No newline at end of file diff --git a/226/CH17/EX17.7/example7_sce.sce b/226/CH17/EX17.7/example7_sce.sce new file mode 100755 index 000000000..f9809e2ef --- /dev/null +++ b/226/CH17/EX17.7/example7_sce.sce @@ -0,0 +1,21 @@ +//chapter 17
+//example 17.7
+//page 730
+printf("\n")
+printf("given")
+f=20*10^3;
+disp("3rd order high pass filter")
+disp("-20dB per decade stage")
+R1=121*10^3;
+fc1=.65*f
+C1=1/(2*3.14*fc1*R1)
+//this is so small it might be effected by stray capacitor.redesign ,first choosing a suitable capacitance C1
+C1=100*10^-12;
+R1=1/(2*3.14*f*C1)
+R2=R1;
+disp("-40dB per decade stage")
+C3=1000*10^-12;
+R4=(sqrt(2))/(2*3.14*.8*f*C3)
+C2=C3;
+R3=.5*R4
+R5=R4
\ No newline at end of file diff --git a/226/CH17/EX17.8/example8_sce.sce b/226/CH17/EX17.8/example8_sce.sce new file mode 100755 index 000000000..6aa5fd606 --- /dev/null +++ b/226/CH17/EX17.8/example8_sce.sce @@ -0,0 +1,13 @@ +//chapter 17
+//example 17.8
+//page 734
+printf("\n")
+printf("given")
+f1=300;f2=30*10^3;
+disp(" single stage band pass filter")
+C2=1000*10^-12;
+R2=1/(2*3.14*f2*C2)
+R1=R2;
+Xc1=R1;//at voltage gain Av=1
+C1=1/(2*3.14*f1*R1)
+R3=R2
\ No newline at end of file diff --git a/226/CH17/EX17.9/example9_sce.sce b/226/CH17/EX17.9/example9_sce.sce new file mode 100755 index 000000000..7373ef304 --- /dev/null +++ b/226/CH17/EX17.9/example9_sce.sce @@ -0,0 +1,9 @@ +//chapter 17
+//example 17.9
+//page 736
+printf("\n")
+printf("given")
+f1=300;f2=30*10^3;
+fo=sqrt(f1*f2)
+BW=f2-f1
+Q=fo/BW
\ No newline at end of file |