Programmable crystal replacement (Si5351)
Odd crystal frequencies are hard to buy and expensive to have cut. This turns a CH32V003 (~$0.30, 8 pins) plus a common Si5351A breakout into a drop-in replacement: set the frequency once over USB, and the board comes up on that frequency every time it is powered, with no PC attached.
Typical uses: a 10.245 MHz IF crystal, an 11.0592 MHz baud-rate clock, a 3.579545 MHz colour burst, a 24.576 MHz audio master clock — anything the shop does not stock.
- Range 3.907 kHz – 133.333 MHz
- Accuracy better than 0.05 ppm — measured across 14 typical frequencies, worst case 0.044 ppm
- Outputs CLK0–CLK7, drive strength 2 / 4 / 6 / 8 mA
- 25 or 27 MHz reference with ppb correction, trimmable against a counter
- Setting stored in the MCU’s flash and restored on power-up
- Optional second frequency (B), selected by grounding pin 3 — e.g. a BFO switching USB/LSB
Source code and downloads: github.com/freetoair/ch32v003-si5351-xtal

