JDW

Administrator
Staff member
Founder
Sep 2, 2021
2,133
1,780
113
54
Japan
youtube.com
I am currently filming a new video about the Apple IIe Card in my Color Classic Mystic. As many of you know, I performed the VGA mod on this CC earlier this year, which boost the stock resolution of 512x384 to 640x480. Smaller pixels means everything is smaller, but the upside is you can run many games and other apps which require VGA as the minimum resolution. Even so, aging eyes line mine prefer larger pixels, and I always thought it would be neat if we could switch back to the stock 512x384 on the fly.

One thing I have learned in my testing of the Apple IIe Card is that it switches the CRT screen resolution to 560x384, regardless of whether you have the stock 512x384 or the 640x480 mod! The IIe Card proves it is possible to switch resolutions without having to hack anything on the hardware side. I don't think the IIe Card has any video control circuitry on it, and instead it is just sending some kind of command to the Mac to perform the resolution switching. Would any of you know if that command is something hard coded in ROM?

I'm just trying to brainstorm about whether it is possible to use the same trick to alter the resolution to something else, such as going from 640x480 to 512x384 and back. It would be SUPER NEAT if that was possible!
 
  • Like
Reactions: wottle

JDW

Administrator
Staff member
Founder
Sep 2, 2021
2,133
1,780
113
54
Japan
youtube.com
I especially want to hear from a Color Classic owner who also owns the IIe Card and who has done the high-voltage VGA mod, which changes the refresh to 67Hz. I suspect resolution switching even in that case would work fine, but that isn't something I've tested.

Now that I've done the 84V Mod, I can answer my own question.

I only did a single test with the IIe Card installed on the stock CC motherboard, and the Mac's resolution is now 640x480 with the 84V mod. But for reasons unknown, the left/right black borders are thicker than when I have the LC520 or LC575 boards installed. Meaning, I installed the 575 board initially and made my CRT adjustments so the black borders all around were between 5-6mm thick. But then when I put in the CC motherboard, those borders thicken to be like this...

IMG_7276.jpg


And when I enter IIe mode (A2robots game), the resolution does change to 560x384, but with even thicker borders all around as shown below.

IMG_7253.jpg


But the borders were thick even when I had the 68.4V VGA Mod and used my LC575 Board with the IIe Card...

1757248347330.png


Border thickness aside, resolution switching does indeed work when using the 84V mod.
 

BobDaAggie

New Tinkerer
Jan 15, 2025
11
2
3
I really enjoyed your video. I am currently gathering the components to also do the 84v mod. I wonder if a ROM hack would be able to give the option for the different resolutions.
 

kefkafloyd

New Tinkerer
May 22, 2023
3
1
3
Massachusetts
www.userlandia.com
But the borders were thick even when I had the 68.4V VGA Mod and used my LC575 Board with the IIe Card...

@JDW,

That's interesting. I assumed that a CC stock board to behave the same as a Mac TV/520/550/575 board in terms of standard Mac video timing (and thus geometry) at 640x480 67Hz. But now you've got me thinking.

First, some basics:
  • The CC (and Mac TV)'s video comes from the Spice and Tinker Bell ASICs, which are evolutions of the V8 gate array from the LC / LC II. These ASICs handle video generation, and they're descendants of the RAM-Based video used in the IIci.
  • The LC III replaced V8 with Sonora, which improved its video generation capabilities considerably. The Sonora was then refined into the Ardberg used in the LC 520/550 logic board.
  • The LC, LC II, LC III, CC, LC 520, and LC 550 all use the same Ariel RAMDAC. The Mac TV's Ariel+ is largely the same.
  • The LC 575 (and LC 475 / Quadra 605) use MEMCjr and the Antelope RAMDAC to generate video. This is a revision of the djMEMC video from Q800/650/610 which itself is a reimplementation of the Direct Access Frame buffer developed for the Q700/900.
I have a Color Classic and Mac TV with original logic boards. I also have an LC 550 logic board (Color Classic II is identical). My Color Classic has not been modded for 640x480 output. So I decided to run some tests:
  • I booted both the Color Classic and Macintosh TV with their original boards as sanity tests. My machines need some geometry adjustment, but it's good enough for a baseline. The image is largely centered on both.
  • I put the Mac TV and LC 550 logic boards into the Color Classic to verify their operation on the 10 inch display (which AFAIK the operating system and sense lines treat like an Apple 12 inch RGB display for the LC machines). The geometry on all three were identical at 512x384 60Hz, as far as I could see.
  • I put the Color Classic board in the Macintosh TV and the geometry was identical to the Macintosh TV board. This makes sense, because their video generation circuitry is largely the same.
  • I put the LC 550 logic board in the Mac TV and the geometry was different! The display was shifted over to the left by a noticeable amount (about a quarter of an inch). I didn't measure the actual size of the image.
