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 /1994/CH2 | |
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 '1994/CH2')
-rwxr-xr-x | 1994/CH2/EX2.1/Example2_1.sce | 12 | ||||
-rwxr-xr-x | 1994/CH2/EX2.2/Example2_2.sce | 9 | ||||
-rwxr-xr-x | 1994/CH2/EX2.3/Example2_3.sce | 8 | ||||
-rwxr-xr-x | 1994/CH2/EX2.4/Example2_4.sce | 10 | ||||
-rwxr-xr-x | 1994/CH2/EX2.5/Example2_5.sce | 12 | ||||
-rwxr-xr-x | 1994/CH2/EX2.6/Example2_6.sce | 10 |
6 files changed, 61 insertions, 0 deletions
diff --git a/1994/CH2/EX2.1/Example2_1.sce b/1994/CH2/EX2.1/Example2_1.sce new file mode 100755 index 000000000..d9acdb512 --- /dev/null +++ b/1994/CH2/EX2.1/Example2_1.sce @@ -0,0 +1,12 @@ +
+//Chapter-2,Example2_1,pg 2_9
+Vr=10
+n=4
+Res=0.5//resolution
+Rt=Vr/((2^n)*Res)
+Rf=10*10^3
+R=Rt*Rf
+printf("input resistance\n")
+printf("r=%.2f ohm\n",R)
+printf("feedback resistance\n")
+printf("Rf=%.f ohm",Rf)
diff --git a/1994/CH2/EX2.2/Example2_2.sce b/1994/CH2/EX2.2/Example2_2.sce new file mode 100755 index 000000000..4b417cba0 --- /dev/null +++ b/1994/CH2/EX2.2/Example2_2.sce @@ -0,0 +1,9 @@ +//Chapter-2,Example2_2,pg 2_11
+n=8
+Res1=2^n
+Vofs=2.55//full scale output voltage
+Res2=Vofs/(Res1-1)
+printf("resolution through method-1\n")
+printf("Res1=%.2f \n",Res1)
+printf("resolution through method-2\n")
+printf("Res2=%.2f \n",Res2)
diff --git a/1994/CH2/EX2.3/Example2_3.sce b/1994/CH2/EX2.3/Example2_3.sce new file mode 100755 index 000000000..886c3204a --- /dev/null +++ b/1994/CH2/EX2.3/Example2_3.sce @@ -0,0 +1,8 @@ +//Chapter-2,Example2_3,pg 2_12
+n=4
+Vofs=15
+Res=Vofs/((2^n)-1)
+D=bin2dec('0110')//decimal equivalent
+Vo=Res*D
+printf("output voltage\n")
+printf("Vo=%.2f V",Vo)
diff --git a/1994/CH2/EX2.4/Example2_4.sce b/1994/CH2/EX2.4/Example2_4.sce new file mode 100755 index 000000000..0b3e99d42 --- /dev/null +++ b/1994/CH2/EX2.4/Example2_4.sce @@ -0,0 +1,10 @@ +//Chapter-2,Example2_4,pg 2_12
+Res=20*10^-3
+n=8
+Vofs=Res*((2^n)-1)
+D=bin2dec('10000000')
+Vo=Res*D
+printf("output voltage\n")
+printf("Vo=%.2f V\n",Vo)
+printf("full scale output voltage\n")
+printf("Vofs=%.2f V",Vofs)
diff --git a/1994/CH2/EX2.5/Example2_5.sce b/1994/CH2/EX2.5/Example2_5.sce new file mode 100755 index 000000000..15d621fac --- /dev/null +++ b/1994/CH2/EX2.5/Example2_5.sce @@ -0,0 +1,12 @@ +//Chapter-2,Example2_5,pg 2_12
+n=4
+Vofs=5
+Res=Vofs/((2^n)-1)
+D1=bin2dec('1000')
+Vo1=Res*D1
+D2=bin2dec('1111')
+Vo2=Res*D2
+printf("output voltage1\n")
+printf("Vo1=%.2f V\n",Vo1)
+printf("output voltage2\n")
+printf("Vo2=%.2f V\n",Vo2)
diff --git a/1994/CH2/EX2.6/Example2_6.sce b/1994/CH2/EX2.6/Example2_6.sce new file mode 100755 index 000000000..8d20a05bb --- /dev/null +++ b/1994/CH2/EX2.6/Example2_6.sce @@ -0,0 +1,10 @@ +//Chapter-2,Example2_6,pg 2_13
+n=12
+Res=8*10^-3
+Vofs=Res*((2^n)-1)
+perR=Res/Vofs*100
+Vo=Res*bin2dec('010101101101')
+printf("percentage resolution\n")
+printf("perR=%.2f \n",perR)
+printf("output voltage\n")
+printf("Vo=%.2f V",Vo)
|