Modulation and Sampling
Signal Sampling
Signal sampling turns a continuously varying voltage into a sequence of measurements taken at selected times. You meet it in digital oscilloscopes, sound recording, and sensor interfaces. The spacing between measurements determines which signal variations the record can distinguish. A fast-looking sequence of numbers does not by itself guarantee that it represents the original waveform accurately.
Samples and time spacing
For uniform sampling, measurements are separated by a constant sampling period Ts. The sample rate fs is the number of samples taken per second. Their relationship and the recorded sequence are
Here, x(t) is the continuous signal, and x[n] is its value at sample index n. Use seconds for Ts when calculating fs in hertz. For example, Ts=50.0 μs gives
Sampling selects measurement times. Quantization, which rounds measured amplitudes to available digital levels, is a separate operation. The sampling relationships here assume exact amplitudes and an ideal, evenly spaced clock.
The condition for reconstruction
For an arbitrary real baseband signal with no frequency content above B, the standard sufficient condition for ideal reconstruction is
This assumes that B describes the entire signal reaching the sampler, including unwanted components. It also assumes ideal reconstruction from the sample sequence. A finite recorded interval introduces additional limitations.
Terminology varies slightly between texts. Here, the Nyquist rate is 2B, while the Nyquist frequency of a sampler is fs/2.
Sample rate | What it establishes for the stated signal class |
|---|---|
fs>2B | The ideal band-limited waveform can be reconstructed uniquely. |
fs=2B | A component at the boundary can lose information, depending on phase. |
fs<2B | Different allowed input waveforms can produce identical samples. |
The strict inequality matters at the boundary. A sinusoid sampled exactly twice per cycle could be measured only at its zero crossings. Counting two samples per cycle therefore does not guarantee that every possible phase is represented.
Aliasing and filtering
Aliasing occurs when distinct continuous signals produce the same sampled sequence. For a sinusoidal component of frequency f, its apparent frequency can be reported in the range from 0 through fs/2 using
Choose the integer k that makes the difference smallest. This subtracts whole multiples of the sample rate and folds the result into the reported range. The sinusoid's phase may change during folding.
For example, sampling a 13.0 kHz cosine at 20.0 kHz gives an apparent frequency of
A high-frequency input can therefore appear inside a wanted low-frequency band. Increasing the precision of the stored amplitudes does not resolve that ambiguity.
An analog anti-aliasing filter limits unwanted high-frequency content before sampling. A practical filter needs a transition band between the frequencies it preserves and those it strongly attenuates, so engineers leave room between the wanted bandwidth and fs/2.
For a specified collection of tones, preserving only a selected band can require less than reconstructing the entire input. Check where every unwanted tone aliases before deciding whether later filtering is sufficient.
What to remember
- Uniform sampling uses x[n]=x(nTs) and fs=1/Ts.
- Ideal reconstruction of an arbitrary baseband signal requires fs>2B under the stated assumptions.
- Aliases are frequency ambiguities created during sampling.
- Control unwanted analog frequencies before they overlap wanted sampled content.
Example: Signal Sampling in a Vibration Recorder
A vibration recorder is designed to preserve sensor frequencies from 0 through 1.80 kHz. During a check, its input contains a wanted 1.30 kHz cosine of amplitude 0.400 V and an unwanted 8.70 kHz cosine of amplitude 0.100 V. Both have phase zero at t=0.
The recorder samples uniformly at 10.0 kHz. Assume ideal sampling and exact amplitude measurements.
a) Find the sampling period in microseconds. Considering the wanted band alone, does the sample rate satisfy the strict reconstruction condition?
Convert the sample rate to hertz and take its reciprocal:
For the wanted bandwidth,
Since 10.0>3.60, the sample rate satisfies the strict condition for the wanted band alone. This check does not account for the unwanted tone actually reaching the sampler. The sampling period is 100 μs.
b) Without an analog filter, find the unwanted tone's apparent frequency. Determine the amplitude of the resulting sampled tone at that frequency.
The sampler's Nyquist frequency is
Fold the unwanted frequency into the interval from zero through this boundary:
This matches the wanted frequency. To check whether the sampled cosines add or subtract, express their phases using sample index n:
Because n is an integer,
The two sampled cosines have the ________ and add:
The apparent tone is at 1.30 kHz with amplitude 0.500 V. A digital frequency filter cannot separate these overlapping contributions using frequency alone.
c) An ideal analog low-pass filter passes frequencies through 2.40 kHz unchanged and removes higher frequencies. Where should it be placed, and what tone will then be recorded?
Place the filter before the sampler so it acts on the original analog frequencies. Its cutoff preserves the entire intended band because
It removes the unwanted tone because
The filtered input also meets the strict sampling condition, since
The wanted tone passes unchanged, and the unwanted tone has ________ after this ideal filter. Therefore the recorded sequence is
The recorder now represents the wanted 1.30 kHz tone with its correct amplitude of 0.400 V. A physical filter would require a specified transition band and finite attenuation rather than the ideal abrupt cutoff assumed here.
A sensor produces wanted signals below 2 kHz and unwanted interference near 9 kHz. Its recorder samples at 8 kHz. The engineer wants to keep the interference from corrupting the recorded 0–2 kHz band.
Complete the design instruction using analog or digital (spelled analog, not analogue) for the first blank and before or after for the second blank: place an low-pass filter the sampler, with a response that preserves the wanted signals and sufficiently attenuates the interference.
An analog filter produces a real baseband voltage containing no frequencies above 3.10 kHz. A component at exactly 3.10 kHz may have any phase. Assuming ideal uniform sampling and reconstruction, which is the smallest offered sample rate that guarantees unique reconstruction of this signal class?