From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 74/CH12/EX12.3/example3_sce.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 74/CH12/EX12.3/example3_sce.sce (limited to '74/CH12/EX12.3/example3_sce.sce') 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 -- cgit