diff options
Diffstat (limited to '3547/CH8')
-rw-r--r-- | 3547/CH8/EX8.2/EX8_2.png | bin | 0 -> 20101 bytes | |||
-rw-r--r-- | 3547/CH8/EX8.2/EX8_2.sce | 56 | ||||
-rw-r--r-- | 3547/CH8/EX8.3/EX8_3.png | bin | 0 -> 15777 bytes | |||
-rw-r--r-- | 3547/CH8/EX8.3/EX8_3.sce | 41 | ||||
-rw-r--r-- | 3547/CH8/EX8.6/EX8_6.png | bin | 0 -> 15595 bytes | |||
-rw-r--r-- | 3547/CH8/EX8.6/EX8_6.sce | 21 |
6 files changed, 118 insertions, 0 deletions
diff --git a/3547/CH8/EX8.2/EX8_2.png b/3547/CH8/EX8.2/EX8_2.png Binary files differnew file mode 100644 index 000000000..a884a0dbe --- /dev/null +++ b/3547/CH8/EX8.2/EX8_2.png diff --git a/3547/CH8/EX8.2/EX8_2.sce b/3547/CH8/EX8.2/EX8_2.sce new file mode 100644 index 000000000..0034684d1 --- /dev/null +++ b/3547/CH8/EX8.2/EX8_2.sce @@ -0,0 +1,56 @@ +// Example 8.1
+// Compuatation of error probability if the receiver is (a) a balanced homodyne or (b) a balanced heterodyne
+// Page no. 354
+
+clc;
+clear;
+close;
+
+// Given data
+Po=5; // Lunch peak power
+fl=50; // Fiber loss
+G=30; // Preamplifier Gain
+f=10*10^9;
+n=1.5;
+h=6.63*10^-34; // Planck constant
+c=3*10^8; // Velocity of light
+lambda=1550*10^-9;
+q=1.6*10^-19; // Electron charge
+R=0.9;
+
+// Signal calculation
+Pr=Po-fl+G;
+Pr=10^(Pr/10)*10^-3;
+
+Tb=1/(f);
+E=Pr*Tb;
+f1=c/lambda;
+G=10^(G/10);
+r=n*h*f1*(G-1);
+//rs=q*I;
+N=r+(q/(2*R));
+Nh=r/2+(q/(2*R));
+
+// Error probability
+// (a) For a balanced homodyne receiver with PSK signal
+Ps=1/2*erfc(sqrt(E/N));
+E1=E/2;
+// If the signal is OOK
+Pso=1/2*erfc(sqrt(E1/(2*N)));
+
+//(b) For a balanced heterodyne receiver with PSK signal
+Pb=1/2*erfc(sqrt(E/(2*Nh)));
+//E1=E/2;
+// If the signal is OOK
+Pbo=1/2*erfc(sqrt(E1/(4*Nh)));
+
+//Displaying the result in command window
+printf("\n For a balanced homodyne receiver with PSK signal = %0.2f X 10^-9 ",Ps*10^9);
+
+printf("\n For a balanced homodyne receiver with PSK signal If the signal is OOK, = %0.2f X 10^-3",Pso*10^3);
+printf("\n For a balanced heterodyne receiver with PSK signal = %0.3f X 10^-9",Pb*10^9);
+printf("\n For a balanced heterodyne receiver with PSK signal If the signal is OOK,= %0.2f X 10^-3",Pbo*10^3);
+
+// The answer vary due to round off error
+
+
diff --git a/3547/CH8/EX8.3/EX8_3.png b/3547/CH8/EX8.3/EX8_3.png Binary files differnew file mode 100644 index 000000000..c9898b17c --- /dev/null +++ b/3547/CH8/EX8.3/EX8_3.png diff --git a/3547/CH8/EX8.3/EX8_3.sce b/3547/CH8/EX8.3/EX8_3.sce new file mode 100644 index 000000000..12eb0a62a --- /dev/null +++ b/3547/CH8/EX8.3/EX8_3.sce @@ -0,0 +1,41 @@ +// Example 8.3
+// Calculation of the maximum transmission distance.
+// Page no 394
+
+clc;
+clear;
+close;
+
+//Given data
+p=3; // Peak power
+tb=40*10^9; // Bit rate
+c=3*10^8; // Velocity of light
+lambda=1550*10^-9; // Operating frequency
+l=0.2; // Loss
+d=80; // Distance
+G=16 // Gain
+h=6.626*10^-34 // Planck constant
+n=1;
+pb=10^-5; // Error probability
+l1=80*10^3; // N spans
+
+
+// The maximum transmission distance
+
+p=p+10*log10(1/2);
+p=10^(p/10)*10^-3;
+t=1/(tb);
+E=p*t;
+f=c/lambda;
+fl=l*d;
+G=10^(G/10);
+r=n*h*f*(G-1); // Calculation is wrong in book.
+//pb=1/2*(exp(-(E/r)));
+N=-(E/(log(2*pb)*r));
+
+L=N*l1;
+
+// Displaying results in the command window
+printf("\n The maximum transmission distance = %0.2f km",L*10^-3);
+
+// In the book PSD per amplifier calcualation is wrong, therefore final answer is wrong.
diff --git a/3547/CH8/EX8.6/EX8_6.png b/3547/CH8/EX8.6/EX8_6.png Binary files differnew file mode 100644 index 000000000..d158f7bdc --- /dev/null +++ b/3547/CH8/EX8.6/EX8_6.png diff --git a/3547/CH8/EX8.6/EX8_6.sce b/3547/CH8/EX8.6/EX8_6.sce new file mode 100644 index 000000000..700f9856d --- /dev/null +++ b/3547/CH8/EX8.6/EX8_6.sce @@ -0,0 +1,21 @@ +// Example 8.6
+// To find the mean number of signal photons required in a shot noise-limited coherent communication system based on OOK for the following cases: (i) balanced homodyne receiver; (ii)balanced heterodyne receiver (a) a balanced homodyne or (b) a balanced heterodyne
+// Page no. 384
+
+clc;
+clear;
+close;
+
+// Given data
+Pb=1*10^-9; //Error probability
+neta=1; //quantum efficiency
+
+//a)for balanced homodyne receiver
+Ns=(erfinv(1-(2*neta*Pb)))^2;
+
+//(b)for balanced heterodyne receiver
+Ns1=(erfinv(1-(2*neta*Pb))*sqrt(2))^2;
+
+//Displaying the result in command window
+printf("\n For a balanced homodyne receiver with PSK signal = %0.0f ",Ns);
+printf("\n For a balanced heterodyne receiver with PSK signal = %0.0f ",Ns1);
|