2025-07-11
Today’s lecture is a review of material from ECE 2714. We will review sampling theory, the Nyquist rate, practical sampling, and reconstruction techniques.
Recall that hybrid systems are ones with both CT and DT signals. Such systems require the ability to:
convert signals from CT to DT: sampling or analog-to-digital conversion (ADC)
convert signals from DT to CT: reconstruction or digital-to-analog conversion (DAC)
The impulse train
is a periodic function with period . It has a CTFS representation
where are the coefficients.
Its Fourier Transform is then
Given ans arbitrary signal we can represent sampling as multiplication by the impulse train
where we define .
In the frequency domain, multiplication is convolution
The frequency content of the sampled signal consists of copies of the frequency content of the original signal called images.
To ensure there is do distortion in the signal we require the images do not overlap, which occurs if , where is the bandwidth of . This is the Nyquist criteria. In terms of a frequency this sample rate is then radians-per-second.
If is finite then is and we can choose to meet the Nyquist rate.
If is not band-limited, or , then we get aliasing. To illustrate this suppose the band-limited signal has a magnitude spectrum like the following
After sampling () and assuming the spectrum of the sampled signal is:
If instead the images overlap and we get aliasing, where high frequency content gets added to the lower frequency content. This is shown below with the lighter lines showing the images and the heavier line showing their sum.
While ideal sampling thoery is mathematically simple and intuitive, ideal sampling cannot be implemented in practice because we cannot generate ideal impulses for the impulse train.
We can generate short pulses that approximate the impulse however. This is done through a circuit called a sample and hold.
where is the pulse train with pulse width
We can model this as well since . The sampled signal is then
or in the frequency domain
To store the output of the sample and hold we need to quantize it into bits, e.g. are common choices. The mathematical model for this process is outsie the scope of 3704 (but is covered in 4624 DSP), so we will assume .
Is we have no control over the input and have to fix a sample time, we need to force to be approximately band-limited usng a mow-pass filter called an anti-aliasing filter, whose cut-off frequency is relative to the sampling frequency.
Given a DT signal and a sample spacing , we can define a corresponding CT signal as the impulse train with each impulse weighted by the DT signal.
CT signal reconstruction can be viewed from two different (but equivalent) perspectives. In the time domain perspective, the CT signal corresponding to a DT signal can be viewed as interpolation, where the values of the CT signal are equal to the DT signal at intervals of the sample time, i.e. , and in between the value of is interpolated. If the interpolation is of zero-order, the value at is held constant until . This is called a zero-order hold, and can mathematically modeled as convolution of the weighted impulse train with a pulse whose width is the sample time, called the interpolation function.
As we have seen before we cannot physically represent the impulse train nor the ideal low-pass filter. Thus practical reconstruction uses an approximation of the ideal reconstruction filter by a digital-to-analog converter (DAC), followed by a causal (and thus physically possible) low-pass filter.
A zero-order hold DAC can be implemented by a circuit called a resistor ladder. Consider a digital output with bits and a reference voltage (for example an 8-bit output port on a micro-controller using CMOS 3.3v logic).
If this port is connected to a resistor network consisting of resistor values and as follows
then depending on the bit pattern at the output port , the output of the buffer op-amp will be
If the port value is changed every sample time , then the resister ladder and buffer op-amp combine to implement a zero-order hold circuit.
The zero-order hold is followed by the reconstruction (anti-imaging) filter which low-pass filters the output and smooths-out the jumps from value to value.
With or without and anti-imaging filter the signal is positive. This can be followed by a summing amplifier to shoft the signal voltage up or down and amplify as needed.
The goal of Lab 1 is the build a sampling and reconstruction system using a protoboard and microcontroller, an implement a DT identity (all-pass) system.