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 /1757/CH11/EX11.10 | |
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 '1757/CH11/EX11.10')
-rwxr-xr-x | 1757/CH11/EX11.10/EX11_10.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1757/CH11/EX11.10/EX11_10.sce b/1757/CH11/EX11.10/EX11_10.sce new file mode 100755 index 000000000..07b9a8a0c --- /dev/null +++ b/1757/CH11/EX11.10/EX11_10.sce @@ -0,0 +1,23 @@ +//Example11.10 // determine the analog output voltage and feed back current If
+clc;
+clear;
+close;
+Vref = 15 ;
+BI = 1000 ;
+Rf = 40 ; // K ohm
+R = 0.4*Rf ;
+
+// by using voltage divider rule Vin can be calculated as
+ Vin = -(Vref*2*R)/(2*R+2*R) ;
+
+// The output voltage of given R-2R ladder D/A converter is defined as
+
+// Vo = -(Rf*Vin/R)
+
+Vo = (Vref*Rf)/(2*R)
+disp('for the binary input 1000 output voltage is = '+string(Vo)+ ' V ');
+
+// the feedback current If is given by
+If = -(Vo/Rf) ;
+disp('the feedback current If is = '+string(If)+ ' mA ');
+
|