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 /876/CH6 | |
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 '876/CH6')
-rwxr-xr-x | 876/CH6/EX6.1/EX6_1t.txt | 14 | ||||
-rwxr-xr-x | 876/CH6/EX6.1/Ex6_1.sce | 14 | ||||
-rwxr-xr-x | 876/CH6/EX6.1/Ex6_1.txt | 8 | ||||
-rwxr-xr-x | 876/CH6/EX6.10/Ex6_10.sce | 12 | ||||
-rwxr-xr-x | 876/CH6/EX6.10/Ex6_10.txt | 3 | ||||
-rwxr-xr-x | 876/CH6/EX6.10/Ex6_10t.txt | 12 | ||||
-rwxr-xr-x | 876/CH6/EX6.11/Ex6_11.sce | 14 | ||||
-rwxr-xr-x | 876/CH6/EX6.11/Ex6_11.txt | 7 | ||||
-rwxr-xr-x | 876/CH6/EX6.11/Ex6_11t.txt | 14 | ||||
-rwxr-xr-x | 876/CH6/EX6.2/Ex6_2.sce | 13 | ||||
-rwxr-xr-x | 876/CH6/EX6.2/Ex6_2.txt | 3 | ||||
-rwxr-xr-x | 876/CH6/EX6.2/Ex6_2t.txt | 13 | ||||
-rwxr-xr-x | 876/CH6/EX6.3/Ex6_3.sce | 8 | ||||
-rwxr-xr-x | 876/CH6/EX6.3/Ex6_3.txt | 4 | ||||
-rwxr-xr-x | 876/CH6/EX6.3/Ex6_3t.txt | 8 | ||||
-rwxr-xr-x | 876/CH6/EX6.4/Ex6_4.sce | 15 | ||||
-rwxr-xr-x | 876/CH6/EX6.4/Ex6_4.txt | 12 | ||||
-rwxr-xr-x | 876/CH6/EX6.4/Ex6_4t.txt | 15 | ||||
-rwxr-xr-x | 876/CH6/EX6.5/Ex6_5.sce | 12 | ||||
-rwxr-xr-x | 876/CH6/EX6.5/Ex6_5.txt | 7 | ||||
-rwxr-xr-x | 876/CH6/EX6.5/Ex6_5t.txt | 12 | ||||
-rwxr-xr-x | 876/CH6/EX6.6/Ex6_6.sce | 13 | ||||
-rwxr-xr-x | 876/CH6/EX6.6/Ex6_6.txt | 3 | ||||
-rwxr-xr-x | 876/CH6/EX6.6/Ex6_6t.txt | 13 | ||||
-rwxr-xr-x | 876/CH6/EX6.9/Ex6_9.sce | 13 | ||||
-rwxr-xr-x | 876/CH6/EX6.9/Ex6_9.txt | 7 | ||||
-rwxr-xr-x | 876/CH6/EX6.9/Ex6_9t.txt | 13 |
27 files changed, 282 insertions, 0 deletions
diff --git a/876/CH6/EX6.1/EX6_1t.txt b/876/CH6/EX6.1/EX6_1t.txt new file mode 100755 index 000000000..59b81517c --- /dev/null +++ b/876/CH6/EX6.1/EX6_1t.txt @@ -0,0 +1,14 @@ +//caption:Find output voltage for a binary input(a)1111(b)1100
+//Ex6.1
+clc
+clear
+close
+N=4//bit of D/A convertor
+Rlsb=16//resistance at LSB position(in kilo ohm)
+Vref=5//reference voltage(in V)
+Ro=1//feedback resistance(in kilo ohm)
+R=Rlsb/(2^(N-1))
+Va=-(Ro/R)*Vref*(2^0*1+2^-1*1+2^-2*1+2^-3*1)
+disp(Va,'(a)output voltage(in V)=')
+Vb=-(Ro/R)*Vref*(2^0*1+2^-1*1+2^-2*0+2^-3*0)
+disp(Vb,'(b)output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.1/Ex6_1.sce b/876/CH6/EX6.1/Ex6_1.sce new file mode 100755 index 000000000..59b81517c --- /dev/null +++ b/876/CH6/EX6.1/Ex6_1.sce @@ -0,0 +1,14 @@ +//caption:Find output voltage for a binary input(a)1111(b)1100
+//Ex6.1
+clc
+clear
+close
+N=4//bit of D/A convertor
+Rlsb=16//resistance at LSB position(in kilo ohm)
+Vref=5//reference voltage(in V)
+Ro=1//feedback resistance(in kilo ohm)
+R=Rlsb/(2^(N-1))
+Va=-(Ro/R)*Vref*(2^0*1+2^-1*1+2^-2*1+2^-3*1)
+disp(Va,'(a)output voltage(in V)=')
+Vb=-(Ro/R)*Vref*(2^0*1+2^-1*1+2^-2*0+2^-3*0)
+disp(Vb,'(b)output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.1/Ex6_1.txt b/876/CH6/EX6.1/Ex6_1.txt new file mode 100755 index 000000000..bfc66eaca --- /dev/null +++ b/876/CH6/EX6.1/Ex6_1.txt @@ -0,0 +1,8 @@ +(a)output voltage(in V)=
+
+ - 4.6875
+
+ (b)output voltage(in V)=
+
+ - 3.75
+
\ No newline at end of file diff --git a/876/CH6/EX6.10/Ex6_10.sce b/876/CH6/EX6.10/Ex6_10.sce new file mode 100755 index 000000000..65a64d608 --- /dev/null +++ b/876/CH6/EX6.10/Ex6_10.sce @@ -0,0 +1,12 @@ +//caption:Find input voltage
+//Ex6.10
+clc
+clear
+close
+Vref=5//reference voltage(in V)
+t1=0.2//coumts when input voltage is applied(in sec)
+R=100*10^3//resistance(in ohm)
+C=10^-6//capacitance(in F)
+t2=R*C
+Vin=(t2/t1)*Vref
+disp(Vin,'input voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.10/Ex6_10.txt b/876/CH6/EX6.10/Ex6_10.txt new file mode 100755 index 000000000..f000c40b5 --- /dev/null +++ b/876/CH6/EX6.10/Ex6_10.txt @@ -0,0 +1,3 @@ + input voltage(in V)=
+
+ 2.5
\ No newline at end of file diff --git a/876/CH6/EX6.10/Ex6_10t.txt b/876/CH6/EX6.10/Ex6_10t.txt new file mode 100755 index 000000000..65a64d608 --- /dev/null +++ b/876/CH6/EX6.10/Ex6_10t.txt @@ -0,0 +1,12 @@ +//caption:Find input voltage
+//Ex6.10
+clc
+clear
+close
+Vref=5//reference voltage(in V)
+t1=0.2//coumts when input voltage is applied(in sec)
+R=100*10^3//resistance(in ohm)
+C=10^-6//capacitance(in F)
+t2=R*C
+Vin=(t2/t1)*Vref
+disp(Vin,'input voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.11/Ex6_11.sce b/876/CH6/EX6.11/Ex6_11.sce new file mode 100755 index 000000000..2ae35e5c7 --- /dev/null +++ b/876/CH6/EX6.11/Ex6_11.sce @@ -0,0 +1,14 @@ +//caption:Find(a)output voltage after 1 sec(b)fall time of reference voltage waveform
+//Ex6.11
+clc
+clear
+close
+R=100000//resistance of DVM(in ohm)
+C=10^-6//capacitance(in F)
+Vin=1//input voltage(in V)
+t1=1//rise time of reference voltage waveform at output of integrator(in second)
+Vref=5//reference voltage(in V)
+Vo=Vin*(t1/(R*C))
+disp(Vo,'(a)output voltage after 1sec(in V)=')
+t2=(Vin/Vref)*t1
+disp(t2,'(b)fall time reference voltage waveform(in second)=')
\ No newline at end of file diff --git a/876/CH6/EX6.11/Ex6_11.txt b/876/CH6/EX6.11/Ex6_11.txt new file mode 100755 index 000000000..5e0c43439 --- /dev/null +++ b/876/CH6/EX6.11/Ex6_11.txt @@ -0,0 +1,7 @@ +(a)output voltage after 1sec(in V)=
+
+ 10.
+
+ (b)fall time reference voltage waveform(in second)=
+
+ 0.2
\ No newline at end of file diff --git a/876/CH6/EX6.11/Ex6_11t.txt b/876/CH6/EX6.11/Ex6_11t.txt new file mode 100755 index 000000000..2ae35e5c7 --- /dev/null +++ b/876/CH6/EX6.11/Ex6_11t.txt @@ -0,0 +1,14 @@ +//caption:Find(a)output voltage after 1 sec(b)fall time of reference voltage waveform
+//Ex6.11
+clc
+clear
+close
+R=100000//resistance of DVM(in ohm)
+C=10^-6//capacitance(in F)
+Vin=1//input voltage(in V)
+t1=1//rise time of reference voltage waveform at output of integrator(in second)
+Vref=5//reference voltage(in V)
+Vo=Vin*(t1/(R*C))
+disp(Vo,'(a)output voltage after 1sec(in V)=')
+t2=(Vin/Vref)*t1
+disp(t2,'(b)fall time reference voltage waveform(in second)=')
\ No newline at end of file diff --git a/876/CH6/EX6.2/Ex6_2.sce b/876/CH6/EX6.2/Ex6_2.sce new file mode 100755 index 000000000..456efe295 --- /dev/null +++ b/876/CH6/EX6.2/Ex6_2.sce @@ -0,0 +1,13 @@ +//caption:Find output voltage
+//Ex6.2
+clc
+clear
+close
+Lo=0//input voltage logic0(in V)
+L1=20//input voltage logic1(in V)
+V1msb=L1/2
+V2msb=L1/4
+V3msb=L1/8
+V4msb=L1/16
+Va=V1msb+V2msb+V3msb+V4msb
+disp(Va,'output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.2/Ex6_2.txt b/876/CH6/EX6.2/Ex6_2.txt new file mode 100755 index 000000000..39be2c164 --- /dev/null +++ b/876/CH6/EX6.2/Ex6_2.txt @@ -0,0 +1,3 @@ +output voltage(in V)=
+
+ 18.75
\ No newline at end of file diff --git a/876/CH6/EX6.2/Ex6_2t.txt b/876/CH6/EX6.2/Ex6_2t.txt new file mode 100755 index 000000000..456efe295 --- /dev/null +++ b/876/CH6/EX6.2/Ex6_2t.txt @@ -0,0 +1,13 @@ +//caption:Find output voltage
+//Ex6.2
+clc
+clear
+close
+Lo=0//input voltage logic0(in V)
+L1=20//input voltage logic1(in V)
+V1msb=L1/2
+V2msb=L1/4
+V3msb=L1/8
+V4msb=L1/16
+Va=V1msb+V2msb+V3msb+V4msb
+disp(Va,'output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.3/Ex6_3.sce b/876/CH6/EX6.3/Ex6_3.sce new file mode 100755 index 000000000..a7ff12b8b --- /dev/null +++ b/876/CH6/EX6.3/Ex6_3.sce @@ -0,0 +1,8 @@ +//caption:Find output voltage if input is 101101111
+//Ex6.3
+clc
+clear
+close
+V=10.3*10^-3//input voltage of DAC convertor(in V)
+Vo=(V)*(1*2^8+0*2^7+1*2^6+1*2^5+0*2^4+1*2^3+1*2^2+1*2^1+1*2^0)
+disp(Vo,'output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.3/Ex6_3.txt b/876/CH6/EX6.3/Ex6_3.txt new file mode 100755 index 000000000..d6ab0fbb2 --- /dev/null +++ b/876/CH6/EX6.3/Ex6_3.txt @@ -0,0 +1,4 @@ +output voltage(in V)=
+
+ 3.7801
+
\ No newline at end of file diff --git a/876/CH6/EX6.3/Ex6_3t.txt b/876/CH6/EX6.3/Ex6_3t.txt new file mode 100755 index 000000000..a7ff12b8b --- /dev/null +++ b/876/CH6/EX6.3/Ex6_3t.txt @@ -0,0 +1,8 @@ +//caption:Find output voltage if input is 101101111
+//Ex6.3
+clc
+clear
+close
+V=10.3*10^-3//input voltage of DAC convertor(in V)
+Vo=(V)*(1*2^8+0*2^7+1*2^6+1*2^5+0*2^4+1*2^3+1*2^2+1*2^1+1*2^0)
+disp(Vo,'output voltage(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.4/Ex6_4.sce b/876/CH6/EX6.4/Ex6_4.sce new file mode 100755 index 000000000..43a8ae7f6 --- /dev/null +++ b/876/CH6/EX6.4/Ex6_4.sce @@ -0,0 +1,15 @@ +//caption:Find values of(a)LSB(b)MSB(c)full scale output
+//Ex6.4
+clc
+clear
+close
+N=8//bit of the DAC convertor
+Rmin=0//minimum range(in V)
+Rmax=10//maximum range(in V)
+LS=1/(2^N)
+LSB=Rmax*LS
+disp(LSB,'(a)LSB(in V)=')
+MSB=Rmax/2
+disp(MSB,'(b)MSB(in V)=')
+F=Rmax-LSB
+disp(F,'(c)full scale output(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.4/Ex6_4.txt b/876/CH6/EX6.4/Ex6_4.txt new file mode 100755 index 000000000..ed6a34abb --- /dev/null +++ b/876/CH6/EX6.4/Ex6_4.txt @@ -0,0 +1,12 @@ +(a)LSB(in V)=
+
+ 0.0390625
+
+ (b)MSB(in V)=
+
+ 5.
+
+ (c)full scale output(in V)=
+
+ 9.9609375
+
\ No newline at end of file diff --git a/876/CH6/EX6.4/Ex6_4t.txt b/876/CH6/EX6.4/Ex6_4t.txt new file mode 100755 index 000000000..43a8ae7f6 --- /dev/null +++ b/876/CH6/EX6.4/Ex6_4t.txt @@ -0,0 +1,15 @@ +//caption:Find values of(a)LSB(b)MSB(c)full scale output
+//Ex6.4
+clc
+clear
+close
+N=8//bit of the DAC convertor
+Rmin=0//minimum range(in V)
+Rmax=10//maximum range(in V)
+LS=1/(2^N)
+LSB=Rmax*LS
+disp(LSB,'(a)LSB(in V)=')
+MSB=Rmax/2
+disp(MSB,'(b)MSB(in V)=')
+F=Rmax-LSB
+disp(F,'(c)full scale output(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.5/Ex6_5.sce b/876/CH6/EX6.5/Ex6_5.sce new file mode 100755 index 000000000..a4b2bfb70 --- /dev/null +++ b/876/CH6/EX6.5/Ex6_5.sce @@ -0,0 +1,12 @@ +//caption:Find resolution and voltage
+//Ex6.5
+clc
+clear
+close
+N=3//bit of D/A convertor
+V=5//full scale voltage(in V)
+A=0.001//magnitude of accuracy
+R=1/2^N
+disp(R,'resolution(in V)=')
+Ac=A*V
+disp(Ac,'accuracy(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.5/Ex6_5.txt b/876/CH6/EX6.5/Ex6_5.txt new file mode 100755 index 000000000..37ba9111d --- /dev/null +++ b/876/CH6/EX6.5/Ex6_5.txt @@ -0,0 +1,7 @@ + resolution(in V)=
+
+ 0.125
+
+ accuracy(in V)=
+
+ 0.005
\ No newline at end of file diff --git a/876/CH6/EX6.5/Ex6_5t.txt b/876/CH6/EX6.5/Ex6_5t.txt new file mode 100755 index 000000000..a4b2bfb70 --- /dev/null +++ b/876/CH6/EX6.5/Ex6_5t.txt @@ -0,0 +1,12 @@ +//caption:Find resolution and voltage
+//Ex6.5
+clc
+clear
+close
+N=3//bit of D/A convertor
+V=5//full scale voltage(in V)
+A=0.001//magnitude of accuracy
+R=1/2^N
+disp(R,'resolution(in V)=')
+Ac=A*V
+disp(Ac,'accuracy(in V)=')
\ No newline at end of file diff --git a/876/CH6/EX6.6/Ex6_6.sce b/876/CH6/EX6.6/Ex6_6.sce new file mode 100755 index 000000000..41643964c --- /dev/null +++ b/876/CH6/EX6.6/Ex6_6.sce @@ -0,0 +1,13 @@ +//caption:Find conversion time required for cinvertor
+//Ex6.6
+clc
+clear
+close
+N=8//bit of A/D convertor
+Vr=2.56//clock voltage(in V)
+Vin=1.728//input voltage(in V)
+F=100*10^3//clock frequency(in Hz)
+P=173//steps required for conversion
+Po=1/F
+T=P*Po
+disp(T,'total conversion time(in second)=')
\ No newline at end of file diff --git a/876/CH6/EX6.6/Ex6_6.txt b/876/CH6/EX6.6/Ex6_6.txt new file mode 100755 index 000000000..4ee1e870a --- /dev/null +++ b/876/CH6/EX6.6/Ex6_6.txt @@ -0,0 +1,3 @@ +total conversion time(in second)=
+
+ 0.00173
\ No newline at end of file diff --git a/876/CH6/EX6.6/Ex6_6t.txt b/876/CH6/EX6.6/Ex6_6t.txt new file mode 100755 index 000000000..41643964c --- /dev/null +++ b/876/CH6/EX6.6/Ex6_6t.txt @@ -0,0 +1,13 @@ +//caption:Find conversion time required for cinvertor
+//Ex6.6
+clc
+clear
+close
+N=8//bit of A/D convertor
+Vr=2.56//clock voltage(in V)
+Vin=1.728//input voltage(in V)
+F=100*10^3//clock frequency(in Hz)
+P=173//steps required for conversion
+Po=1/F
+T=P*Po
+disp(T,'total conversion time(in second)=')
\ No newline at end of file diff --git a/876/CH6/EX6.9/Ex6_9.sce b/876/CH6/EX6.9/Ex6_9.sce new file mode 100755 index 000000000..df54e811f --- /dev/null +++ b/876/CH6/EX6.9/Ex6_9.sce @@ -0,0 +1,13 @@ +//caption:Find total number of pulses and display reading
+//Ex6.9
+clc
+clear
+close
+V=10//input voltage(in V)
+S=0.001//ramp slope(in V/second)
+F=1000000//clock frequency(in Hz)
+T=1/F
+t=V*S
+P=t/T
+disp(P,'total number of pulses=')
+disp(P,'display reading=')
\ No newline at end of file diff --git a/876/CH6/EX6.9/Ex6_9.txt b/876/CH6/EX6.9/Ex6_9.txt new file mode 100755 index 000000000..b412812df --- /dev/null +++ b/876/CH6/EX6.9/Ex6_9.txt @@ -0,0 +1,7 @@ +total number of pulses=
+
+ 10000.
+
+ display reading=
+
+ 10000.
\ No newline at end of file diff --git a/876/CH6/EX6.9/Ex6_9t.txt b/876/CH6/EX6.9/Ex6_9t.txt new file mode 100755 index 000000000..df54e811f --- /dev/null +++ b/876/CH6/EX6.9/Ex6_9t.txt @@ -0,0 +1,13 @@ +//caption:Find total number of pulses and display reading
+//Ex6.9
+clc
+clear
+close
+V=10//input voltage(in V)
+S=0.001//ramp slope(in V/second)
+F=1000000//clock frequency(in Hz)
+T=1/F
+t=V*S
+P=t/T
+disp(P,'total number of pulses=')
+disp(P,'display reading=')
\ No newline at end of file |