Saturday, April 7, 2018

matlab - Power Spectral Density of Digital Modulations


I want to simulate the power spectral densities of different modulations in MATLAB (without Simulink). Unfortunately I have only very basic understanding of signal processing, hence I struggle with this topic. Currently I have a very simple spectrum like this: Spectrum without modulations There are different objects (A and B in the picture above) sending signals on different frequencies. I am not simulating any bits or calculating a sine, I am just assuming that there is something going on on a certain frequency with a certain power level.


Now, I want to simulate different digital modulations, e.g. PSK, BPSK, GMSK, FSK. I understand that the spectrum should look something like this: Spectrum with digital modulations There is not a single center frequency, but also side bands. A and B shall illustrate different modulations. My question now is, how can I calculate these different modulations? In text books I may find figures displaying the 'power spectral density' of ASK, but often times there is no formula how to calculate this. I guess the spectral density depends on the actual bit sequence, but I just need the envelope.


In one text book ("Digital Modulation Techniques" by F. Xiong) I found this formula for ASK: Φs(f)=A2T4sinc2[T(ffc)]+A24δ(ffc)] where T is bit duration, A is carrier amplitude, fc is carrier frequency. At first I found this formula promising, because it does not require a bit sequence, but I do not understand the last addend.




  • Are there any formulas like this for other modulation techniques?

  • If not, how could I calculate these graphs?



Answer




At first I found this formula promising, because it does not require a bit sequence,



That's the point about PSDs: They are an expectation value of a stochastic process! That is, the randomness (in this case, the data you're transmitting) is being "averaged away".


Deriving the spectral shape of any modulation (including the pulse shaping, don't forget that – you don't want to end up with a result like the formula you cite, as that is hardly band-limited!) is actually not that hard: You find a formula for the autocorrelation of the signal, and fourier transform that, and then you find the expectation. The trick is in finding a suitable form of the autocorrelation formula!




but I do not understand the last addend.



That's a speciality of ASK: Most constellations are designed so that the mean of the information symbols is 0; that's not the case for ASK.


To make it short: The PSD Φvv of the baseband signal v, consisting of a sequence of information symbols In with variance σ2i and mean μi, modulated at a symbol period T with a pulse g(t) (the pulse's spectrum being G(f)) is (from Proakis "Digital Communications", 3rd ed., eq. 4-4-17, on page 207):


Φii(f)=σ2iT|G(f)|2+μ2iT2m=|G(mT)|2δ(fmT)


where δ is the dirac delta distribution.


This applies to all linear modulations – PSK, QAM, ASK, OOK, but not to non-linear ones (FSK etc).


In the case of the example you cite, a rectangular pulse shaper g(t) was chosen, which is 1 for the period T2,T2 around a "symbol time", and 0 else. That one has a sinc Fourier transform shape. That's where your sinc2 comes from!


The second term, the A24δ is what the sum in eq. (4417) collapses to, because the sinc is zero in every mT but for m=0.


As said above, most constellations are designed to have zero mean (μi=0), so that the sum term just disappears, and your spectral shape is only defined by the spectrum of your pulse. (Only ASK and OOK differ, as far as commonly used modulations are concerned, as far as I can tell.)



Your formula uses (ffc) instead of f, because it's already the bandpass signal's shape. Don't do that to you! Just consider the signal spectra in baseband, because we can mathematically shift those anywhere we like (especially by an fc).


If you don't have access to good literature: Proakis 3rd ed can be had only for less than a fancy coffee at an American coffee house chain at online used book sellers. It's not my favourite edition of the book, as it cuts the math parts where the second edition really excelled, but it's still a very solid book, and as far as I can see, the cheapest edition of the "very established" digital comms books (being Proakis, Sklar, Tse/Viswanath, and, if you're German, Kammeyer). I like Lapidoth's book, too, and it can be had for free on his website. (update: I just found out that you can get Tse online, too, which is awesome! Might be a bit too advanced, though.)


No comments:

Post a Comment

digital communications - Understanding the Matched Filter

I have a question about matched filtering. Does the matched filter maximise the SNR at the moment of decision only? As far as I understand, ...