Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pixel timings #114

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Fix pixel timings #114

merged 2 commits into from
Dec 19, 2024

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.

1 participant