summaryrefslogtreecommitdiff
path: root/3547/CH5/EX5.7/Ex5_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH5/EX5.7/Ex5_7.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3547/CH5/EX5.7/Ex5_7.sce')
-rw-r--r--3547/CH5/EX5.7/Ex5_7.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/3547/CH5/EX5.7/Ex5_7.sce b/3547/CH5/EX5.7/Ex5_7.sce
new file mode 100644
index 000000000..ac192211a
--- /dev/null
+++ b/3547/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,33 @@
+// Example no.5.7
+// To find the peak current if (a) LO power = 10 dBm, (b) LO power = −10 dBm for the balanced receiver
+// Page no.234
+
+clc;
+clear;
+
+// Given data
+L=100; // Length of fiber
+loss=0.2*L; // Total fiber loss
+PtdBm=12; // The peak power of the signal at the transmitter
+R=0.9; // Responsivity in A/W
+PrdBm=PtdBm-loss; // The power at the receiver
+
+// (a) the peak current LO power = 10 dBm
+PLO1dBm=10; // Power at local oscillator in dBm
+PLO1=10^(0.1*PLO1dBm); // Power at local oscillator in mW
+Pr=10^(0.1*PrdBm); // Power at receiver in mW
+Id1=2*R*sqrt(Pr*PLO1); // The peak current LO power = 10 dBm
+
+// Display result on command window
+printf('\n The peak current for LO power 10 dBm = %0.4f mA',Id1)
+
+// (b) the peak current LO power = -10 dBm
+PLO2dBm=-10; // Power at local oscillator in dBm
+PLO2=10^(0.1*PLO2dBm); // Power at local oscillator in mW
+Id2=2*R*sqrt(Pr*PLO2); // The peak current LO power = -10 dBm
+
+// Display result on command window
+printf('\n The peak current for LO power -10 dBm = %0.4f mA',Id2)
+
+// comment on the intermodulation cross-talk in a single-branch receiver and the balanced receiver
+printf('\n A single-branch receiver would have a significant amount of cross-talk. In contrast, for a balanced receiver, intermodulation cross-talk is canceled out \n due to the balanced detection.')