B3 — ADC1 and HSADC speed
| ID | B3 |
| Date | 2026-12-02 |
| Status | done |
| Decisions | D79 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
| Firmware + results | fw/tests/2026-12-02-3-adc-hsadc-speed (sources, binaries, results.txt) |
| Scripts | adcspeed.py |
Summary: ADC1 1.714 MS/s (DMA), HSADC 19.1 MS/s, step response and noise.
What
Maximum conversion rates of ADC1 and the HSADC with DMA, step response with the RP square wave, DC noise.
Results
- ADC1 at HCLK/2 = 24 MHz: 1.714 MS/s, each sample-time code at its theoretical rate; a full step settles in 1 sample.
- CPU polling tops out at ≈ 360 kS/s: use DMA.
- HSADC at 96 MHz: 19.1 MS/s (5 clocks per conversion); 192 MHz runs but returns garbage.
Lesson
A rate that does not change with the prescaler means the CPU is the limit; check a rate two independent ways.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.