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

Real 320x240 output #3

Open
nmur opened this issue Dec 17, 2023 · 2 comments
Open

Real 320x240 output #3

nmur opened this issue Dec 17, 2023 · 2 comments

Comments

@nmur
Copy link

nmur commented Dec 17, 2023

Hi, thank you for your awesome projects!

I have just tried running the PicoinoMini Monoscope, and it looks like it doubles the 320x240 output to give a 640x480 signal. I understand that this is the common minimum requirement for VGA monitors.

I am interested in displaying video on an old SD CRT TV, which can only display 15kHz signals. Is it possible to configure the library to output real 320x240? Or would that require modification?

Thank you!

@Panda381
Copy link
Owner

My earlier project was a PicoVGA display driver that also supported TV interlaced output https://www.breatharian.eu/hw/picovga/index_en.html . It is, however, difficult to use and does not yet work fully with the PicoLibSDK library. Implementing TV interlaced mode is quite difficult, but it should be quite easy to adjust the minivga library timings for TV output without TV interlacing support. In the _display\minivga_config.h file, find #elif WIDTH == 320 and there adjust MINIVGA_VMUL to 1, and recalculate the timings for TV video mode. I don't know exactly, but if MINIVGA_CLKDIV is changed to 4 (this will halve the horizontal timing), then just changing the vertical setting of MINIVGA_V* to half might be enough, and that could very approximately match the NTSC signal. For more accurate timing, everything would have to be calculated more accurately.

@nmur
Copy link
Author

nmur commented Dec 19, 2023

Thank you for your reply!

It looks like this yields a signal that is in range of a SD TV, which is great.
image

As you predicted, the timings are slightly off. For NTSC SD video it would be expected to have a horizontal frequency of ~15.7kHz, and a vertical frequency of 60Hz.
image

I can continue to tinker with it from here and try to calculate more accurate timings.

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

No branches or pull requests

2 participants