E2 — CH32 USB2 high-speed on J1
| ID | E2 |
| Date | 2026-12-02 |
| Status | in progress: clock prerequisite done, needs J1 cabled |
| Decisions | D84 (DECISIONS.md) |
| Board | #1 (rev A, 12 MHz crystals) |
Summary: USBHS PLL fed from PLLCLK/8 = 24 MHz gives a correct 60 MHz UTMI clock on the 12 MHz board; device firmware pending.
What
480 Mbps USB device on J1 (USBHS PB8/PB9 through the TS3USB221). Step 1: a valid USBHS PLL reference on rev A.
Results
- UTMI clock = 60 MHz × f_in / f_ref (checked with deliberately wrong settings on MCO): PLLCLK/8 = 24 MHz with REFSEL 24 MHz is correct.
- RCC USBHS_PLLRDY sets after 171 µs for every setting, right or wrong: not a validity check.
- Next: USBHS bulk device firmware and throughput, once J1 is cabled to the PC.
Measurements: fw/tests/2026-12-02-6-sd-stream-clocks/e2_pll.txt.
Lesson
A ‘ready’ flag is not a measurement: route the clock out and count it.
Chip facts and numbers: fw/LEARNINGS.md. All experiments: index.