# How to demodulate PM modulation

I'm using a sin wave $$s_{sc}(t) = d(t)\cos(\omega_{sc}t + \varphi_{sc})$$ to modulate a carrier using phase modulation. I'm working on Matlab so I use the pmmod function to do so. It is not too complicated to understand what this function is doing, probably computing something like $$\cos(\omega_c t + h s_{sc}(t) + \varphi_{ini})$$ (with h the modulation index).

In order to demodulate it, I'm using the pmdemod function of Matlab. But for this one, I have absolutely no idea of what is happening in background. I tried to analyze the results obtained after a pmmod-pmdemod sequence, and this is what I observed on Matlab:

Regarding the convergence time, it seems that Matlab use a PLL in background. but what kind of PLL is it ? I'm very interested about the digital methods used to demodulate PM modulation and more particularly the maths behind it. But I cannot find any article/document/book about it (Or I just don't know what to search on google, because when I type "phase modulation" I just find article about CPM modulation or digital PSK/FSK modulation methods...).

Any help would be helpful :)

Phase modulation is demodulated using phase discriminators otherwise called phase detectors- anything that can translate a change in phase to a change in magnitude.

The most common for real functions is a simple multiplier followed by a low pass filter as given by the product of two sinusoids in quadrature:

From the relationship

$$\sin(\alpha)\cos(\beta) = \frac{1}{2}\sin(\alpha + \beta) + \frac{1}{2}\sin(\alpha-\beta)$$

Then by multiplying the phase modulated carrier with a local oscillator at the carrier frequency we get:

$$\sin(2\pi f_c t + \phi(t))\cos(2\pi f_c t)$$

Which after the low pass filter which eliminates the sum term we get:

$$= \sin(\phi(t))$$

When the phase deviation is small we get a linear result out of the discriminator since for small angles $$\sin(\phi(t)) \approx \phi(t)$$.

Note that such a product detector is also sensitive to amplitude (AM), so for purposes of phase demodulation only it is common to hard limit the modulated signal prior to the phase detector to remove all AM components.

The challenge in an actual receiver is to determine the carrier frequency accurately and track it through changing conditions such as Doppler and clock drift, thus a phase lock loop can utilize the phase detector and adjust the local oscillator (LO) such that the longer term average phase difference (error) between the LO and the received carrier of the modulated signal is zero, while the signal itself which is changing faster than the loop can track (outside the loop bandwidth) would pass through.

I have more details on other phase detectors including what is commonly used for complex signals at these posts:

Phase measurement

phase difference detection

Phase synchronization in BPSK

How to correct the phase offset for QPSK I-Q data