home

PDF (letter size)

my digital communications cheat sheet

Nasser M. Abbasi

January 5, 2019   Compiled on January 28, 2024 at 9:22pm

Contents

1 What is the relation between bandpass, baseband ,complex envelop and pre envelop?
2 Some useful Fourier Transforms
3 Random process definitions
4 How to determine Hilbert transform of a signal?
5 How to find Power Spectrum (PSD) of a random signal x(t)
6 What is the relation between variance and power for a random signal x(t)?
7 How to find the SNR for sampling quantization?
8 How to determine coding of a number from quantization?
8.1 sign magnitude
8.2 ones complement
8.3 offset binary
8.4 2’s complement
9 How to derive the Phase and Frequency modulation signals?
10 How to obtain the phase deviation and the frequency deviation for angle modulated signal?
11 How to quickly determine SNRi from SNRc?
12 How to determine figure of merit for DSB-SC using coherent detector?
13 How to determine figure of merit for AM transmission using coherent detector?
14 How to determine figure of merit for AM using envelope detector?
15 How to determine figure of merit for SSB using coherent detector?
16 How to determine figure of merit for VSB using coherent detector?

1 What is the relation between bandpass, baseband ,complex envelop and pre envelop?

2 Some useful Fourier Transforms

x(t) X(f)
sin(2πfct) 12j[δ(ffc)δ(f+fc)]
cos(2πfct) 12[δ(ffc)+δ(f+fc)]
cos(2πfct+θ) 12[ejθδ(ffc)+ejθδ(f+fc)]
sin(2πfct+θ) 12[ejθδ(ffc)ejθδ(f+fc)]

3 Random process definitions

X(t) is Stationary: If all its statistics do not change with shift of origin

X(t) is Wide Sense Stationary: If the mean is constant, and Rx(t,t+τ)=Rx(τ)

where autocorrelation Rx(τ) is defined as E[x(t)x(t+τ)]. Note, if X(t) is real, then Rx(τ) is real and even

Note: R(x) must be WSS if it is ergodic.So ergodic process has constant mean.

4 How to determine Hilbert transform of a signal?

input x(t). Find x^(t) which is Hilbert transform of x(t) defined as x^(t)=x(t)1πt

An easy way is to first find G^(f) which is the Fourier transform of x^(t) and then inverse it to find x^(t)G^(f)=j sgn(f) G(f) Where G(f) is Fourier transform of x(t)

5 How to find Power Spectrum (PSD) of a random signal x(t)

input: random signal x(t)

output: PSD of x(t)

Algorithm:

  1. Find autocorrelation Rx(τ) of x(t)
  2. Find the Fourier Transform of Rx(τ). The result is the PSD of x(t) called Sx(f)

Another method (this below works if not random x(t)) , why? can’t find FT for random process?

  1. Find Fourier Transform X(f) of x(t)
  2. Find the |X(f)|2=X(f)X(f)

6 What is the relation between variance and power for a random signal x(t)?

Variance is the sum of the total average normalized power and the DC power.σx2=E[x2(t)]total Power+E[x(t)]2DC power For the a signal whose mean is zero,σx2=E[x2(t)]total Power How to find average, power, PEP, effective value (or the RMS) of a periodic function?

Let x(t) be a periodic function, of period T, then average of x(t)=x(t)=1T0Tx(t)dt The average power ispav=x2(t)=1T0T|x(t)|2dt Effective value, or the RMS value isxrms(t)=x2(t)=pav=1T0Tx2(t)dt For example, for x(t)=Acos(x),x(t)=0,Pav=A22,xrms(t)=0.707A

To find PEP (which is the peak envelope power), find the complex envelope x~(t), then find the average power of it. i.e.

PEP=12x~max2(t)

7 How to find the SNR for sampling quantization?

Suppose we have a message m(t) that is sampled. Assume we have n bits to use for encoding the sample levels. Hence there are 2n levels of quantizations. We want to find the ration of the signal to the noise power. Noise here is generated due to quantization (i.e. due to the rounding off values of m(t) during sampling).

This is the algorithm:

