diff options
Diffstat (limited to '3637/CH4')
44 files changed, 254 insertions, 0 deletions
diff --git a/3637/CH4/EX4.1/Ex4_1.pdf b/3637/CH4/EX4.1/Ex4_1.pdf Binary files differnew file mode 100644 index 000000000..a0976ecb3 --- /dev/null +++ b/3637/CH4/EX4.1/Ex4_1.pdf diff --git a/3637/CH4/EX4.1/Ex4_1.sce b/3637/CH4/EX4.1/Ex4_1.sce new file mode 100644 index 000000000..c60ba0834 --- /dev/null +++ b/3637/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,11 @@ +//problem 1 pagenumber 4.38
+//given
+z='0101';format(6);
+n=4;
+vof=15;//volt
+r=vof/(2^n-1);
+v0=r*base2dec(z,2);
+
+disp('Output voltage = '+string(v0)+' volt');
+
+
diff --git a/3637/CH4/EX4.10/Ex4_10.pdf b/3637/CH4/EX4.10/Ex4_10.pdf Binary files differnew file mode 100644 index 000000000..0a524de1a --- /dev/null +++ b/3637/CH4/EX4.10/Ex4_10.pdf diff --git a/3637/CH4/EX4.10/Ex4_10.sce b/3637/CH4/EX4.10/Ex4_10.sce new file mode 100644 index 000000000..74e139e50 --- /dev/null +++ b/3637/CH4/EX4.10/Ex4_10.sce @@ -0,0 +1,11 @@ +//problem 10 pagenumber 4.42
+//given
+z=['111111','100110'];
+vref1=20;//volt
+e=1/base2dec(z(1),2)*vref1;format(6);
+disp('Minimum voltage each bit = '+string(e)+' volt');
+e=base2dec(z(2),2)/base2dec(z(1),2)*vref1;
+
+disp('Output voltage at '+string(z(2))+' = '+string(e)+' volt');
+
+
diff --git a/3637/CH4/EX4.11/Ex4_11.pdf b/3637/CH4/EX4.11/Ex4_11.pdf Binary files differnew file mode 100644 index 000000000..148d7ceb8 --- /dev/null +++ b/3637/CH4/EX4.11/Ex4_11.pdf diff --git a/3637/CH4/EX4.11/Ex4_11.sce b/3637/CH4/EX4.11/Ex4_11.sce new file mode 100644 index 000000000..010c9b8ea --- /dev/null +++ b/3637/CH4/EX4.11/Ex4_11.sce @@ -0,0 +1,11 @@ +//problem 11 pagenumber 4.43
+//given
+n=12;
+vref1=50;//volt
+vref2=-50;//volt
+r=(vref1-vref2)/(2^n-1);format(6);
+disp('Resolution = '+string(r)+' volt');
+r=100/(2^n-1);
+disp('Resolution in percent = '+string(r)+'%');
+
+
diff --git a/3637/CH4/EX4.12/Ex4_12.pdf b/3637/CH4/EX4.12/Ex4_12.pdf Binary files differnew file mode 100644 index 000000000..53acf6835 --- /dev/null +++ b/3637/CH4/EX4.12/Ex4_12.pdf diff --git a/3637/CH4/EX4.12/Ex4_12.sce b/3637/CH4/EX4.12/Ex4_12.sce new file mode 100644 index 000000000..90a29d851 --- /dev/null +++ b/3637/CH4/EX4.12/Ex4_12.sce @@ -0,0 +1,11 @@ +//problem 12 pagenumber 4.43
+//given
+n=10;
+vref1=-10;//volt
+vref2=10;//volt
+r=(vref2-vref1)/(2^n-1);format(6);
+disp('Resolution = '+string(r*1e3)+' milivolt');
+r=100/(2^n-1);
+disp('Resolution in percent = '+string(r)+'%');
+
+
diff --git a/3637/CH4/EX4.13/Ex4_13.pdf b/3637/CH4/EX4.13/Ex4_13.pdf Binary files differnew file mode 100644 index 000000000..8fe6b1f16 --- /dev/null +++ b/3637/CH4/EX4.13/Ex4_13.pdf diff --git a/3637/CH4/EX4.13/Ex4_13.sce b/3637/CH4/EX4.13/Ex4_13.sce new file mode 100644 index 000000000..e40dcb3b6 --- /dev/null +++ b/3637/CH4/EX4.13/Ex4_13.sce @@ -0,0 +1,11 @@ +//problem 13 pagenumber 4.43
+//given
+n=12;
+r=1/(2^n-1);format(6);
+r=r*100;
+disp('Resolution in percent = '+string(r)+'%');
+
+
+
+
+
diff --git a/3637/CH4/EX4.14/Ex4_14.pdf b/3637/CH4/EX4.14/Ex4_14.pdf Binary files differnew file mode 100644 index 000000000..12e453085 --- /dev/null +++ b/3637/CH4/EX4.14/Ex4_14.pdf diff --git a/3637/CH4/EX4.14/Ex4_14.sce b/3637/CH4/EX4.14/Ex4_14.sce new file mode 100644 index 000000000..7d55a7eb1 --- /dev/null +++ b/3637/CH4/EX4.14/Ex4_14.sce @@ -0,0 +1,6 @@ +//problem 14 pagenumber 4.44
+//given
+n=7;format(6);
+vmax=25.4;//volt
+r=1/(2^n-1);
+disp('Change in voltage = '+string(r*vmax)+' volt');
diff --git a/3637/CH4/EX4.15/Ex4_15.pdf b/3637/CH4/EX4.15/Ex4_15.pdf Binary files differnew file mode 100644 index 000000000..6b8a12485 --- /dev/null +++ b/3637/CH4/EX4.15/Ex4_15.pdf diff --git a/3637/CH4/EX4.15/Ex4_15.sce b/3637/CH4/EX4.15/Ex4_15.sce new file mode 100644 index 000000000..12e419a56 --- /dev/null +++ b/3637/CH4/EX4.15/Ex4_15.sce @@ -0,0 +1,11 @@ +//problem 15 pagenumber 4.44
+//given
+r=5e-3;//volt
+vref=8;//volt
+format(3);
+//determine N
+n=log10(1/(r/vref)+(1))/log10(2);
+disp('N = '+string(n));//no unit
+
+
+
diff --git a/3637/CH4/EX4.16/Ex4_16.pdf b/3637/CH4/EX4.16/Ex4_16.pdf Binary files differnew file mode 100644 index 000000000..b48bceff7 --- /dev/null +++ b/3637/CH4/EX4.16/Ex4_16.pdf diff --git a/3637/CH4/EX4.16/Ex4_16.sce b/3637/CH4/EX4.16/Ex4_16.sce new file mode 100644 index 000000000..ee1ebca54 --- /dev/null +++ b/3637/CH4/EX4.16/Ex4_16.sce @@ -0,0 +1,11 @@ +//problem 16 pagenumber 4.44
+//given
+fs=1e6;//hz
+format(6);
+n=8;
+tc=(1/fs)*(n+1);
+disp('Conversion time = '+string(tc*10^6)+' μs');
+
+
+
+
diff --git a/3637/CH4/EX4.17/Ex4_17.pdf b/3637/CH4/EX4.17/Ex4_17.pdf Binary files differnew file mode 100644 index 000000000..a4c54a810 --- /dev/null +++ b/3637/CH4/EX4.17/Ex4_17.pdf diff --git a/3637/CH4/EX4.17/Ex4_17.sce b/3637/CH4/EX4.17/Ex4_17.sce new file mode 100644 index 000000000..8a3c42f84 --- /dev/null +++ b/3637/CH4/EX4.17/Ex4_17.sce @@ -0,0 +1,6 @@ +//problem 17 pagenumber 4.45
+//given
+vref=10;//volt
+vin=100e-3;//volt
+v0=vref*vin/10^-3;format(6);
+disp('Output voltage = '+string(v0)+' counts');
diff --git a/3637/CH4/EX4.18/Ex4_18.pdf b/3637/CH4/EX4.18/Ex4_18.pdf Binary files differnew file mode 100644 index 000000000..e8f4e26af --- /dev/null +++ b/3637/CH4/EX4.18/Ex4_18.pdf diff --git a/3637/CH4/EX4.18/Ex4_18.sce b/3637/CH4/EX4.18/Ex4_18.sce new file mode 100644 index 000000000..be96ebda1 --- /dev/null +++ b/3637/CH4/EX4.18/Ex4_18.sce @@ -0,0 +1,15 @@ +//problem 18 pagenumber 4.45
+//given
+n=4;z='1111';format(6);
+r=10e3;//ohm
+r1=20e3;//ohm
+vref=10;//volt
+//determine Resolution and output current
+r=(1/2^n)*vref/r;
+disp('Resolution of 1th = '+string(r*10^6)+' μA');
+disp('Iout = '+string(r*1e6)+' x D');
+iout=r*base2dec(z,2);
+disp('Output current = '+string(iout*10^6)+' μA');//error in book
+
+
+
diff --git a/3637/CH4/EX4.19/Ex4_19.pdf b/3637/CH4/EX4.19/Ex4_19.pdf Binary files differnew file mode 100644 index 000000000..71b8100a0 --- /dev/null +++ b/3637/CH4/EX4.19/Ex4_19.pdf diff --git a/3637/CH4/EX4.19/Ex4_19.sce b/3637/CH4/EX4.19/Ex4_19.sce new file mode 100644 index 000000000..1d8fc950b --- /dev/null +++ b/3637/CH4/EX4.19/Ex4_19.sce @@ -0,0 +1,15 @@ +//problem 19 pagenumber 4.45
+//given
+n=8;format(6);
+vref=10;//volt
+vmin=vref/2^n;
+D=133;
+disp('Minimum input voltage = '+string(vmin*1e3)+' milivolt');
+vif=vref-vmin;
+disp('Input voltage make 1s = '+string(vif)+' volt');
+vin=5.2;
+format(3);z=dec2base(D,2);format(6);
+disp('Decimal at '+string(vin)+' volt = '+string(D));//no unit
+
+
+
diff --git a/3637/CH4/EX4.2/Ex4_2.pdf b/3637/CH4/EX4.2/Ex4_2.pdf Binary files differnew file mode 100644 index 000000000..744e28266 --- /dev/null +++ b/3637/CH4/EX4.2/Ex4_2.pdf diff --git a/3637/CH4/EX4.2/Ex4_2.sce b/3637/CH4/EX4.2/Ex4_2.sce new file mode 100644 index 000000000..64d9e4a3d --- /dev/null +++ b/3637/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,11 @@ +//problem 2 pagenumber 4.38
+//given
+r=20e-3;format(6);
+z='11000000';
+n=8;
+vof=r*(2^n-1);
+v0=r*base2dec(z,2);
+disp('Output offset = '+string(vof)+' volt');
+disp('Output voltage = '+string(v0)+' volt');
+
+
diff --git a/3637/CH4/EX4.20/Ex4_20.pdf b/3637/CH4/EX4.20/Ex4_20.pdf Binary files differnew file mode 100644 index 000000000..52b37f9e3 --- /dev/null +++ b/3637/CH4/EX4.20/Ex4_20.pdf diff --git a/3637/CH4/EX4.20/Ex4_20.sce b/3637/CH4/EX4.20/Ex4_20.sce new file mode 100644 index 000000000..734dff82c --- /dev/null +++ b/3637/CH4/EX4.20/Ex4_20.sce @@ -0,0 +1,15 @@ +//problem 20 pagenumber 4.46
+//given
+vref=10;//volt
+z=['01','0111','10111100'];format(6);
+n=2;
+v0=vref*(1/2^2);
+disp('Output voltage at '+string(z(1))+' = '+string(v0)+' volt');
+n=4
+v0=vref*(1/2^2+1/2^3+1/2^4);
+disp('Output voltage at '+string(z(2))+' = '+string(v0)+' volt');
+v0=vref*(1/2+1/2^3+1/2^4+1/2^5+1/2^6+1/2^8);
+disp('Output voltage at '+string(z(2))+' = '+string(v0)+' volt');
+
+
+
diff --git a/3637/CH4/EX4.21/Ex4_21.pdf b/3637/CH4/EX4.21/Ex4_21.pdf Binary files differnew file mode 100644 index 000000000..96c68417f --- /dev/null +++ b/3637/CH4/EX4.21/Ex4_21.pdf diff --git a/3637/CH4/EX4.21/Ex4_21.sce b/3637/CH4/EX4.21/Ex4_21.sce new file mode 100644 index 000000000..59bc5b978 --- /dev/null +++ b/3637/CH4/EX4.21/Ex4_21.sce @@ -0,0 +1,11 @@ +//problem 21 pagenumber 4.46
+//given
+n=4;format(6);
+z='0110';
+vref=10;//volt
+v0=vref*(1/2^2+1/2^3);
+disp('Output voltage at '+string(z)+' = '+string(v0)+' volt');
+
+
+
+
diff --git a/3637/CH4/EX4.22/Ex4_22.pdf b/3637/CH4/EX4.22/Ex4_22.pdf Binary files differnew file mode 100644 index 000000000..fb504f159 --- /dev/null +++ b/3637/CH4/EX4.22/Ex4_22.pdf diff --git a/3637/CH4/EX4.22/Ex4_22.sce b/3637/CH4/EX4.22/Ex4_22.sce new file mode 100644 index 000000000..999ed2f7a --- /dev/null +++ b/3637/CH4/EX4.22/Ex4_22.sce @@ -0,0 +1,15 @@ +//problem 22 pagenumber 4.47
+//given
+n=10;format(6);
+vfs=10.24;//volt
+distortion=56;//dB
+//determine ENOB SNRmax
+q=vfs/(2^n*sqrt(12));
+snrmax=(6.02*n+1.76);//formula for SNRmax
+disp('SNRmax = '+string(snrmax)+' dB');
+format(2);
+en=(distortion-1.76)/6.02;
+disp('ENOB = '+string(en));//no unit
+
+
+
diff --git a/3637/CH4/EX4.3/Ex4_3.pdf b/3637/CH4/EX4.3/Ex4_3.pdf Binary files differnew file mode 100644 index 000000000..0db389be4 --- /dev/null +++ b/3637/CH4/EX4.3/Ex4_3.pdf diff --git a/3637/CH4/EX4.3/Ex4_3.sce b/3637/CH4/EX4.3/Ex4_3.sce new file mode 100644 index 000000000..7616dc469 --- /dev/null +++ b/3637/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,15 @@ +//problem 3 pagenumber 4.38
+//given
+n=4;format(6);
+z=['0111','1111'];
+vref=5;//volt
+//determine v0
+r=vref/(2^n-1);
+i=1;
+while i<3
+ v0=r*base2dec(z(i),2);
+ disp('Output voltage '+string(z(i))+' = '+string(v0)+' volt');
+ i=i+1;
+end
+
+
diff --git a/3637/CH4/EX4.4/Ex4_4.pdf b/3637/CH4/EX4.4/Ex4_4.pdf Binary files differnew file mode 100644 index 000000000..ddeb505e3 --- /dev/null +++ b/3637/CH4/EX4.4/Ex4_4.pdf diff --git a/3637/CH4/EX4.4/Ex4_4.sce b/3637/CH4/EX4.4/Ex4_4.sce new file mode 100644 index 000000000..e201bfd63 --- /dev/null +++ b/3637/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,11 @@ +//problem 4 pagenumber 4.39
+//given
+n=12;format(6);
+r=8e-3;//volt
+z='011101110001';
+//determine output voltage
+vof=r*(2^n-1);res=r/vof;
+v0=r*base2dec(z,2);
+disp('Output voltage = '+string(v0)+' volt');
+disp('Fullscale Output Voltage = '+string(vof)+' volt');
+disp('Resolution = '+string(res*1e2)+' percent');
diff --git a/3637/CH4/EX4.5/Ex4_5.pdf b/3637/CH4/EX4.5/Ex4_5.pdf Binary files differnew file mode 100644 index 000000000..7db0fd397 --- /dev/null +++ b/3637/CH4/EX4.5/Ex4_5.pdf diff --git a/3637/CH4/EX4.5/Ex4_5.sce b/3637/CH4/EX4.5/Ex4_5.sce new file mode 100644 index 000000000..d7a2691c1 --- /dev/null +++ b/3637/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,19 @@ +//problem 5 pagenumber 4.39
+//given
+fs=1e3;//hz
+r=0.01;format(6);
+vref=10;//volt
+//determine n vmin rms fs1 t1 z
+r=0.01/100;
+n=14;
+mbit=2^n;
+disp('Minumum number of bits = '+string((mbit)));
+vm=vref/2^n;
+disp('Minmum voltage = '+string(vm*10^6)+' μvolt');
+eq=vref/(2^n*2*sqrt(3));
+disp('Quantization error = '+string(eq*10^6)+' μvolt');
+fs1=5*fs;
+disp('Sampling rate = '+string(fs1)+' Hz');
+t1=1/(2*%pi*fs*2^n);
+disp('Aperture time = '+string(t1*10^6)+' milisecond');//error in book
+disp('Converter = '+string(6*n)+' dB');
diff --git a/3637/CH4/EX4.6/Ex4_6.pdf b/3637/CH4/EX4.6/Ex4_6.pdf Binary files differnew file mode 100644 index 000000000..6eb5f10b3 --- /dev/null +++ b/3637/CH4/EX4.6/Ex4_6.pdf diff --git a/3637/CH4/EX4.6/Ex4_6.sce b/3637/CH4/EX4.6/Ex4_6.sce new file mode 100644 index 000000000..14f19bffd --- /dev/null +++ b/3637/CH4/EX4.6/Ex4_6.sce @@ -0,0 +1,15 @@ +//problem 6 pagenumber 4.40
+//given
+vref=10;//volt
+is=1.875e-3;//A
+z=['1111' '1100'];format(6);
+//determine R I
+n=4;
+v0=vref/2^n*(1*2^(n-1)+1*2^(n-2)+1*2^(n-3)+1*2^(n-4));
+r=v0/is;
+disp('R = '+string(r/10^3)+' Kohm');
+v0=vref/2^n*(1*2^(n-1)+1*2^(n-2))/r;
+disp('I at 1100 = '+string(v0*10^3)+' mA');
+
+
+
diff --git a/3637/CH4/EX4.7/Ex4_7.pdf b/3637/CH4/EX4.7/Ex4_7.pdf Binary files differnew file mode 100644 index 000000000..3ce1300a2 --- /dev/null +++ b/3637/CH4/EX4.7/Ex4_7.pdf diff --git a/3637/CH4/EX4.7/Ex4_7.sce b/3637/CH4/EX4.7/Ex4_7.sce new file mode 100644 index 000000000..b51b7b53c --- /dev/null +++ b/3637/CH4/EX4.7/Ex4_7.sce @@ -0,0 +1,11 @@ +//problem 7 pagenumber 4.41
+vmin=1e-3;//volt
+vref=10;//volt
+q=0.01;format(6);
+//determine n
+n=log10(((0.5)/0.01)+1)/log10(2);format(2);
+disp('N = '+string(n));//no unit
+
+
+
+
diff --git a/3637/CH4/EX4.8/Ex4_8.pdf b/3637/CH4/EX4.8/Ex4_8.pdf Binary files differnew file mode 100644 index 000000000..a60511dd2 --- /dev/null +++ b/3637/CH4/EX4.8/Ex4_8.pdf diff --git a/3637/CH4/EX4.8/Ex4_8.sce b/3637/CH4/EX4.8/Ex4_8.sce new file mode 100644 index 000000000..755d074ec --- /dev/null +++ b/3637/CH4/EX4.8/Ex4_8.sce @@ -0,0 +1,6 @@ +//problem 8 pagenumber 4.42
+//given
+n=8;
+//determine R
+r=1/(2^n-1)*100;format(6);
+disp('R in percent = '+string(r)+'%');
diff --git a/3637/CH4/EX4.9/Ex4_9.pdf b/3637/CH4/EX4.9/Ex4_9.pdf Binary files differnew file mode 100644 index 000000000..2906d8e0f --- /dev/null +++ b/3637/CH4/EX4.9/Ex4_9.pdf diff --git a/3637/CH4/EX4.9/Ex4_9.sce b/3637/CH4/EX4.9/Ex4_9.sce new file mode 100644 index 000000000..b7f56768d --- /dev/null +++ b/3637/CH4/EX4.9/Ex4_9.sce @@ -0,0 +1,6 @@ +//problem 9 pagenumber 4.42
+//given
+n=5;
+//determine resolution
+r=1/(2^n-1)*100;format(6);
+disp('Resolution in percent = '+string(r)+'%');
|