E11 — ADC1 at 5 MS/s
| ID | E11 |
| Date | 2026-12-02 |
| Status | done |
| Decisions | D87 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
| Firmware + results | fw/tests/2026-12-02-9-adc-5msps (sources, binaries, results.txt) |
| Scripts | adc5m.py |
Summary: ADC clock = USBHS PLL / 6 = 80 MHz: 4.996 MS/s measured two ways, but DC noise sd 3–9 LSB with this clock source.
What
ADC1 clocked from the USBHS PLL at 80 MHz (RM maximum) with 3.5-cycle sampling (ADC_SMP_SEL); rate, accuracy and noise.
Results
- 4.9956 MS/s by SysTick, 4.999 MS/s from the RP 100 kHz square wave; every setting within 0.1 % of f_ADC/(smp + 12.5), up to 5.71 MS/s.
- DC noise sd 3–9 LSB with the USBHS-PLL clock at every sample time, vs 0.5 LSB from HCLK/2 at 7.5 cycles (2.4 MS/s): ≈ 9–10 effective bits.
- Unbuffered DAC + ADC buffer off at 5 MS/s: errors up to 365 LSB (source impedance vs 44 ns sampling).
Lesson
A rate is only half the test: measure DC noise against a slow reference and vary one factor at a time.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.