summaryrefslogtreecommitdiff
path: root/911/CH13/EX13.1/ex_13_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH13/EX13.1/ex_13_1.sce')
-rw-r--r--911/CH13/EX13.1/ex_13_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/911/CH13/EX13.1/ex_13_1.sce b/911/CH13/EX13.1/ex_13_1.sce
new file mode 100644
index 000000000..1e73b909b
--- /dev/null
+++ b/911/CH13/EX13.1/ex_13_1.sce
@@ -0,0 +1,15 @@
+//exmaple 13.1//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+a=31;
+//rising edge//
+b=241;
+//falling edge//
+c=8;
+//in MHz//
+t=1/c;
+pw=(b-a)*t;
+//pulse width//
+disp(pw,'pulse width measured by microcontroller(in microsec) is :') \ No newline at end of file