dvi_out_hstx_encoder example
I have just tried out the dvi_out_hstx_encoder example in pico-examples. According to my desktop monitor the output is 640x480 at 72Hz but the comment in the source code says it should be 60Hz. The problem is that not all monitors support 72Hz - including the new raspberry pi monitor.
Explicitly setting the system clock to 125MHz (see below) produces the expected 640x480 at 60Hz
Setting the HSTX clock independently of the system clock would be a better solution but it looks quite complicated. Is there a "set_hstx_clock_khz" API function somewhere that would do this?
I have just tried out the dvi_out_hstx_encoder example in pico-examples. According to my desktop monitor the output is 640x480 at 72Hz but the comment in the source code says it should be 60Hz. The problem is that not all monitors support 72Hz - including the new raspberry pi monitor.
Explicitly setting the system clock to 125MHz (see below) produces the expected 640x480 at 60Hz
Code:
int main(void) { set_sys_clock_khz(125000, true); ...
Statistics: Posted by cjm42 — Fri Jan 17, 2025 9:47 pm