E3 — DAC → ADC loopback
| ID | E3 |
| Date | 2026-12-02 |
| Status | done |
| Decisions | D82 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
| Firmware + results | fw/tests/2026-12-02-5-dac-adc-clocks (sources, binaries, results.txt) |
| Scripts | dacadc.py |
Summary: Unbuffered DAC INL ±1–3 LSB, buffered ±10 LSB bow; ADC1 calibration is bimodal (≈ 15 LSB).
What
DAC1/DAC2 on PA4/PA5 read by ADC1 (RP lines released), full 4096-code ramps, 16 readings per code.
Results
- Unbuffered DAC: INL ±1–3 LSB (128-code means); buffered: ±10 LSB bow, run-dependent.
- ADC1 calibration lands on one of two offsets (≈ 2040 or ≈ 2055 on the same input).
Lesson
Know the noise floor before quoting DNL; hold everything fixed but one thing.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.