Keywords: tutorial, QPSK, modulation, modulator, demodulator, demodulation
Related Parts |

TUTORIALS 686

Abstract: Readers are presented with step-by-step derivations showing the operation of QPSK modulation and demodulation. The transition from analog communication to digital has advanced the use of QPSK. Euler's relation is used to assist analysis of multiplication of sine and cosine signals. A SPICE simulation is used to illustrate QPSK modulation of a 1MHz sine wave. A phasor diagram shows the impact of poor synchronization with the local oscillator. Digital processing is used to remove phase and frequency errors.

Since the early days of electronics, as advances in technology were taking place, the boundaries of both local and global communication began eroding, resulting in a world that is smaller and hence more easily accessible for the sharing of knowledge and information. The pioneering work by Bell and Marconi formed the cornerstone of the information age that exists today and paved the way for the future of telecommunications.

Traditionally, local communication was done over wires, as this presented a cost-effective way of ensuring a reliable transfer of information. However, for long-distance communications, transmission of information over radio waves was needed. Although this was convenient from a hardware standpoint, radio-waves transmission raised doubts about the corruption of the information; transmission was often dependent on high-power transmitters to overcome weather conditions, large buildings, and interference from other sources of electromagnetics.

The various modulation techniques offered different solutions in terms of cost-effectiveness and quality of received signals but until recently were still largely analog. Frequency modulation and phase modulation presented a certain immunity to noise, whereas amplitude modulation was simpler to demodulate. However, more recently with the advent of low-cost microcontrollers and the introduction of domestic mobile telephones and satellite communications, digital modulation has gained in popularity. With digital modulation techniques come all the advantages that traditional microprocessor circuits have over their analog counterparts. Any shortfalls in the communications link can be eradicated using software. Information can now be encrypted, error correction can ensure more confidence in received data, and the use of DSP can reduce the limited bandwidth allocated to each service.

As with traditional analog systems, digital modulation can use amplitude, frequency, or phase modulation with different advantages. As frequency and phase modulation techniques offer more immunity to noise, they are the preferred scheme for the majority of services in use today and will be discussed in detail below.

## Digital Frequency Modulation

A simple variation from traditional analog frequency modulation (FM) can be implemented by applying a digital signal to the modulation input. Thus, the output takes the form of a sine wave at two distinct frequencies. To demodulate this waveform, it is a simple matter of passing the signal through two filters and translating the resultant back into logic levels. Traditionally, this form of modulation has been called frequency-shift keying (FSK).

## Digital Phase Modulation

Spectrally, digital phase modulation, or phase-shift keying (PSK), is very similar to frequency modulation. It involves changing the phase of the transmitted waveform instead of the frequency, and these finite phase changes represent digital data. In its simplest form, a phase-modulated waveform can be generated by using the digital data to switch between two signals of equal frequency but opposing phase. If the resultant waveform is multiplied by a sine wave of equal frequency, two components are generated: one cosine waveform of double the received frequency and one frequency-independent term whose amplitude is proportional to the cosine of the phase shift. Thus, filtering out the higher-frequency term yields the original modulating data prior to transmission.This is difficult to picture conceptually, but mathematical proof will be shown later.

## Quadraphase-Shift Modulation

Taking the above concept of PSK a stage further, it can be assumed that the number of phase shifts is not limited to only two states. The transmitted "carrier" can undergo any number of phase changes and, by multiplying the received signal by a sine wave of equal frequency, will demodulate the phase shifts into frequency-independent voltage levels.

This is indeed the case in quadraphase-shift keying (QPSK). With QPSK, the carrier undergoes four changes in phase (four symbols) and can thus represent 2 binary bits of data per symbol. Although this may seem insignificant initially, a modulation scheme has now been supposed that enables a carrier to transmit 2 bits of information instead of 1, thus effectively doubling the bandwidth of the carrier.

The proof of how phase modulation, and hence QPSK, is demodulated is shown below.

The proof begins by defining Euler's relations, from which all the trigonometric identities can be derived.

Euler's relations state the following: Now consider multiplying two sine waves together, thus: From Equation 1, it can be seen that multiplying two sine waves together (one sine is the incoming signal, the other is the local oscillator at the receiver mixer) results in an output frequency double that of the input (at half the amplitude) superimposed on a DC offset of half the input amplitude.

Similarly, multiplying sin ωt by cos ωt gives: Which gives an output frequency (sin 2ωt) double that of the input, with no DC offset.

It is now fair to make the assumption that multiplying sin ωt by any phase-shifted sine wave (sin ωt + ø) yields a "demodulated" waveform with an output frequency double that of the input frequency, whose DC offset varies according to the phase shift, ø.

To prove this: Thus, the above proves the supposition that the phase shift on a carrier can be demodulated into a varying output voltage by multiplying the carrier with a sine-wave local oscillator and filtering out the high-frequency term. Unfortunately, the phase shift is limited to two quadrants; a phase shift of π/2 cannot be distinguished from a phase shift of -π/2. Therefore, to accurately decode phase shifts present in all four quadrants, the input signal needs to be multiplied by both sinusoidal and cosinusoidal waveforms, the high frequency filtered out, and the data reconstructed. The proof of this, expanding on the above mathematics, is shown below.

Thus: A SPICE simulation verifies the above theory.** Figure 1** shows a block diagram of a simple demodulator circuit. The input voltage, QPSK IN, is a 1MHz sine wave whose phase is shifted by 45°, 135°, 225°, and then 315° every 5µs.

**Figures 2** and **3** show the "in-phase" waveform, V_{I}, and the "quadrature" waveform, V_{Q}, respectively. Both have a frequency of 2MHz with a DC offset proportional to the phase shift, confirming the above mathematics.

