summaryrefslogtreecommitdiff
path: root/911/CH13
diff options
context:
space:
mode:
Diffstat (limited to '911/CH13')
-rw-r--r--911/CH13/EX13.1/ex_13_1.pdfbin0 -> 109884 bytes
-rw-r--r--911/CH13/EX13.1/ex_13_1.sce15
-rw-r--r--911/CH13/EX13.2/ex_13_2.pdfbin0 -> 109272 bytes
-rw-r--r--911/CH13/EX13.2/ex_13_2.sce12
4 files changed, 27 insertions, 0 deletions
diff --git a/911/CH13/EX13.1/ex_13_1.pdf b/911/CH13/EX13.1/ex_13_1.pdf
new file mode 100644
index 000000000..4f699c83f
--- /dev/null
+++ b/911/CH13/EX13.1/ex_13_1.pdf
Binary files differ
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
diff --git a/911/CH13/EX13.2/ex_13_2.pdf b/911/CH13/EX13.2/ex_13_2.pdf
new file mode 100644
index 000000000..aa26ddb76
--- /dev/null
+++ b/911/CH13/EX13.2/ex_13_2.pdf
Binary files differ
diff --git a/911/CH13/EX13.2/ex_13_2.sce b/911/CH13/EX13.2/ex_13_2.sce
new file mode 100644
index 000000000..9fcc7bedc
--- /dev/null
+++ b/911/CH13/EX13.2/ex_13_2.sce
@@ -0,0 +1,12 @@
+//example 13.2//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+mi=125;
+//minimum time period in ns//
+ma=100
+//maximum time period in ms//
+f=1000/mi;
+//frequency in MHz//
+disp(f,'frequency of microcontroller (in MHz) = ') \ No newline at end of file