ADC and DAC Fundamentals

College Depth 163 in the knowledge graph I know this Set as goal
analog-to-digital digital-to-analog sampling quantization resolution nyquist sample-and-hold r2r-ladder flash-adc successive-approximation

Core Idea

Analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) bridge the continuous analog world and discrete digital processing. A DAC converts an N-bit digital code to one of 2^N discrete voltage levels; the R-2R ladder DAC uses a resistor network to weight each bit by powers of two, producing V_out = V_ref * (digital code) / 2^N. An ADC performs the inverse: sampling the analog signal at discrete time intervals (sample rate f_s), holding each sample constant (sample-and-hold), and quantizing it to the nearest digital code. The Nyquist-Shannon theorem requires f_s > 2 * f_max to avoid aliasing — frequency components above f_s/2 fold back into the signal band as distortion. Resolution (number of bits N) determines the smallest detectable voltage change (LSB = V_ref / 2^N) and the signal-to-quantization-noise ratio (SQNR = 6.02*N + 1.76 dB). Common ADC architectures trade speed for resolution: flash converters (fastest, uses 2^N - 1 comparators), successive-approximation (moderate speed, one comparator with binary search logic), and sigma-delta (highest resolution, uses oversampling and noise shaping). Each additional bit of resolution doubles the number of quantization levels and improves SQNR by approximately 6 dB.

How It's Best Learned

Build an R-2R ladder DAC and measure the output voltage for each binary input code to verify the binary weighting. Then study the successive-approximation ADC as a binary search: the internal DAC generates a comparison voltage, the comparator decides if the input is above or below, and the logic sets or clears each bit from MSB to LSB. Sample a sine wave at various rates relative to its frequency to observe aliasing when the Nyquist criterion is violated.

Common Misconceptions

Explainer

The real world is analog — temperatures, pressures, sounds, and voltages are continuous quantities that can take any value in a range. Digital processors, on the other hand, only understand discrete binary numbers. Analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) are the translators that let digital systems sense and control the physical world. You already know from digital logic that a collection of N bits can represent 2^N distinct states. A DAC exploits that directly: each unique N-bit binary code maps to one of 2^N discrete output voltage levels, uniformly spaced between 0 and V_ref. The smallest possible voltage step is one LSB (least significant bit) = V_ref / 2^N.

The R-2R ladder DAC makes this concrete using only two resistor values. Each bit position contributes a current that is exactly half the contribution of the bit above it — MSB contributes V_ref/2, the next bit V_ref/4, and so on — because the R-2R network binary-weights the currents through each node. Summing these currents through a final resistor gives a voltage proportional to the binary code. This is the same weighted-sum idea you know from binary number representation: each bit position has a value that is a power of two relative to the LSB.

An ADC runs the process in reverse, but it must solve a harder problem: it needs to represent a continuously varying analog voltage as a discrete number, repeatedly over time. This requires two steps. First, sampling — the analog voltage is measured at regular intervals at rate f_s. Second, quantization — each sampled voltage is rounded to the nearest of the 2^N discrete code levels. The Nyquist-Shannon theorem constrains sampling rate: if the signal contains frequency components up to f_max, you must sample at f_s > 2·f_max or else aliasing occurs — high-frequency components fold back into the signal band, indistinguishable from real low-frequency content. This is why your phone records audio at 44.1 kHz: human hearing tops out near 20 kHz, and 44.1 kHz satisfies the Nyquist criterion with margin.

