diff options
Diffstat (limited to '74/CH12/EX12.3')
-rwxr-xr-x | 74/CH12/EX12.3/example3_sce.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/74/CH12/EX12.3/example3_sce.sce b/74/CH12/EX12.3/example3_sce.sce new file mode 100755 index 000000000..da3d02cdc --- /dev/null +++ b/74/CH12/EX12.3/example3_sce.sce @@ -0,0 +1,12 @@ +// chapter 12
+// example 12.3
+// page 414
+n=8;// 8 bit DAC
+R=20*10^-3;//resolution V/LSB
+inpt=10000000;
+Vofs=R*(2^n-1);
+disp(Vofs)
+D=1*2^7+0*2^6+0*2^5+0*2^4+0*2^3+0*2^2+0*2^1+0*2^0;
+disp(D)
+Vout=R*D;//output voltage
+disp(Vout)
\ No newline at end of file |