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
- Convention: Unipolar straight-binary ADC; code clipped to 0 through .
- 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: ; 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.
Settling and Sampling
- 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: ; 100 kHz, 1 ns → about 64 dB.
Architectures and Systems
| Structure | Main idea | Relevant limit |
|---|---|---|
| String / R–2R DAC | Resistor tap / binary weighting | Matching, loading, glitches |
| Current-steering DAC | Switched current sum | Output compliance |
| Flash ADC | Parallel threshold comparisons | Comparator count and power |
| SAR ADC | Successive DAC decisions | Acquisition settling |
| Integrating ADC | Time-averaged input/reference ratio | Conversion interval |
| Delta–sigma ADC | Oversampling, noise shaping, decimation | Filter latency and overload recovery |
- Dual-slope relation: under ideal integration.
- PWM average: ; ripple and settling after filtering.
- Ideal sine SNR: Approximately dB under uniform-quantization assumptions.
- ENOB: ; no direct DC-accuracy guarantee.
- Multiplexing: Per-channel rate and settling distinct from total conversion rate.
- PLL locked model: ; phase feedback ; 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.
| Test | Calculation | Independent result |
|---|---|---|
| ADC at 0.5 V | Code 620 | — |
| ADC at 1 V | Code 1241 | — |
| DAC at 2048 | 1.650 V | — |
| Minimum acquisition | 1.802 µs | — |
- Optional extension: Sampled 900/100 Hz cosine comparison.
- Carry forward: Code format and acquisition timing.
Exercises
- LSB: 10-bit ADC with 2.048 V span.
- Code: 0.500 V under that floor-bin convention.
- DAC: Code 512 under the same reference and bit count.
- Acquisition: Minimum for 10 bits and RC = 0.1 µs.
- Alias: Baseband alias of 800 Hz sampled at 1 kS/s.
Answers and reasoning
- Answer: 2 mV.
- Answer: 250.
- Answer: 1.024 V.
- Answer: µs.
- Answer: 200 Hz.
Continue
- Previous: Logic Interfacing
- Next: Computers, Controllers, and Data Links
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.