summaryrefslogtreecommitdiff
path: root/3547/CH5/EX5.7/Ex5_7.sce
blob: ac192211aae83c9438dc5152e8b3dc900062c37f (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
30
31
32
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.')