ENG5027 Chap.1 Sampling and Quantisation
Sampling and Quantisation
Sampling and Quantisation explains where the numbers in every later chapter come from. A converter performs three separate jobs: sampling fixes the times at which the signal is read, quantisation forces each reading onto one of a finite set of levels, and coding stores the chosen level as bits.
The chapter connects sample index to physical time through the sampling rate, so that a slice of an array can be read in milliseconds, and it sizes the quantisation step from the bit depth and the input range. Rounding to the nearest level creates an error no larger than half a step, and modelling that error as a ramp gives a noise power of the step squared over twelve.
Comparing that with the power of a full-scale sinusoid gives the signal-to-quantisation-noise ratio, which improves with finer steps and larger amplitudes only while the input stays inside the range; beyond it the converter saturates. The second half turns to time resolution.
A sampled sinusoid depends only on the ratio of its frequency to the sampling rate, so two tones whose ratios differ by a whole number produce identical samples. The Nyquist condition, a rate strictly above twice the highest wanted frequency, avoids that ambiguity for the wanted band, and an analogue filter before the converter keeps unwanted high-frequency content from folding into it.
What this chapter covers
- 01
Three stages of analogue-to-digital conversion
- 02
Sample index, sampling interval and time
- 03
Bit depth, number of levels and step size
- 04
Rounding error, saturation and noise power
- 05
Signal-to-quantisation-noise ratio
- 06
Normalised frequency in cycles per sample
- 07
Aliasing, the Nyquist condition and anti-alias filtering
Worked example · free
Size an 8-bit converter for a bipolar signal
- 1Eight bits give 2⁸ = 256 levels, so the step is 2 V divided by 255, which is 7.84 mV.
- 1Rounding to the nearest level keeps the error within half a step, 3.92 mV in either direction.
- 2The noise power is the step squared over twelve: 0.00784² / 12 = 5.13 × 10⁻⁶ V².
- 2A cosine of amplitude 1 V has power 0.5 V², so the SQNR is 0.5 / 5.13 × 10⁻⁶ ≈ 97,500, or about 49.9 dB.
Key terms
- Quantisation error
- The difference between the stored level and the true sample value, bounded by half a step for rounding.
- Saturation
- The clipping of any input outside the converter range to the nearest end level and code.
- Normalised frequency
- The ratio of an analogue frequency to the sampling rate, measured in cycles per sample.
- Anti-alias filter
- An analogue lowpass placed before the converter to attenuate content above half the sampling rate.
Sampling and Quantisation FAQ
Does adding bits extend the converter range?
No. Extra bits divide the same input range into finer steps, which lowers rounding error and noise, but any input beyond the end levels still saturates. Range and resolution are separate design choices.
Why is sampling at exactly twice the highest frequency rejected?
At that boundary the outcome hinges on phase: a cosine sampled at its peaks alternates between plus and minus the amplitude, but a sine sampled at its zero crossings gives only zeros. A strict inequality with some margin avoids the ambiguity.
Can a digital filter remove aliasing after sampling?
It cannot, because an aliased component lands on the same samples as a genuine one at the folded frequency. The only remedy is to limit the analogue bandwidth before conversion, normally with an analogue lowpass filter.
Exam move
Begin with the arithmetic that every lab and exam part relies on. Practise converting between index and time at a few rates until it is automatic, then compute the step, the error bound and the noise power for converters of four, eight and twelve bits over different ranges, and check how the SQNR changes when the bit depth rises by one. Sketch the staircase transfer of a small converter and mark where saturation starts.
For aliasing, build a habit: for every tone in a question, write its ratio to the sampling rate and reduce it to the interval from zero to one half, folding back where needed. Rehearse the sampling-rate decision as the lecture frames it, rejecting rates that fail or sit on the boundary and preferring rates that leave room for the analogue filter.
Finally, explain in one sentence why a digital filter cannot undo aliasing; that sentence is a common short-answer mark.
Working through Sampling and Quantisation in ENG5027? Sia is AskSia’s AI Electrical Engineering tutor — ask any ENG5027 Sampling and Quantisation question and get a clear, step-by-step explanation grounded in how ENG5027 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.