summaryrefslogtreecommitdiff
path: root/116/CH8/EX8.6/exa8_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /116/CH8/EX8.6/exa8_6.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 '116/CH8/EX8.6/exa8_6.sce')
-rwxr-xr-x116/CH8/EX8.6/exa8_6.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/116/CH8/EX8.6/exa8_6.sce b/116/CH8/EX8.6/exa8_6.sce
new file mode 100755
index 000000000..55809510b
--- /dev/null
+++ b/116/CH8/EX8.6/exa8_6.sce
@@ -0,0 +1,26 @@
+
+//Caption:Program to determine the range of SPE data rates that can be accomodated by the byte stuffing operation
+
+//Example 8.6
+
+//Page 415
+
+frames=4*9*87//Four SPE frames
+
+rate=8*frames*2000//normal rate SPE
+
+disp('When positive byte stuffing is used to accomodate a slow incoming SPE rate, 3131 bytes of data are transmitted in four frames. Thus, the lowest slip rate is')
+
+Rmin=8*3131*2000//minimum SPE rate
+
+disp('When negative byte stuffing is used to accomodate a fast incoming SPE rate, 3133 bytes of data are transmitted in four frames. Thus, the highest slip rate is')
+
+Rmax=8*3133*2000//maximum SPE rate
+
+//Result
+
+//Normal SPE rate = 50.112 Mbps
+
+//Minimum SPE rate = 50.096 Mbps
+
+//Maximum SPE rate = 50.128 Mbps \ No newline at end of file