E1 — Gapless DVP capture of the RP counter
| ID | E1 |
| Date | 2026-12-02 |
| Status | done |
| Decisions | D81 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
| Firmware + results | fw/tests/2026-12-02-4-dvp-gapless (sources, binaries, results.txt) |
| Scripts | dvpcap.py |
Summary: CH32 DVP + DMA ping-pong captures the RP PIO counter bit-exact and gapless up to 75 MS/s.
What
RP PIO counter (D0–D9 + PCLK) → capture switch → CH32 DVP in 10-bit JPEG mode with DMA ping-pong; check for gaps.
Results
- Bit-exact 64 K captures from 1 to 75 MHz; 2 s streams at 10/37.5/50/75 MS/s with 512–4096-sample chunks: 0 bad chunks.
- Storing starts only on an HSYNC rising edge after the VSYNC frame start: sequence
hv 0 1, arm,hv 0 0,hv 1 0. - At HCLK 48 MHz chunks must be ≥ 512 samples at 75 MS/s (polling re-point loop).
Lesson
When a peripheral stays silent, flip one input at a time while it is armed.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.