Electronics & Circuits · Study deck
Analog-Digital Boundaries: Signal Contracts
An ADC value is not trustworthy until its bandwidth, filter, rate, and time window are named.
Voltage Vera is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Specify an analog-to-digital contract with bandwidth, filter, rate, and duration.
- Diagnose aliasing caused by marginal rates and missing filters.
- Distinguish amplitude quantization from time sampling in an IoT signal chain.
- Explain why digitizing near the sensor can make a long cable more robust.
Major section
Analog-Digital Signal Boundary Contracts
Sampling rate means how often a signal is measured.
- Firmware is the code stored on the device.
- Modulation means changing a signal to carry or control information.
- Pulse width modulation (PWM) is a timed on-and-off output used to imitate a changing level.
- These trials do not capture every source of drift or timing error.
Major section
Analog-Digital Signal Boundary Contracts (continued)
A microcontroller is digital: it works with a finite set of numbers, updated at discrete instants.
- The boundary must decide what range, step size, noise margin, and sampling rate are acceptable before firmware treats the value as truth.
- Here, 50.0 mV means 5.00°C of analog error but uses only 12.5% of a 400 mV digital margin.
- Quantization (amplitude) A continuous voltage is snapped to one of a finite set of levels.
Major section
Analog-Digital Signal Boundary Contracts (continued)
Almost every physical quantity a sensor measures — temperature, pressure, light, sound, acceleration — is analog: continuous in both time and amplitude, taking infinitely many values that change smoothly.
- An N -bit converter has 2^N levels, so the smallest step it can represent is one LSB.
- Sampling (time) The signal is measured only at discrete instants, fs times per second.
- Between samples, the digital record simply has no information.
- The amplitude side is a rounding contract.
Major section
Analog-Digital Signal Boundary Contracts (continued)
The boundary contract names those failure modes while the design is still reviewable.
- A digital HIGH/LOW is read with margin, so noise below that margin is rejected.
- The payoff: regeneration Each digital stage re-decides 0 or 1 and outputs a clean signal, so error does not accumulate.
- An analog chain has no such boundary.
Major section
Analog-Digital Signal Boundary Contracts (continued)
That agreement, plus margin, is the entire source of noise immunity.
- The boundary contract becomes easier to audit when its amplitude and timing decisions sit on one map.
- The dashed dependencies show why those choices cannot be isolated: sampling rate sets FFT resolution, while filtering improves SNR.
- Digital regeneration is a separate but related contract.
Major section
Analog-Digital Signal Boundary Contracts (continued)
The map therefore turns “digitize early” into a qualified rule—the analogue boundary still needs an anti-aliasing filter, and the chosen rate and bit depth must preserve the evidence the application needs.
- The contract is therefore not "analog bad, digital good." It is a handoff rule.
- At the ADC, it deliberately chooses what amplitude steps and time points will survive.
- That error is acceptable only if it is smaller than the measurement tolerance.
Major section
Analog-Digital Signal Boundary Contracts (continued)
If any one of those is implicit, teams debug symptoms instead of the boundary.
- After the ADC, the design must protect codes, timestamps, calibration metadata, and validity flags.
- A later dashboard can only be as trustworthy as the weakest boundary in that chain.
- Firmware means the program stored on a device to control its hardware.
Major section
Analog-Digital Signal Boundary Contracts (continued)
A "digital" signal is still physically an analog voltage — a 3.3 V logic HIGH is a real 3.3 V.
- If they are explicit, the oscilloscope trace, ADC register value, packet field, and cloud record can be compared against the same contract.
- Digitizing does not make a signal perfect — it makes its error bounded and known.
- The bytes are not wrong; the decoder forgot signedness, width, byte order, or scale.
Major section
Analog-Digital Signal Boundary Contracts (continued)
An ideal unipolar ADC with N bits and reference Vref maps a range of input voltages onto 2^N codes, so the unavoidable conversion uncertainty is about half a code step.
- A receiver does not preserve the exact analog waveform on the wire; it promises to classify voltages below the LOW threshold as 0 and voltages above the HIGH threshold as 1.
- Noise that stays inside the margin is discarded at the decision point, and the next driver emits a fresh clean LOW or HIGH.
- The mathematical gist.: A 12-bit two's-complement field has 4,096 codes.
Major section
Analog-Digital Signal Boundary Contracts (continued)
Noise that crosses the threshold is no longer "small analog error" — it has become a wrong bit, which is why checksums, retries, and timing margins still matter.
- Each amplifier, connector, and long trace adds its own noise, offset, and distortion, and those errors accumulate with every stage — there is no point at which the signal is re-decided and cleaned.
- An analog-to-digital converter means the circuit that turns a measured voltage into a number; it is shortened to ADC.
- Signed decoding fails when firmware performs the right operation at the wrong stage.
Deck summary
Key takeaways
Sampling rate means how often a signal is measured.
- A microcontroller is digital: it works with a finite set of numbers, updated at discrete instants.
- Almost every physical quantity a sensor measures — temperature, pressure, light, sound, acceleration — is analog: continuous in both time and amplitude, taking infinitely many values that change smoothly.
- The boundary contract names those failure modes while the design is still reviewable.
- That agreement, plus margin, is the entire source of noise immunity.
Retrieval practice
Recall check 1 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q1Why do robust IoT sensor designs convert an analog reading to digital as close to the sensor as possible?
Show answer
Answer: C Digitizing at the source captures the value before a long wire adds noise; digital signals are read with margin and regenerated, so they do not degrade the way an analog voltage does.
Retrieval practice
Recall check 2 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q2A digital signal is called 'noise-immune,' yet the wire physically carries ordinary analog voltages. What actually provides the immunity?
Show answer
Answer: A The analog voltage still exists, but sub-margin perturbations do not change the decoded bit, and regeneration at each stage stops error from accumulating.
Retrieval practice
Recall check 3 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q3A 12-bit two's-complement temperature sensor (0.0625 degC/LSB) returns 0xFFF, but the firmware prints +255.94 degC instead of a small negative temperature. What went wrong?
Show answer
Answer: A 0xFFF is -1 in 12-bit two's complement (-0.0625 degC). Read as unsigned it is 4095, and 4095 x 0.0625 = 255.94 degC. The fix is to sign-extend bit 11 before scaling.
Retrieval practice
Recall check 4 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q4What happens when you sample a 2 kHz signal at 3 kHz (below the Nyquist rate of 4 kHz)?
Show answer
Answer: B The Nyquist minimum is 2 x 2 kHz = 4 kHz.
Retrieval practice
Recall check 5 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q5An audio IoT device samples a microphone signal at 8 kHz (telephone quality). A nearby machine emits a 6 kHz tone that appears in the recorded audio as a 2 kHz tone. What phenomenon is this, and how should it be prevented?
Show answer
Answer: B This is classic aliasing.
Retrieval practice
Recall check 6 of 6

Voltage Vera says: answer from memory, then check your reasoning.
Q6Which of the following best describes the purpose of oversampling in IoT sensor design?
Show answer
Answer: C Oversampling provides margin for anti-aliasing filter roll-off and improves effective SNR by ~3 dB per doubling of the sampling rate.
Print reference
Answers 1 of 2
Answer key.
- C · Digitizing at the source captures the value before a long wire adds noise; digital signals are read with margin and regenerated, so they do not degrade the way an analog voltage does.
- A · The analog voltage still exists, but sub-margin perturbations do not change the decoded bit, and regeneration at each stage stops error from accumulating.
Print reference
Answers 2 of 2
Answer key.
- A · 0xFFF is -1 in 12-bit two's complement (-0.0625 degC). Read as unsigned it is 4095, and 4095 x 0.0625 = 255.94 degC. The fix is to sign-extend bit 11 before scaling.
- B · The Nyquist minimum is 2 x 2 kHz = 4 kHz.
- B · This is classic aliasing.
- C · Oversampling provides margin for anti-aliasing filter roll-off and improves effective SNR by ~3 dB per doubling of the sampling rate.