5.5.4 · D1Embedded Systems & Real-Time Software

Foundations — ADC - DAC — resolution, sampling rate, Nyquist

1,959 words9 min readBack to topic

Before you can read the parent note ADC/DAC topic, you need every squiggle it throws at you to already mean something. Below, each symbol is built from nothing, given a picture, and justified.


1. Continuous vs discrete — the two worlds

Figure — ADC - DAC — resolution, sampling rate, Nyquist

WHY the topic needs this. The entire job of an ADC is to cross the bridge from the left picture (smooth line) to the right picture (dots on a grid). Every other symbol below is a tool for measuring where on the grid a smooth value lands.


2. Voltage and the reference

WHY the topic needs it. You cannot say a voltage is "half" without knowing "half of what". is that "what" — the full-scale range every step size is measured against.


3. Bits, , and powers of two

Figure — ADC - DAC — resolution, sampling rate, Nyquist

WHY the exponent, not multiplication? Because switches combine by choices multiplying, not adding. This is exactly why one more bit doubles quality — and later, why one more bit adds a fixed ~6 dB of SNR.


4. Code, LSB, and the fraction

WHY the topic needs it. LSB is the ruler's finest tick. It sets how truthfully we copy the signal's height, and it is the width used later for quantization noise.


5. Rounding and the LSB error

WHY the topic needs it. This unavoidable "snap" is the source of quantization error — the built-in tiny lie every ADC tells, which the parent turns into the dB SNR limit.


6. Time , sampling period , and rate

Figure — ADC - DAC — resolution, sampling rate, Nyquist

WHY the topic needs it. Resolution slices height; sampling slices time. and are the two frequencies whose contest Nyquist referees.


7. Sine, cosine, and "one cycle" =

WHY the topic needs it. Nyquist and aliasing are statements about sine waves. "Two samples per period" and " and look identical" both come straight from this repetition.


8. Round(·), | · |, and reading the alias formula


9. Decibels (dB) — reading the SNR line

WHY the topic needs it. It turns "more bits" into a concrete, measurable improvement ( dB).


Prerequisite map

Continuous vs discrete

Copy world into numbers

Voltage V and Vref

LSB step size

Bits N and 2^N codes

Rounding half-LSB error

Quantization noise and SNR

Decibels and SNR

Time t period Ts rate fs

Nyquist fs over 2 fmax

Sine cosine and 2 pi

Aliasing

round and absolute value

ADC DAC topic


Equipment checklist

Can you say, in one sentence, the difference between a continuous and a discrete quantity?
Continuous can be any value with no gaps; discrete only comes from a separated list of allowed values.
Do you know what is and why we measure against it?
It's the full-scale voltage (top of the ruler); every step is a fraction of it, so "half" only means something relative to .
Can you explain why bits give codes?
Each bit is a doubling switch, so switches make distinct patterns.
Do you know why we divide by (not ) for the LSB?
ticks leave gaps between them, and the LSB is a gap size.
Can you state the largest possible rounding error and why?
LSB, because snapping to the nearest tick is worst when you sit exactly halfway.
Do you know the relationship between and ?
They are reciprocals: .
Can you explain why a wave repeats identically every ?
Cosine returns to the same value after , so adding whole s changes nothing measurable.
Do you know what and do?
gives the nearest whole number; strips the sign to give size only.
Can you read "6 dB per bit" in plain words?
Each extra bit roughly halves the noise step, making the digital copy measurably cleaner.