When I was doing research on Mac built-in video and RAMDAC designs recently for "How Much VRAM Does a Mac Color Classic II Have, Anyway?" I couldn't get a definitive answer on whether Sonora or Andberg's improved video generation was based on efforts done for Direct Access Framebuffer and the djMEMC. The LC III was released at the same time as the Q800/650/610, but because it uses the Ariel RAMDAC can't use resolutions greater than 832x624. The Antelope or AC/DC RAMDAC is needed for higher resolutions. Since you say the LC 550 board behaves the same as an LC 575, I'm inclined to believe that the video circuitry in Sonora/Andberg is in fact related to DABF and similar to what's in djMEMC/MEMCjr.

After going back into the Apple Developer Notes for the IIci, LC, LC III, and LC 520, I discovered something I overlooked when doing that research: the timings for the 640x480 67 Hz mode are different on the LC! The LC III and LC 520 match the IIci with the following specs:

Dot Clock: 30.24 MHz
Dot Time: 33.07 ns
Line Rate: 35.00 KHz
Line Time: 28.57 microseconds
Frame Rate: 66.67 Hz
Frame Time: 15 ms

Here's the diagrams:

IIci:

mac IIci video timing.png


LC III:

mac LC III video timing.png


LC 520:

lc520 timings 1.png

lc 520 timings 2.png


However, the LC / LC II is clearly different. Although there is no Mac TV dev note and the Color Classic doesn't mention 640x480 mode, I have a hunch that their timings match LC / LC II based on what we've observed.

Dot Clock: 31.3344 MHz
Dot Time: 31.91 ns
Line Rate: 34.975 KHz
Line Time: 28.59 microseconds
Frame Rate: 66.62 Hz
Frame Time: 15.01 ms

mac LC video timing.png


Based on these timing diagrams the difference in geometry we're seeing when using a Color Classic or Macintosh TV logic board in a Hook chassis versus versus an LC 520/550/575 board makes perfect sense. The horizontal blanking interval on the LC / LC II / Color Classic / MacTV is longer, resulting in the image being shifted over to the right. Conversely, using a LC 520/550/575 board in an 84V modded CC will result in the image being shifted to the left.

A test I would try for sake of curiosity would be to take an AppleColor 13 inch or other monitor that's fixed at 640x480 67 Hz and do the following:
  • Hook it up to an LC III and adjust the geometry for a properly sized / positioned display.
  • Plug the monitor into a IIci. The geometry should be the same.
  • Plug the monitor into an LC 475 / Quadra 605. The geometry should be the same.
  • Plug the monitor into an LC / LC II. The geometry should change.
Now, the question is why does the LC / LC II / Color Classic / Mac TV have a longer horizontal blanking at 640 x 480 67Hz versus the rest of the Mac family? That I can't say. My hunch is that it has something to do with the Apple IIe mode when using a 640x480 monitor on an LC / LC II.

Now we're on to the next bit: the quirks of the Apple IIe card's video modes. The computers that are compatible with the card all have slightly different handling of that mode depending on what monitor (or all-in-one) is used.

LC / LC II / LC III / Color Classic / LC 475 / Quadra 605 with 12 inch RGB monitor: special 560x384 60Hz mode. Note: When the IIe card is used in the LC, LC II, and Color Classic the timing signal for this special mode is generated by the IIe card itself and transmitted over pin 31 of the PDS slot. This signal ignored in the LC III and later because the IIe video timing is generated by the Sonora/Andberg/MEMCjr ASICs.

Color Classic / CC II / LC 520 / LC 550 inside a Color Classic: special 560x384 mode (same as 12 inch RGB monitor).

LC 520/550: Apparently the Apple IIe mode on these machines is supposed to switch to an actual 560x384 60 Hz mode. I don't have a IIe card to test this. It won't take up the whole area of the display; it would be a bordered mode (similar to what JDW saw in his video). I'm wondering if this is an error, given how other headless LC machines operate with 640 x 480 67Hz monitors and Apple IIe cards, as we'll see below. But I am curious.

JDW, can you try the combination of LC520 board with Apple IIe card in your VGA modded CC and see what happens? I don't recall seeing you post it here or in the video. I'm curious if it behaves differently than your LC 575 board with Apple IIe card.

lc520 IIe 1.png

lc520 IIe 2.png


LC 575: Unlike the 520, the 575's tech note specifically declares that it uses the standard 640x480 67Hz mode but displays the 560x384 mode in the middle of the display.

lc 575 apple IIe.png


LC 475 / Quadra 605 with 67Hz display: The tech notes have this to say:

When the Apple IIe Card for Macintosh is installed in the expansion slot, the computer generates an Apple IIe video display with 560 by 384 pixels. On the 12-inch color monitor, that display requires changes to the video timing, as shown in Table 2-2.

The Macintosh LC 475 and Macintosh Quadra 605 computers can provide a 560-by-384 display on any size monitor; only the 12-inch monitor requires modified timing parameters to provide the 560-pixel display width.

They're identical to the 575, except it seems like it can generate a IIe mode display on any monitor that can be attached.

