In the article on modulation – from numbers to signals, we said that the Pulse Amplitude Modulation (PAM) is an amplitude scaling of the pulse according to the symbol value. What happens when this process of scaling the pulse amplitude by symbols is repeated for every symbol during each interval ? Clearly, a series of bits (1010 in our initial example) can be transmitted by choosing a rectangular pulse and scaling it with appropriate symbols.

Our next step is forming a cumulative waveform from these individual symbol-scaled pulses. Remember from the article on transforming a signal that mathematical expression for a signal delayed by an amount or samples is given as , where is the symbol duration and is samples/symbol defined as . Since the same pulse is scaled by the symbol value during each ,

- At time instant , the output is .
- At time instant , the output is .
- At time instant , the output is .
- At time instant , the output is .

And so on. Finally, their addition gives the expression for a general PAM waveform:

(1)

After digital to analog conversion (DAC), the continuous-time signal can be expressed as

(2)

As an example, a -PAM waveform is illustrated in Figure below with red dashed curve being the underlying continuous-time signal.

In a similar manner to -PAM, a -PAM waveform based on symbols can be constructed by scaling the pulse amplitude by different symbol values during each , as illustrated in Figure below.

## Constellation Diagram

Just like a constellation of stars, a constellation diagram shows the actual symbol values representing a set of bits. We have already encountered constellation diagrams before (e.g., in the article on a simple communication system). A general constellation diagram for M-PAM is shown in Figure below.

## Average Symbol Energy

The average symbol energy in a constellation is given by the average of all individual symbol energies. For ,

And for ,

For a general ,

The term in the brackets is the sum of squares of first odd integers. Using the formula for the first odd integers squared, we get

(3)

The main purpose of this text is to find the answer to the following question: which operations are necessary to perform at the Tx and Rx sides such that we can detect that symbol with the highest probability? To explore the answer, we start with a simple PAM modulator and detector.

## PAM Modulator

At this stage, we are ready to build a conceptual PAM modulator. The block diagram is drawn in Figure below in which Tx signal is generated in the following way.

- Every seconds, a new bit arrives at the input forming a serial bit stream.
- A serial-to-parallel (S/P) converter collects such bits every seconds that are used as an address to access a Look-Up Table (LUT) that stores symbol values specified by the constellation.
- To produce a PAM waveform, the symbol sequence is converted to a discrete-time impulse train through upsampling by , where is samples/symbol defined as ratio of symbol time to sample time , or equivalently sample rate to symbol rate .
- As explained in the post on sample rate conversion, upsampling inserts zeros between each symbol after which the interpolated intermediate samples can be raised from dead with the help of a lowpass filter that suppresses all the spectral replicas except the primary one. We will see in the next section that a proper pulse shaping filter is also a lowpass filter and hence another extra lowpass filter is not actually required.
- The generated discrete-time signal is converted to a continuous-time signal by a DAC.

The mathematical derivation for the PAM modulator was shown in Eq (1) and Eq (2).

## PAM Detector

The received signal is the same as the transmitted signal but with the addition of additive white Gaussian noise (AWGN) . The symbols are detected through the following steps illustrated in Figure above.

- Through an analog to digital converter (ADC), is sampled at a rate of samples/s to produce a sequence of -spaced samples .
- Next, is processed through a matched filter at the Rx side to generate . As discussed earlier, the output of the matched filter is a continuous correlation of the symbol-scaled pulse shape with an unscaled and time-reversed pulse shape.
- This output is downsampled by at optimal sampling instants

(4)

to produce -spaced numbers back from the signal.

- The minimum distance decision rule is employed to find the symbol estimates .

Take a special note of Eq (4). It will be employed over and over again.

Notice that a symbol is the basic building block of a digital communication system. Consequently, symbol time is the basic unit of measurement along the time axis of such a system. When Figure on correlator outputs depicts sampling the output just once at optimum instant out of , it is true for all integer multiples of symbol time as well, i.e., the output is sampled just once for every symbol duration at optimum instants , , .

Carefully examine the key samples at , , . These are the samples we are looking for in the waveform for the detection purpose. Even when the waveform has suffered from all the distortions the real world has to offer, locating these samples and mapping them back to the constellation is a beautiful process, actual details of which we will encounter throughout this text.

Let us discuss the mathematical details of this process. The Tx signal in Eq (1) is expressed as (the reason for using a different variable instead of will shortly become clear)

In a noiseless case, this signal is input to matched filter and the output is written as

(5)

where comes into play from the definition of auto-correlation function. To generate symbol decisions, -spaced samples of the matched filter output are required at . Downsampling the matched filter output generates

(6)

This is because for a rectangular pulse shape, the matched filter output is triangular with maximum occurring at and zero at the next symbol location (since we wanted to denote our current symbol with , we opted for variable at the start of this derivation), see Figure on correlation of a rectangular pulse.

Observe that the system shown in PAM system block diagram is a multirate system. In the PAM detector, for example, the ADC and the matched filter operate at the sample rate . After the output of the matched filter is downsampled by , the symbol decisions are made at the symbol rate . Furthermore, there are some hidden assumptions in the PAM detector:

[Resampling] The ADC in general does not produce an integer number of samples per symbol, i.e., is not an integer. As we will see later, a resampling system is required in the Rx chain that changes the sample rate from the ADC rate to a rate that is an integer multiple of the symbol rate.

[Symbol Timing Synchronization] The peak sample at the end of each symbol duration is not known in advance at the Rx and in fact does not necessarily coincide with a generated sample as well. This is because ADC just samples the incoming continuous waveform without any information about the symbol boundaries. This is a symbol timing synchronization problem which we will learn later.

If you found this article useful, you might want to subscribe to my email list below to receive new articles.