**Figure 4** is the phasor diagram showing the phase shift of QPSK IN and the demodulated data.

The above theory is perfectly acceptable, and it would appear that removing the data from the carrier is a simple process of lowpass filtering the output of the mixer and reconstructing the four voltages back into logic levels. In practice, getting a receiver local oscillator exactly synchronized with the incoming signal is not easy. If the local oscillator varies in phase with the incoming signal, the signals on the phasor diagram will undergo a phase rotation with its magnitude directly proportional to the phase difference. Moreover, if the phase*and* frequency of the local oscillator are not fixed with respect to the incoming signal, there will be a continuing rotation on the phasor diagram.

Therefore, the output of the front-end demodulator is normally fed into an ADC and any rotation resulting from errors in the phase or frequency of the local oscillator are removed in DSP.

An effective way of converting directly to baseband is using a direct-conversion tuner IC.

The above devices are part of the rapidly expanding RF chipsets from Maxim Integrated. With five high-speed processes, more than 70 high-frequency standard products, and 52 ASICs in development, Maxim is committed to being a major player in the RF/wireless, fiber/cable, and instrumentation markets.

Traditionally, local communication was done over wires, as this presented a cost-effective way of ensuring a reliable transfer of information. However, for long-distance communications, transmission of information over radio waves was needed. Although this was convenient from a hardware standpoint, radio-waves transmission raised doubts about the corruption of the information; transmission was often dependent on high-power transmitters to overcome weather conditions, large buildings, and interference from other sources of electromagnetics.

The various modulation techniques offered different solutions in terms of cost-effectiveness and quality of received signals but until recently were still largely analog. Frequency modulation and phase modulation presented a certain immunity to noise, whereas amplitude modulation was simpler to demodulate. However, more recently with the advent of low-cost microcontrollers and the introduction of domestic mobile telephones and satellite communications, digital modulation has gained in popularity. With digital modulation techniques come all the advantages that traditional microprocessor circuits have over their analog counterparts. Any shortfalls in the communications link can be eradicated using software. Information can now be encrypted, error correction can ensure more confidence in received data, and the use of DSP can reduce the limited bandwidth allocated to each service.

As with traditional analog systems, digital modulation can use amplitude, frequency, or phase modulation with different advantages. As frequency and phase modulation techniques offer more immunity to noise, they are the preferred scheme for the majority of services in use today and will be discussed in detail below.

This is indeed the case in quadraphase-shift keying (QPSK). With QPSK, the carrier undergoes four changes in phase (four symbols) and can thus represent 2 binary bits of data per symbol. Although this may seem insignificant initially, a modulation scheme has now been supposed that enables a carrier to transmit 2 bits of information instead of 1, thus effectively doubling the bandwidth of the carrier.

The proof of how phase modulation, and hence QPSK, is demodulated is shown below.

The proof begins by defining Euler's relations, from which all the trigonometric identities can be derived.

Euler's relations state the following: Now consider multiplying two sine waves together, thus: From Equation 1, it can be seen that multiplying two sine waves together (one sine is the incoming signal, the other is the local oscillator at the receiver mixer) results in an output frequency double that of the input (at half the amplitude) superimposed on a DC offset of half the input amplitude.

Similarly, multiplying sin ωt by cos ωt gives: Which gives an output frequency (sin 2ωt) double that of the input, with no DC offset.

It is now fair to make the assumption that multiplying sin ωt by any phase-shifted sine wave (sin ωt + ø) yields a "demodulated" waveform with an output frequency double that of the input frequency, whose DC offset varies according to the phase shift, ø.

To prove this: Thus, the above proves the supposition that the phase shift on a carrier can be demodulated into a varying output voltage by multiplying the carrier with a sine-wave local oscillator and filtering out the high-frequency term. Unfortunately, the phase shift is limited to two quadrants; a phase shift of π/2 cannot be distinguished from a phase shift of -π/2. Therefore, to accurately decode phase shifts present in all four quadrants, the input signal needs to be multiplied by both sinusoidal and cosinusoidal waveforms, the high frequency filtered out, and the data reconstructed. The proof of this, expanding on the above mathematics, is shown below.

Thus: A SPICE simulation verifies the above theory.

The above theory is perfectly acceptable, and it would appear that removing the data from the carrier is a simple process of lowpass filtering the output of the mixer and reconstructing the four voltages back into logic levels. In practice, getting a receiver local oscillator exactly synchronized with the incoming signal is not easy. If the local oscillator varies in phase with the incoming signal, the signals on the phasor diagram will undergo a phase rotation with its magnitude directly proportional to the phase difference. Moreover, if the phase

Therefore, the output of the front-end demodulator is normally fed into an ADC and any rotation resulting from errors in the phase or frequency of the local oscillator are removed in DSP.

An effective way of converting directly to baseband is using a direct-conversion tuner IC.

The above devices are part of the rapidly expanding RF chipsets from Maxim Integrated. With five high-speed processes, more than 70 high-frequency standard products, and 52 ASICs in development, Maxim is committed to being a major player in the RF/wireless, fiber/cable, and instrumentation markets.

Next Steps | ||

EE-Mail | Subscribe to EE-Mail and receive automatic notice of new documents in your areas of interest. | |

Download | Download, PDF Format |

© , Maxim Integrated Products, Inc. |

The content on this webpage is protected by copyright laws of the United States and of foreign countries. For requests to copy this content,
contact us.

APP 686: TUTORIALS 686,AN686, AN 686, APP686, Appnote686, Appnote 686 |