Input: n, the number of bits for encoding, mp absolute maximum value of the message m(t), the pdf fX(t) of the message m(t) is m(t) is random message or m(t) function if it is deterministic (such as cos(t))

  1. Find the quantization step size S=2mp22
  2. Find Pav of the error is 112S2 where S is the step size found in (1), hence Pav=112S2=112(2mp22)2=mp23×22n
  3. If m(t) is deterministic find pav=m2(t)=1T0T|m(t)|2dt
  4. If m(t) is random, find pav=E(m(t))=m2(t)fX(t)dt, this is called the second moment of the pdf
  5. SNR=E(m(t))mp23×22n

Hence find SNR for noise quantisation comes down to finding the power in the message m(t).

Examples: For sinusoidal message m(t), SNRdb=6n+1.761. For random m(t) with PDF which is uniform distributed SNRdb=6n, for random m(t) which is AWGN. Do this later

8 How to determine coding of a number from quantization?

Given an analog value say x and given a maximum absolute possible value to be mp, and given the number of bits available for coding to be N, the following are the algorithm to generate the quantized version of x, called x^

8.1 sign magnitude

Input: x,mp,N

output: x^

Let Δ=mp2N1 called the step size

Let q=round[abs(x)Δ] which is the quantization level

If q2N11 then q=2N1 end if  

if x<0 then code=q+2N1 else code=q endif

return code in base 2

8.2 ones complement

Input: x,mp,N

output: x^

Let Δ=mp2N1 called the step size

Let q=round[abs(x)Δ] which is the quantization level

If q2N11 then q=2N11 end if

If x>0 then code=q else code=(2N1)q endif

return code in base 2

8.3 offset binary

Input: x,mp,N

output: x^

Let Δ=mp2N1 called the step size

Let q=round[abs(x)Δ] which is the quantization level

If xΔ2 then

  if q2N11 then

     q=2N11

  end if

  code=2N1+q

else

  if q2N11 then

      q=2N1

  end if

  code=2N1q

end if

return code in base 2

8.4 2’s complement

Input: x,mp,N

output: x^

Let Δ=mp2N1 called the step size

Let q=round[abs(x)Δ] which is the quantization level

If xΔ2 then

  if q2N11 then

     q=2N11

  end if

  code=q

else

  if q2N11 then

      q=2N1

  end if

  code=2Nq

end if

return code in base 2

9 How to derive the Phase and Frequency modulation signals?

For any bandpass signal, we can write it asx(t)=Re(x~(t)ejωct) Where x~(t) is the complex envelope of x(t). For PM and FM, the baseband modulated signal, x~(t) has the form Acejθ(t) Hence the above becomesx(t)=Re(Acejθ(t)ejωct)=Ac(cosωctcosθ(t)sinωctsinθ(t))

But cos(A+B)=cosAcosBsinAsinB, hence the above becomes(1)x(t)=cos(ωct+θ(t)) The above is the general form for PM and FM. Now, for PM, θ(t)=kpm(t) and for FM, θ(t)=kf0tm(t1)dt1. Hence, substituting in (1) we obtainxFM(t)=cos(ωct+kf0tm(t1)dt1) andxPM(t)=cos(ωct+kpm(t))

10 How to obtain the phase deviation and the frequency deviation for angle modulated signal?

From the general form for angle modulated signal (see above note)x(t)=cos(ωct+θ(t)) The phase deviation is θ(t). And the maximum phase deviation is simply the maximum of θ(t)

Now, to find the frequency deviation, we need a little bit more work. Start withfi=fc+Δf Where fi is the instantaneous frequency in Hz. But fi=12πddt(ωct+θ(t))=fc+12πddtθ(t)Δf

11 How to quickly determine SNRi from SNRc?

First find SNRc, for to find SNRi use the following

SNRi=SNRcBBT, where BT is the transmission bandwidth, and B is the baseband bandwidth. For AM, BT=2B. For DSBSC, BT=2B. For DSBSS, BT=B.

12 How to determine figure of merit for DSB-SC using coherent detector?

Figure of merit, γ is defined as SNRoSNRc where SNRo is the signal-to-noise ratio on output from modulator, and SNRc is signal-to-noise ratio for the channel, assuming channel has AWGN added. The following diagram shows the calculations. I used a coherent demodulator.

Question: Verify the above.

13 How to determine figure of merit for AM transmission using coherent detector?

14 How to determine figure of merit for AM using envelope detector?