Resolution and speed trade off across ADC architectures. The flash ADC uses 2^N − 1 comparators to evaluate all possible code levels simultaneously — blindingly fast but exponentially expensive in hardware; 8-bit flash ADCs are feasible, 16-bit ones are not. The successive-approximation register (SAR) ADC performs a binary search in N clock cycles: compare input to V_ref/2, set or clear the MSB, then bisect the remaining range — moderate speed, one comparator, and well-suited to the 8–16 bit range common in microcontrollers. Sigma-delta ADCs oversample at many times f_s and use noise shaping to push quantization noise out of the signal band, achieving 16–24 bit resolution at audio frequencies but too slowly for fast signals. Understanding these architectures means knowing that "higher resolution" and "faster conversion" are not independently selectable — physics and cost force a choice.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIterated Integrals and Fubini's TheoremDouble Integrals in Cartesian CoordinatesDouble Integrals over Rectangular RegionsDouble Integrals in Polar CoordinatesDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsTriple Integrals in Cartesian CoordinatesTriple Integrals in Cylindrical and Spherical CoordinatesChange of Variables and the Jacobian DeterminantApplications of Triple Integrals: Volume and MassVector Fields and Their RepresentationsLine Integrals of Vector FieldsGreen's TheoremSurface Integrals and Flux of Vector FieldsSurface Integrals and Flux of Vector FieldsDivergence Theorem: Flux and OutflowDivergence TheoremElectric FluxGauss's LawConductors in Electrostatic EquilibriumCapacitance and CapacitorsDielectricsDielectric Constant and Relative PermittivityElectric Field Inside Dielectric MaterialsDielectric Materials and PolarizationDielectric Susceptibility and PermittivityEnergy Density in Electric FieldsElectric Current and Current DensityElectrical Resistance and ResistivityOhm's Law and Circuit ElementsElectromotive Force (EMF) and BatteriesKirchhoff's Circuit Laws: Voltage and CurrentDC Circuit Network Analysis MethodsTransient Response in RC CircuitsRC CircuitsLC and RLC CircuitsAC Circuits: FundamentalsImpedance and ReactanceAC Power and ResonanceElectromagnetic WavesThe Electromagnetic SpectrumBlackbody Radiation and Planck's LawPhotoelectric EffectThe Photon: Light as QuantaCompton ScatteringWave-Particle Dualityde Broglie WavelengthHeisenberg Uncertainty PrincipleWavefunction and the Born RuleThe Schrödinger EquationState Vectors and WavefunctionsQuantum SuperpositionQuantum EntanglementBell Theorem and Bell InequalitiesPostulates of Quantum MechanicsScattering TheoryIntroduction to Scattering TheoryPartial Wave Analysis in ScatteringSpin Angular MomentumElectron Spin and Intrinsic Magnetic MomentStern-Gerlach Experiment: Spin Quantization and MeasurementElectron Diffraction and Matter Wave PropertiesDavisson-Germer Experiment: Crystal Diffraction of ElectronsElectron Diffraction and Matter Wave InterferenceWavefunctions and Probability Density InterpretationQuantum Superposition and Linear Combinations of StatesQuantum Operators and ObservablesCanonical Commutation Relations and UncertaintyHeisenberg Uncertainty Principle and Measurement LimitsTime-Independent Schrödinger Equation and EigenvaluesHydrogen Atom in Quantum MechanicsSpectral Lines and Energy TransitionsSelection Rules for Atomic TransitionsLS and jj Coupling Schemes in Multi-Electron AtomsPauli Exclusion Principle and Antisymmetric WavefunctionsElectron Configuration and the Aufbau PrincipleThe Periodic Table and Atomic Electronic StructureThe Periodic TableElectron ConfigurationPeriodic TrendsIonization EnergyIonic BondingLewis StructuresPolar Covalent Bonds and Dipole MomentsClassification of Bonds: Ionic, Covalent, and MetallicMetallic Bonding and Properties of MetalsCrystal Structures and Solid PropertiesCrystal Structure and Unit CellsElectrical Properties of MaterialsDiode Characteristics and ModelsDiode Circuit ApplicationsBipolar Junction Transistor (BJT) FundamentalsMOSFET FundamentalsDigital Logic Gates BasicsADC and DAC Fundamentals

Longest path: 164 steps · 883 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.