summaryrefslogtreecommitdiff
path: root/3638/CH13/EX13.12/Ex13_12.sce
blob: 1f77ffaa4bbc16010cbb832ac2c7918db59f1695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 13.12
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
R=0.5;//Responsivity in A/W
T=300;//Missing data- Temperature in K
C=1e-12;//Photodiode capacitance in F
BER=1e-6;//Bit error rate
SNR=90;//Signal-to-noise ratio corresponding to BER of (10)^(-6)
kB=1.38e-23;//Boltzmann constant in SI Units

B=100e6;//Bit rate in b/s
Pmin=B/R*sqrt(2*%pi*kB*T*C*SNR);
mprintf("\n For 100 Mb/s, Pmin=%.2f uW",Pmin/1e-6);//Dividing by 10^(-6) to convert into uW
//The answers vary due to round off error