s1(t)=Ac(1+kam(t))cosωcts2(t)=Ac(1+kam(t))cosωct+w(t)

AndSNRc=(Ac(1+kam(t))cosωct)2BN0=Ac22(1+kam(t))2BN0=Ac221+ka2m2(t)+2kam(t)BN0

Now assuming m(t)=0, the above simplifies toSNRc=Ac22(1+ka2Pm)BN0 HenceSNRi=SNRcBBT=Ac22(1+ka2Pm)BN0B2B=Ac22(1+ka2Pm)2BN0

Now find s3(t)s3(t)=Ac(1+kam(t))cosωct+n(t)narrow band noise=Ac(1+kam(t))cosωct+[nI(t)cosωctnQ(t)sinωct]=[Ac(1+kam(t))+nI(t)]in phasecosωctnQ(t)quadraturesinωct

Now, to find s4(t), which is the envelope of s3(t).s4(t)=envelope(s3(t))=(s3)I2+(s3)Q2=(Ac(1+kam(t))+nI(t))2+nQ2(t)

Now, assuming Ac|nI(t)| and Ac|nQ(t)|, then the above simplifies tos4(t)=Ac(1+kam(t))+nI(t) now apply the DC blocker, we obtains5(t)=Ackam(t)+nI(t)SNRo=(Ackam(t))2E[nI2(t)]=Ac2ka2Pm2BN0γ=SNRoSNRc=Ac2ka2Pm2BN0Ac22(1+ka2Pm)BN0=ka2Pm1+ka2Pm We notice, that for Large SNRi, this detector gives the same result as coherent detector.

For small SNRi, it is better to use the coherent detector than the envelope detector.

15 How to determine figure of merit for SSB using coherent detector?

The difference here is that SSB signal has transmission bandwidth BT=B and not 2B as in all the previous signals. Assume we are working with upper sideband. Analysis is the same for lower sideband.s1(t)=k[m(t)cosωctm^(t)sinωct] Where k is a constant. Usually Ac2 but we will leave it as k for now. m^(t) is the Hilbert transform of m(t)s2(t)=k[m(t)cosωctm^(t)sinωct]+w(t)SNRc=(k[m(t)cosωctm^(t)sinωct])2BN0=k2m2(t)cos2ωct+k2m^2(t)sin2ωct2k2m(t)m^(t)cos(ωct)sin(ωct)BN0=k2m2(t)cos2ωct+k2m2(t)sin2ωct2k2m(t)m^(t)cos(ωct)sin(ωct)BN0

Assume m(t)=0, we obtainSNRc=k2Pm2+k2Pm2BN0=k2PmBN0

s3(t)=k[m(t)cosωctm^(t)sinωct]+n(t) HenceSNRi=SNRcBBT=k2PmBN0BB=k2PmBN0

s4(t)=[k[m(t)cosωctm^(t)sinωct]+n(t)]Accosωct=Ackm(t)cos2ωctAckm^(t)sinωctcosωct+Ac[nI(t)cosωctnQ(t)sinωct]cosωct=Ackm(t)(12+12cos2ωct)Ackm^(t)12(sin(0)+sin(2ωct))+Ac[nI(t)cos2ωctnQ(t)sinωctcosωct]=12Ackm(t)+12Ackm(t)cos2ωctAckm^(t)12sin(2ωct)+Ac[nI(t)(12+12cos2ωct)nQ(t)12(sin(0)+sin(2ωct))]=12Ackm(t)+12Ackm(t)cos2ωct12Ackm^(t)sin(2ωct)+Ac2nI(t)+Ac2nI(t)cos2ωctAc2nQ(t)sin2ωct

After low pass filter, we obtains5(t)=12Ackm(t)+Ac2nI(t) Hence, SNRo=(12Ackm(t))2E([Ac2nI(t)]2)=14(Ac)2k2Pm14(Ac)2N0B=k2PmN0B

HenceSNRoSNRi=k2PmN0Bk2PmBN0=1

Henceγ=SNRoSNRc=k2PmN0Bk2PmBN0=1

16 How to determine figure of merit for VSB using coherent detector?

s(t)=Ac2[m(t)cosωctmQ(t)sinωct] mQ(t) is the output of VSB filter when input is m(t)