## What is Carrier Frequency Offset (CFO) and How It Distorts the Rx Symbols

In Physics, frequency in units of Hz is defined as the number of cycles per unit time. Angular frequency is the rate of change of phase of a sinusoidal waveform with units of radians/second.

where and are the changes in phase and time, respectively. A Carrier Frequency Offset (CFO) usually arises due to two reasons:

- [Frequency mismatch between the Tx and Rx oscillators] No two devices are the same and there is always some difference between the manufacturer’s nominal specification and the real frequency of that device. Moreover, this actual frequency keeps changing (slightly) with temperature, pressure, age, and some other factors.
- [Doppler effect] A moving Tx, Rx or any kind of movement around the channel creates a Doppler shift that creates a carrier frequency offset as well. We will learn more about it during the discussion of a wireless channel in another post.

To see the effect of the carrier frequency offset , consider again a received passband signal consisting of two PAM waveforms in and arms.

(1)

Here, the carrier offset can be seen as which is changing with time. Let us look into how to find , the maximum value CFO can take.

The accuracy of local oscillators in communication receivers is defined in terms of ppm (parts per million). 1 ppm is just what it says: 1 out of parts. To get a feel of how big or small this number is, seconds translate into

Hence, ppm is equivalent to a deviation of second every days. This might sound entirely harmless but for the purpose of typical wireless communication systems operating at several GHz of carrier frequency and several MHz of symbol rates , it is one of the major sources of signal distortion.

The ppm rating at the oscillator crystal indicates how much its frequency may deviate from the nominal value. Consider an example of a wireless system operating at GHz and with ppm crystals, which is a more or less standard rating. The maximum deviation of the carrier frequency at the Tx or Rx can be

However, in the worst case scenario, the Tx can be ppm above (or below) the nominal frequency, while the Rx can be ppm below (or above) the nominal frequency, resulting in the overall difference of ppm between the two. So the worst case CFO due to local oscillator mismatch in this example can be

Keep in mind that this calculation is for basic precision and the actual frequency may vary depending on environmental factors, mainly the temperature and aging. Finally, a movement anywhere in the channel (whether by Tx, Rx or some other object within that environment) adds Doppler shift which can be up to several hundreds of Hz. Although this Doppler shift is much less than the oscillator generated mismatch, it severely distorts the Rx signal due to the changes it causes in the channel.

Now we turn our attention towards Figure below to differentiate between three possibilities in which can dictate the receiver design.

## Case 1: CFO

It was illustrated in another article that an input signal at the Rx is filtered by an analog prefilter to remove the out of band noise. Ideally, the frequency response of this prefilter should be flat within the frequency range

so that the incoming signal can pass through in an undistorted manner (we are assuming a flat wireless channel here as well. Actual wireless channels will be discussed later). The passband width of this prefilter is designed according to the maximum CFO expected at the Rx.

However, if the CFO is greater than , then much of the actual intended signal will be filtered out by the analog prefilter and the Rx sampled signal will not even closely resemble the Tx signal as a linear function of Tx data. No amount of signal processing can then recover the signal. Since it is an outcome of poor system design, the only remedy is to redesign the system (particularly the analog frontend) with more accurate estimates and margins for CFO and other such random distortions.

## Case 2: of CFO

Since CFO , the Rx signal is within the passband of the analog prefilter and suffers no distortion. However, remember from a previous post that to maximize the SNR, the Rx signal must be passed through a matched filter. This is not possible in this case because much of the Rx signal bandwidth does not sufficiently overlap with the matched filter due to the CFO being greater than of symbol rate . If applied, it would remove a significant portion of the incoming signal energy.

Since Rx signal cannot be matched filtered without distorting the signal, and the signal cannot be downsampled to sample/symbol without matched filtering, it is easy to deduce that more than sample/symbol (say, ) is required to trace the frequency offset.

Another route to understand the rationale behind the factor of the symbol rate is by evaluating the relation

For CFO of , an offset cycle gets completed in less than symbol times, which induces a phase rotation of more than on one symbol. Therefore, it cannot be downsampled to sample/symbol for frequency tracking.

## Case 3: CFO of

When the signal is rotated by less than , an offset cycle gets completed in less than symbols, and hence the effect of rotation on one symbol, although still significant, can now be tracked at symbol rate, or sample/symbol. In other words, matched filtering keeps most of the signal intact and as a result, symbol boundaries can be marked first (a problem known as symbol timing synchronization which we discuss in another article) before carrier frequency is estimated at the ISI-free symbol-spaced samples.

In the absence of noise, the sampled version of this mismatch in Eq (1) becomes . Now Eq (1) is very similar to phase rotation equation, and hence we can use directly use that result with proper substitution. The expression for the symbol-spaced samples in the presence of CFO can be obtained after replacing sample time index with the symbol time index .

In the above equation,

where the is defined as the normalized Carrier Frequency Offset (nCFO): CFO normalized by the symbol rate.

This normalization is very important as we saw in the last subsection. The resulting expression takes the form

In polar form, this expression can be written as

Notice from the above equation that a carrier frequency offset of keeps the magnitude unchanged but continually rotates the desired outputs and on the constellation plane. This is drawn for symbol-spaced samples in the scatter plot of Figures below for a -QAM and -QAM constellation.

Due to this reason, a Carrier Frequency Offset (CFO), or , in the received signal spins the constellation in a circle (or multiple circles for higher-order modulations). This is a natural outcome since the angular frequency is defined as the rate of change of phase.

The above results are summarized in Table below.