summaryrefslogtreecommitdiff
path: root/876/CH6/EX6.2/Ex6_2t.txt
diff options
context:
space:
mode:
Diffstat (limited to '876/CH6/EX6.2/Ex6_2t.txt')
-rwxr-xr-x876/CH6/EX6.2/Ex6_2t.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/876/CH6/EX6.2/Ex6_2t.txt b/876/CH6/EX6.2/Ex6_2t.txt
new file mode 100755
index 000000000..456efe295
--- /dev/null
+++ b/876/CH6/EX6.2/Ex6_2t.txt
@@ -0,0 +1,13 @@
+//caption:Find output voltage
+//Ex6.2
+clc
+clear
+close
+Lo=0//input voltage logic0(in V)
+L1=20//input voltage logic1(in V)
+V1msb=L1/2
+V2msb=L1/4
+V3msb=L1/8
+V4msb=L1/16
+Va=V1msb+V2msb+V3msb+V4msb
+disp(Va,'output voltage(in V)=') \ No newline at end of file