Skip to content

Conversation

@thejpster
Copy link
Member

All the timing periods (front porch, sync pulse, back porch, visible video) were one clock cycle too short thanks to an off-by-one error when I was counting the overhead of the timing PIO function.

This is what led to rolling video noise and slightly fuzzy video capture - monitors and capture devices were trying to grab 640 pixels out of a period that was only 639 clock cycles in length. Now the video looks much sharper.

Also nudges the video left a bit.

@thejpster
Copy link
Member Author

PS: cargo clippy hates all our static mut shenanigans.

All the timing periods (front porch, sync pulse, back porch, visible video) were one clock cycle too short thanks to an off-by-one error when I was counting the overhead of the timing PIO function.

This is what led to rolling video noise and slightly fuzzy video capture - monitors and capture devices were trying to grab 640 pixels out of a period that was only 639 clock cycles in length. Now the video looks much sharper.
Makes my VGA to HDMI converter a bit happier. Need to check with an oscilloscope to see whether it's right or not.
@thejpster thejpster added this pull request to the merge queue Dec 19, 2024
Merged via the queue into develop with commit e7e72c9 Dec 19, 2024
6 checks passed
@thejpster thejpster deleted the fix-pixel-timings branch December 29, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants