Lesson · Problem 15
Connect an ADC
Give each ADC supply and the reference its own capacitor, and keep the clock out of the analog corridor.
Try it
Top view. The dashed box is the analog corridor SPI must not enter. Supply and reference capacitors are placement, not a noise measurement. The ground pour stays one piece.
AVDD and DVDD each get 100 nF within 4.0 mm. VREF gets 1 µF within 5.0 mm. The 47 Ω and the 1 nF sit at AIN, within 5.0 mm of that pin. SCLK crosses the corridor. The route is shorter and it fails on purpose. A slot in the ground pour is not the alternative. That slot makes the return walk around the hole. The model’s code at 1.8 V is round(1.8 / 3.3 × 4095) = 2234, and the worst miss must be within 2 counts. That is not an ENOB.
Why this comes up
The amplifier you just set is now a source. The converter turns that voltage into a code by comparing it with a reference. Noise on the reference, or a clock edge beside the input, moves the code even when the amplifier was right.
The idea
This model’s code is round(VIN / 3.3 V × 4095), half away from zero, clamped to 0..4095. The three check points are 0.6 V → 745, 1.8 V → 2234, and 3.0 V → 3723. The worst miss has to be within 2 counts. SPI at 8 MHz is written on the card and is not graded. There is no ENOB and no lab noise floor.
AVDD and DVDD each get 100 nF from 3.3 V to ground, within 4.0 mm routed of that pin. VREF gets 1 µF from 3.3 V to ground, within 5.0 mm of the reference pin. The input is a separate 47 Ω into AIN and a 1 nF from AIN to ground, each AIN pad within 5.0 mm of the pin. One shared capacitor is not those three parts.
The ground pour stays one piece on L2. Coverage of the mixed region has to be at least 0.95. A slot cut to “separate analog and digital” forces return current around the slot, which is the return-path problem from earlier, now under a measurement. SPI may touch the analog corridor’s outline. A centreline that enters it fails. Face AIN toward the amplifier and the SPI pads toward the header.
code = round(VIN / 3.3 V × 4095)
745, 2234, and 3723 are the three published codes. The window is ±2 counts. The formula is this model, not a measurement of a physical converter.
Why this matters on a real board
On a real converter, reference noise is gain error on every code, and a clock beside the sample is energy in the result. Cutting the ground pour to isolate the analog side usually makes the digital return take a long path under the analog traces. The layout fix here is placement and routing over a continuous L2 ground, not a split plane. The lesson does not claim a measured SNR.
A common mistake
Running SCLK through the analog corridor because that path is shorter.
The corridor is the region the clock must not enter. A shorter route that crosses it fails on purpose. Touching the boundary is allowed. Entering is not.
Key takeaways
- The code is the input compared with 3.3 V, on a 12-bit scale, within 2 counts.
- AVDD, DVDD, and VREF each get the capacitor named for that pin.
- Keep SPI out of the corridor, and keep L2 ground in one piece.
Question 1 of 2
The input is 1.8 V and the reference in the model is 3.3 V, on a 12-bit scale. What code should you expect?
You are ready to place the 47 Ω and 1 nF at AIN, a 100 nF at each supply pin, 1 µF at VREF, and route SPI around the corridor over one L2 ground pour.