Ontological Layer: The Analog/Digital Boundary
Sampling & Quantization
Measuring Reality to Create Digital Data
The Digital Translation
A computer cannot process reality; it can only process numbers. To bring an infinitely continuous physical signal into the machine, we must shatter it into discrete fragments of time (Sampling) and approximate its infinite values into fixed, binary steps (Quantization). This realm defines the absolute mathematical boundaries of this translation: how fast we must sample to avoid Aliasing (the Nyquist Theorem), and the inevitable error introduced when we round reality to fit into digital resolution.
The 14 Conversion Nodes
Ontological Mapping: From Continuous to Binary
Why Sample?
- Computers require discrete data
- Measuring at fixed time intervals
- Bridge between analog and digital
- Sampling frequency (f_s) concept
Sampling Process
- Ideal impulse-train sampling
- Multiplication in time domain
- Sample-and-hold circuit
- x_s(t) = x(t)·p(t)
Sampling Rate
- f_s = 1 / T_s relationship
- Sample density over time
- Oversampling vs Undersampling
- High rates → Better approximation
Nyquist Theorem
- Minimum theoretical sampling rate
- Must sample at > 2·f_max
- Bandlimited signal requirement
- Guarantees perfect reconstruction
Aliasing
- Violation of Nyquist limit
- High frequencies fold back as low frequencies
- Spectral overlap in frequency domain
- Irreversible information corruption
Anti-Aliasing Filter
- Analog low-pass prefilter
- Removes frequencies above f_s/2
- Enforces bandlimited condition
- Essential hardware before ADC
Spectral View
- Sampling replicates spectrum
- Replicas centered at integer multiples of f_s
- Convolution in frequency domain
- Bridge to Fourier analysis
Reconstruction
- Digital to Analog Conversion (DAC)
- Zero-order hold (Staircase generation)
- Low-pass reconstruction filter
- Ideal sinc interpolation
Quantization
- Discretizing continuous amplitude
- Mapping to nearest discrete level
- Uniform vs Non-uniform steps
- Creates the "staircase" effect
Quantization Error
- Difference between analog value and step
- e_q = Quantized Value - True Value
- Max error for rounding: ± Δ/2
- Perceived as Granular Noise
Resolution & Bits
- Bit depth (N) determines levels (L = 2^N)
- 8-bit = 256 levels, 16-bit = 65,536
- Higher resolution → smaller step size (Δ)
- Improves Signal-to-Noise Ratio (SNR)
ADC Architecture
- Full pipeline hardware
- Analog Filter → S/H → Quantizer → Encoder
- Conversion time and delay
- Flash, SAR, Sigma-Delta concepts
Signal Classification
- Analog: Continuous Time / Continuous Amp
- Sampled: Discrete Time / Continuous Amp
- Digital: Discrete Time / Discrete Amp
- Nyquist constraint evaluation
14 — The Conversion Laboratory
You have successfully pulled a continuous physical signal through the digital gate. By obeying the Nyquist theorem and managing quantization error, reality is now represented as an array of binary numbers in memory. The machine can finally perform math upon it. You are now prepared for Realm 08: Digital Signal Processing.