TV menu: the PRO's STV9426 crystal is 12 MHz, so there is room for a higher OSD pixel clock at 1024p-1200p
- Firmware version: GBS-Control 3.0.0-beta4 (built from v3.0.0-beta4, reports 3.0.0-dev0), ADV Controller 3.0.0
- Board: GBSC PRO (GBSC-AV-IR v1.1)
- Source / input: Composite, with the ADV7391's own colour bars as the picture (no console)
- Output resolution and display: 480p, 720p, 960p, 1024p, 1080p, 1200p; recorded with an HDMI capture card
The hardware fact
STV_XTAL_HZ in pro/drivers/stv9426-timing.h is 8 MHz, but the crystal on U5's XTAL pins is a 12 MHz part: Y2,
between C7 and C8 beside U5, is marked X12.000 MHz05 (photo 1). U5 is marked "TV9426 ... LAYSTA".
With FM 10 the high frequency is 2 · (10 + 3) · 12 MHz = 312 MHz, not 208 MHz.
FM 10 is still the right value. The datasheet (§VIII.1) asks for the high frequency to be near 200 MHz and greater
than 6 × the pixel frequency. With STV_XTAL_HZ set to 12 MHz, stvFm() gives FM 6 (216 MHz, 4.8 × a 45 MHz pixel
clock), and at 960p the menu breaks up into streaks across the whole width. At FM 10 (6.9 ×) it is clean. So only the
assumption behind the pixel limit changes, not the register value.
The idea
stvWithinPll() stops at 45.5 MHz, partly from "high frequency ≥ 4.5 × pixel" worked out from 208 MHz. With the real
312 MHz the datasheet's 6 × rule allows 52 MHz, so the limits left are FPXL ≤ 50 MHz (electrical characteristics) and
your TV test (shimmering edges at 49.8 MHz). A higher cap adds cells per line at the fastest outputs, so the 30-cell
menu takes a smaller share of the line there:
| Output | Now (45.5 MHz) | Cap 48 MHz | Cap 52 MHz |
|---|---|---|---|
| 480p, 720p | LD 63 | LD 63 | LD 63 |
| 960p | 45.4 MHz, LD 62, 48 % | 46.1 MHz, LD 63, 47 % | 46.1 MHz, LD 63, 47 % |
| 1024p | 45.3 MHz, LD 58, 51 % | 47.6 MHz, LD 61, 48 % | 49.1 MHz, LD 63, 47 % |
| 1080p | 45.4 MHz, LD 55, 54 % | 47.8 MHz, LD 58, 51 % | 51.8 MHz, LD 63, 47 % |
| 1200p | 45.3 MHz, LD 50, 59 % | 48.0 MHz, LD 53, 56 % | 51.5 MHz, LD 57, 52 % |
(% = the menu's share of the whole line, 30 / (LD + 1).)
What I tried
Beta4 with only the pixel limit in stvWithinPll() changed (FM stays 10): menu opened with the remote's MENU key,
150 frames recorded per output and build (photo 2):
- 48 MHz: every output clean and steady; at 1200p the menu is 5 % narrower (285 vs 300 capture pixels).
- 52 MHz: also clean and steady on the capture, including 1080p at 51.8 MHz, above the 50 MHz rating.
- In every case the menu sits at one position in every frame, with the same frame-to-frame variation as stock (0.1 % of its pixels).
By eye on an LCD monitor (HP 27mq, 1200p native, over HDMI) the menu also looks clean at 1080p and 1200p with the 52 MHz build: no shimmering on the letter edges. Not checked: a TV (where you saw the 49.8 MHz shimmer), a CRT, other boards. Given that and the 50 MHz rating, 48 MHz looks like the safe value; 52 MHz is "works on this board and monitor".
If you want it as a pull request
A small change in stvWithinPll(), with the comment giving the 12 MHz crystal and the datasheet's 6 × rule, an
update to test_ld_stops_at_the_tested_pixel_clock (it pins 1080p at LD 55 and fails at 48 MHz; every other STV9426
test passes), and a line in the next beta's CHANGELOG section. FM, PP and the registers stay as they are.
Photo 1: Y2 (12.000 MHz) next to U5.
Photo 2: the TV menu at every output, stock / 48 MHz / 52 MHz.