Skip to main content

Digital Meets Analog

Learning Targets​

  • Situation: Thousands of available codes with uncertain absolute accuracy or changing-input errors.
  • Targets: Code conventions, acquisition settling, aliasing and converter architecture.
  • Data type: Ideal model inputs and computed codes; no physical measurements.

Code Definitions​

Δ=VFS2N,k=⌊ViΔ⌋,V^i=(k+1/2)Δ\Delta=\frac{V_{\mathrm{FS}}}{2^N},\qquad k=\left\lfloor\frac{V_i}{\Delta}\right\rfloor,\qquad \hat V_i=(k+1/2)\Delta
  • Convention: Unipolar straight-binary ADC; code clipped to 0 through 2N−12^N-1.
  • Code center: Error within half an LSB away from clipping under this ideal bin convention.
  • 12-bit, 3.3 V example: LSB 0.805664 mV; 1 V → code 1241, center estimate 1.000232 V.
  • DAC convention: Vo=Vrefk/2NV_o=V_{\mathrm{ref}}k/2^N; maximum one LSB below reference.
  • DAC midpoint: Code 2048 → 1.650 V.
  • DNL: Code-width departure from one LSB.
  • INL: Transfer departure from a defined reference line; gain/offset convention stated.
  • Accuracy: Reference, noise, offset and linearity beyond code count.
ADC staircase with code bins and centers, DAC output steps, and a sampling switch charging an input capacitor through source resistance
Figure 1. ADC staircase with code bins and centers, DAC output steps, and a sampling switch charging an input capacitor through source resistance.

Settling and Sampling​

tacq≥(N+1)ln⁡2 RCt_{\mathrm{acq}}\ge(N+1)\ln2\,RC
  • Conditions: First-order full-scale step settling to half an LSB; constant R/C.
  • Example: 12 bits, 10 kΩ, 20 pF → RC 0.2 µs; minimum acquisition 1.802 µs.
  • Residual at 1 µs: 22.24 mV; at 2 µs: 0.1498 mV.
  • Real input: Switch resistance, charge kickback, amplifier settling and channel changes.
  • Aliasing: 900 Hz and 100 Hz cosines with identical samples at 1 kS/s.
  • Anti-alias filter: Analog bandwidth limitation before sampling.
  • Jitter limit: SNRj≈−20log⁡10(2πfiσt)\mathrm{SNR}_j\approx-20\log_{10}(2\pi f_i\sigma_t); 100 kHz, 1 ns → about 64 dB.

Architectures and Systems​

StructureMain ideaRelevant limit
String / R–2R DACResistor tap / binary weightingMatching, loading, glitches
Current-steering DACSwitched current sumOutput compliance
Flash ADCParallel threshold comparisonsComparator count and power
SAR ADCSuccessive DAC decisionsAcquisition settling
Integrating ADCTime-averaged input/reference ratioConversion interval
Delta–sigma ADCOversampling, noise shaping, decimationFilter latency and overload recovery
  • Dual-slope relation: ∣Vi∣T1=∣Vref∣T2|V_i|T_1=|V_{\mathrm{ref}}|T_2 under ideal integration.
  • PWM average: DVH+(1−D)VLDV_H+(1-D)V_L; ripple and settling after filtering.
  • Ideal sine SNR: Approximately 6.02N+1.766.02N+1.76 dB under uniform-quantization assumptions.
  • ENOB: (SINAD−1.76)/6.02(\mathrm{SINAD}-1.76)/6.02; no direct DC-accuracy guarantee.
  • Multiplexing: Per-channel rate and settling distinct from total conversion rate.
  • PLL locked model: L(s)=KdF(s)Kv/(Ns)L(s)=K_dF(s)K_v/(Ns); phase feedback L/(1+L)L/(1+L); acquisition outside the linear model.
  • LFSR/DAC source: Deterministic repeating spectrum; separate from true random noise.

Practice​

  • Preparation: Stated 12-bit ADC/DAC model and 10 kΩ/20 pF acquisition model.
  • Prediction: Codes, bin centers, DAC levels and settling.
  • Execution: 0.5 V and 1 V inputs; +1 mV model offset; 1/2 µs acquisition comparisons.
  • Observation: ADC reconstruction versus DAC scaling.
TestCalculationIndependent result
ADC at 0.5 VCode 620—
ADC at 1 VCode 1241—
DAC at 20481.650 V—
Minimum acquisition1.802 µs—
  • Optional extension: Sampled 900/100 Hz cosine comparison.
  • Carry forward: Code format and acquisition timing.

Exercises​

  1. LSB: 10-bit ADC with 2.048 V span.
  2. Code: 0.500 V under that floor-bin convention.
  3. DAC: Code 512 under the same reference and bit count.
  4. Acquisition: Minimum for 10 bits and RC = 0.1 µs.
  5. Alias: Baseband alias of 800 Hz sampled at 1 kS/s.
Answers and reasoning
  1. Answer: 2 mV.
  2. Answer: 250.
  3. Answer: 1.024 V.
  4. Answer: 11ln⁡2(0.1)≈0.762511\ln2(0.1)\approx0.7625 µs.
  5. Answer: 200 Hz.

Continue​

Reference​

  • Reading: Paul Horowitz and Winfield Hill, The Art of Electronics, third edition, Chapter 13.
  • Lesson material: Original explanations, calculation examples and exercises; reference sections for further study.