DEBUGMISSION 030 · ADC · Reference and scalingFoundational

The ADC Reading Makes No Sense

A calibrated transmitter and firmware disagree. Inspect the connector, ADC pin, raw code, reference and fitted resistors before rebuilding the conversion.

Requirements

Input range · 0–9 VADC · 12 bit / 4096 codesError target · ≤1%
  1. 01Rebuild the conversion
  2. 02Prove every scale factor
Circuit overview

Physical-to-code chain

Analog input to ADC code signal chainAn eight volt transmitter is divided by fitted resistors, converted by a twelve-bit ADC relative to VDDA, and scaled back into engineering units.INPUTInput captureR TOPFitted divider recordR BOTTOMFitted divider recordADC_IN12-BIT ADCCODE / 4096VREF = 3.300 VRESULTSCALE × 3.0ADC code × reference voltage ÷ 4096 × divider scale

The DMM values and raw code are prepared observations from one stable operating point. Change the interpretation, not the physical capture.

EVIDENCE INSPECTORReady to inspect

Authored measurement capture

Inspect and save the original case evidence before making a decision.

Select an artifact, inspect its contents, then save the observation.

Evidence notebook 0 saved

No evidence saved yet. Measure, inspect the result, then save useful observations.

Current task
Current task

First inspect and save every original-case artifact to unlock the decision.

Step 1 of 2

Rebuild the conversion from evidence

0 evaluated decisions · Draft and evidence saved locally
Technical references

Reference boundary

The ADC converts input voltage relative to its actual reference. ST's accuracy guidance recommends characterizing supply/reference behavior and provides the internal reference channel as a way to compensate VDDA variation on supported devices.

ST AN2834 · ADC accuracy and reference behavior