LC / LC II with 640x480 67Hz display: mg.man tested this out earlier in this thread and got a 640 x 480 67 Hz display with bordered output. I would be very curious to see how this would match a...

LC III with 640 x 480 67Hz display: I bet the geometry would look slightly different in IIe mode, or the border would be slightly different. You'd still end up with a bordered 67Hz display either way. The Sonora (and presumably Andberg) ASIC does support VGA 60 Hz output, and my hunch is that the 640x480 60Hz mode seen on the LC 520/550 is actually the VGA mode with a border. That said, the real curiosity is...

LC III, LC 475, or Quadra 605 with higher resolution displays: Has anyone tried the IIe card when the resolution is set to 832x624 or higher on an LC III, LC 475, or Quadra 609? Is it just a smaller display in the middle with progressively larger borders?

I really enjoyed your video. I am currently gathering the components to also do the 84v mod. I wonder if a ROM hack would be able to give the option for the different resolutions.

The problem with enabling the hidden 560x384 mode for a Mac desktop on the Color Classic is that the geometry will be wrong when you change resolutions. It would end up squished horizontally with the standard geometry. That works for IIe mode because the IIe display has rectangular pixels! For proper square pixels you'd end up needing to adjust the H/V size to square things up and you'd end up with black borders on the top and bottom of the display.. You can't adjust the H / V size without removing the back of the case, so... That's likely why it's locked out as a selectable resolution. The technotes I've seen also say this mode is limited to 4-bit color. The Quadra 605 / LC 475 tech note says this mode can be explicitly chosen in the monitors control panel on a multisync or 12-inch RGB monitor, but I don't have one around to verify.
 
Last edited:

JDW

Administrator
Staff member
Founder
Sep 2, 2021
2,133
1,780
113
54
Japan
youtube.com
I really enjoyed your video. I am currently gathering the components to also do the 84v mod. I wonder if a ROM hack would be able to give the option for the different resolutions.
It would be quite nice if a simple ROM flash could switch resolutions because it's easier to pull the motherboard out for a ROM flash than it is to pull the Analog Board. But alas, resolution changing is hardwired to those silly Analog Board SENSE LINES. 😕 And very sadly, on top of that, the monitor is NOT multi-sync, which is why you are then forced to do the CRT Adjustments via the POTs at back (requiring the rear plastic housing to be removed). Meaning, you are forced to change the sense lines to switch between the stock resolution and VGA, and then you must change the CRT adjustment POTs to get the video centered and wide/tall enough.

It's a fiddly mess, to be quite honest, and I personally dislike it. And that's why most people either stick with the stock resolution or setup one of the two VGA hacks and then leave it that way forever.

My friend @Kay K.M.Mods has multiple Color Classic machines, which gives him the ability to just grab one if he wants the stock resolution or VGA via the 68.4V mod or the 84V mod. Some of his CC machines are stock, others have the 68.4V mod and others have the 84V mod. Grab the one you want and use it. Easy. But only if you have multiple CC machines. (I myself only have the one CC.)

@JDW,
...now you've got me thinking.
And a lot of thinking you did too! Wow. It's this kind of deep analysis that makes the hobby fantastically fun!

Sadly, I'm starting my work day right now and won't be able to test for at least 14 hours. But I see you want to see how the IIe Card displays on the CRT when installed in the LC520 board so as to compare with how it looks on the LC575 and stock CC boards. Understood! Will do that later. And thanks again for probing this matter so deeply!
 
  • Like
Reactions: kefkafloyd

kefkafloyd

New Tinkerer
May 22, 2023
3
1
3
Massachusetts
www.userlandia.com
Thanks for that video!

The slight syncing differences between the CC and 520 boards (66.6 for the CC vs 66.7 for the LC 520/575) make sense due to the color classic's LC/LC II-based video. Those systems (and the CC and Mac TV which are derived from them) are specified to run at 66.62 Hz versus the 66.67 of the LC 520 and LC 575. The Color Classic (and Mac TV)'s 640x480 mode is slightly slower from a frame rate perspective than the 520/550/575. Even then, there's a possible +/- variance that I've seen documented in the various tech notes.

It does answer my big question about the LC 520 displaying Apple IIe mode at 640x480 though. Your video shows the LC 520 board outputting a bordered 640x480 67Hz mode for IIe display and not a 560x384 mode as specified in the LC 520 tech note. Which makes sense, because it would be an outlier amongst any other system that outputs IIe mode to a 640x480 67Hz. The Apple IIe mode on LC, LC II, LC III, 475, and the 14 inch all-in-ones seems consistent when using a 640x480 67 Hz monitor.

The 520 doesn't have a multisync display, and your LC 520 board IDs as a 520 inside your modified color classic. So I would expect this same behavior in a "real" 520 chassis. But I guess I'll have to be satisfied with 99% certainty until I get my own IIe card to mess around with. :LOL:
 
  • Like
Reactions: JDW