5.5.4 · HinglishEmbedded Systems & Real-Time Software

ADC - DAC — resolution, sampling rate, Nyquist

1,522 words7 min readRead in English

5.5.4 · Coding › Embedded Systems & Real-Time Software


1. Resolution — amplitude ko slice karna

YEH FORMULA KYUN? Har bit ek yes/no switch hai. independent binary switches ke saath aap se tak count kar sakte ho. Toh poora input span ko levels mein divide kiya jaata hai jo gaps se alag hote hain.


2. Sampling rate — time ko slice karna

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

3. Nyquist — speed limit


4. DAC — wapas rakhna


5. Common mistakes


Recall Feynman: ek 12-saal ke bacche ko explain karo

Socho ek moving wave ko draw karna by apni pencil paper par thodi thodi der mein dot karke. Resolution = tumhare paper par kitni height-lines hain (zyada lines = smoother heights). Sampling rate = tum kitni baar dot karte ho. Agar koi wave fast upar-neeche hilti hai lekin tum bahut slow dot karo, toh tumhare dots ek alag, slow wave banate hain — yeh ek magic trick hai jise aliasing kehte hain jahan fast wave ek slow wave ki tarah chhupta hai. Rule: kam se kam har wiggle mein do baar dot karo. DAC woh dost hai jo tumhare dots ko wapas ek smooth wave mein jodta hai.


Flashcards

ADC resolution (bits) kya determine karta hai?
Amplitude precision — levels ki sankhya aur step size LSB .
N-bit ADC ke LSB ka formula?
.
3.3 V ref ke saath 12-bit ADC ka LSB?
mV ().
Nyquist criterion batao.
ek band-limited signal ko perfectly reconstruct karne ke liye.
Nyquist frequency kya hai?
— sampling rate par representable highest frequency.
Aliasing kya hai?
se upar ka high-frequency content fold back ho jaata hai aur ek lower frequency ki tarah dikhta hai.
1000 Hz par sample kiya 1800 Hz ka alias frequency?
Hz.
Aliasing kaise rokein?
ADC se pehle anti-aliasing low-pass filter (cut-off below ).
CD 40 kHz ki jagah 44.1 kHz kyun use karta hai?
Anti-alias filter ke roll-off ke liye kHz se upar margin.
N-bit ADC ka ideal SNR?
dB (≈6 dB per bit).
Quantization noise ke liye kyun?
Width ki uniform distribution ka variance hota hai.
DAC ka reconstruction filter kya karta hai?
Zero-order-hold staircase ko smooth karta hai, se upar ki spectral images hataata hai.
Kya bits add karne se aliasing fix hoti hai?
Nahi — bits amplitude precision fix karte hain; aliasing ke liye faster ya filter chahiye.

Connections

  • Quantization Noise & SNR
  • Anti-Aliasing Filters
  • Zero-Order Hold & Reconstruction
  • Fourier Transform & Frequency Domain
  • Fixed-Point vs Floating-Point in Embedded DSP
  • Successive Approximation vs Sigma-Delta ADC
  • Sensor Interfacing on Microcontrollers

Concept Map

sampled by

produces

reversed by

amplitude sliced by

time sliced by

gives 2^N codes

rounding causes

sets limit

constrained by

if violated

defines

Continuous real-world signal

ADC

Discrete number

DAC

Resolution N bits

Sampling rate fs

LSB step Vref/2^N-1

Quantization error

SNR 6.02N+1.76 dB

Nyquist fs greater than 2 fmax

Aliasing

Nyquist freq fs/2