summaryrefslogtreecommitdiff
path: root/401/CH12/EX12.14/Example12_14.sce
blob: dc4fb1a9a0364bb8fe13cc688abf9b56deb170ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//Example 12.14
//Program to determine whether the combination of components gives
//an adequate temporal response

clear;
clc ;
close ;

//Given data
L=5;                             //km - LENGTH OF FIBER LINK
Ts=10*10^(-9);                   //s - SOURCE RISE TIME
Dn=9*10^(-9);                    //s/km - INTERMODAL RISE TIME
Dc=2*10^(-9);                    //s/km - CHROMATIC RISE TIME
Td=3*10^(-9);                    //s - DETECTOR RISE TIME
Bopt=6*10^6;                     //Hz - REQUIRED OPTICAL BANDWIDTH

Tn=Dn*L;
Tc=Dc*L;

//Maximum permitted rise time
Tsyst_max=0.35/Bopt;

//Total system rise time
Tsyst=1.1*sqrt(Ts^2+Tn^2+Tc^2+Td^2);

//Displaying the Results in Command Window
printf("\n\n\t Maximum permitted rise time, Tsyst(max) = %0.1f ns.",Tsyst_max/10^(-9));
printf("\n\n\t Total system rise time, Tsyst = %0.1f ns.",Tsyst/10^(-9));
printf("\n\n\t Hence system gives adequate temporal response.");