guruthree / mac-se-video-converter

Convert video from a Mac Plus/SE/Classic to a VESA VGA signal using a Raspberry Pi Pico
77 stars 5 forks source link

Doing the reverse: VGA to Mac SE video #2

Closed jmacato closed 2 months ago

jmacato commented 1 year ago

Hey @guruthree, this is quite the exciting project! I do wonder though if it's possible to do the reverse, to make VGA input drive the mac se's CRT display?

guruthree commented 1 year ago

Thanks! I think it should be possible to do VGA to compact Mac CRT, but there are a couple challenges I see:

jmacato commented 1 year ago

Thanks for the quick reply!

WRT Resolution part 1: Sadly i dont think it's quite tolerant of out-of-spec signals as far as my testing has gone.. I was thinking of just "faking" a VGA resolution and perhaps just cutting off the extra pixels. But then again that might not sit well with other folks (personally i'll be fine with it haha).

guruthree commented 1 year ago

Annoying that the analgoue board circuitry isn't too flexible, but I'm also not surprised considering it's driven by TTL logic (as opposed to an analogue signal). I think there might be some free space in the vertical blank that could be used to eke out a bit more vertical resolution and get closer to 4:3 (512xz384) though.

Chopping off part of the frame to go from 640x480 to 512x342 should be a pretty easy manipulation for the pico to do. Something like emulator output could be made to run in just the visible portion of the screen and show up perfectly. Although for that specific use case it would probably be easier to get the emulator to dump its framebuffer over USB serial to the Pico for it to drive the CRT than to go through the extra steps of VGA capture. The more specific the application the more steps can be saved!

jmacato commented 1 year ago

Annoying that the analgoue board circuitry isn't too flexible, but I'm also not surprised considering it's driven by TTL logic (as opposed to an analogue signal). I think there might be some free space in the vertical blank that could be used to eke out a bit more vertical resolution and get closer to 4:3 (512xz384) though.

Yeah sadly it's quite sensitive when it comes to signal spec, i was a little too far off with my RPi4 DPI settings and it fried the board after a while.

I saw this project on 68kmla but im not sure about the inductance/spec of the flyback bypass he did there: https://68kmla.org/bb/index.php?threads/compact-mac-retina-display.2847/page-4#post-409397

Chopping off part of the frame to go from 640x480 to 512x342 should be a pretty easy manipulation for the pico to do.

Yeah, although what i have in mind is to allow at least 640x480 input from arbitrary source, so that folks could use any device for the CRT but the emulator idea is quite interesting as well :D