summaryrefslogtreecommitdiff
path: root/1223/CH16/EX16.11/Ex16_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1223/CH16/EX16.11/Ex16_11.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1223/CH16/EX16.11/Ex16_11.sce')
-rwxr-xr-x1223/CH16/EX16.11/Ex16_11.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1223/CH16/EX16.11/Ex16_11.sce b/1223/CH16/EX16.11/Ex16_11.sce
new file mode 100755
index 000000000..1c5069df5
--- /dev/null
+++ b/1223/CH16/EX16.11/Ex16_11.sce
@@ -0,0 +1,19 @@
+clear;
+clc;
+//Example 16.11
+Vtn=1;
+Vtp=-1;
+Vdd=5;
+Vth=1;
+Vil=Vtn+3*(Vdd+Vtp-Vth)/8;
+printf('\ninput voltage at the transition points Vil=%.3f V\n',Vil)
+Vih=Vtn+5*(Vdd+Vtp-Vtn)/8;
+printf('\ninput voltage at the transition points Vih=%.3fV\n',Vih)
+Vohu=1*(2*Vil+Vdd-Vtn-Vtp)/2;
+printf('\noutput voltage =%.3f V\n',Vohu)
+Volu=1*(2*Vih-Vdd-Vtn-Vtp)/2;
+printf('\noutput voltage =%.2f V\n',Volu)
+NML=Vil-Volu;
+printf('\nnoise margin =%.3f V\n',NML)
+NMH=Vohu-Vih;
+printf('\nnoise margin=%.3f V\n',NML)