Will the TS5V522 behave differently on this than the TS5V330?
Looking at the Uberswitch schematics, all signals except H-sync and V-sync pass through the TS5V330 switches, and from what I've read in various Atari forums people seem very happy with the Uberswitch VGA adapter
No, you're right, and my worry misplaced: it will work. I forgot about the Ubeswitch!
Why do you believe using a single IC for switching the entire set of signals is better than two or more ICs?
Stuck in old thinking I guess, and looking into all possibilities, but also considering the physical size as Eagle (free version) has board size limitations.
Then again I'm probably making a bigger issue of this than needed since these parts are quite small already, and there aren't really that many components in all.
That's why I asked. If you make a four-layer board so that you can do signal-GND-signal-GND stack for the analog video signals, with track width and spacing calculated to give about 75Ω impedance for R, G, B and about 27Ω for monochrome –– track width and spacing then being the same on the two signal layers ––, the needed crossings won't be a problem, and I think I'd target the 100mm × 80mm PCB size, although a much smaller one should definitely suffice. With separate SMD muxes/switches/amplifiers, the layer pair opposite the switch can be used to "jump" the signal order nicely, which makes it so much easier to route these signals with separate switches than single large switches. Try it, and you'll see what I mean. (If the track width and spacing to surrounding GND is suitable, then having the track "extra long" is not an issue at all. At 140 MHz, the wavelength in copper is about 1.4 meters, so a few centimeters difference in track lengths will not affect the video signals at all.
(KiCad calculator says: If you use 0.203mm or 10mil wide traces, with 0.708mm or about 28mil distance to a ground guard trace on the same plane, with ground plane under both on the next plane –– on planes 1,2 or 3,4, but on planes 2 and 3 because the core is in between and is thicker), you get a coplanar wave guide with pretty much exactly 75Ω impedance. For the monochrome video signal, 0.914mm or about 36mil wide trace with 0.6mm or about 24mil distance to ground guard trace will give you pretty much exactly 27Ω impedance. While these do depend on the stackup, and you should check these values against the PCB stackup you do, they are a good starting point.)
I particularly like Hammond cast-aluminium enclosures, and would target
1590BB for this. The maximum inner volume is 110mm × 84mm × 34mm, but with 5mm × 5mm cut-outs at each of the four corners. (Basically, 100mm × 84mm × 34mm maximum inner volume.) I like the plain cast aluminium ones, and sanding the surface with 400 grit for a very nice brushed effect, but these are also available in various colors. The connectors I would put on one long edge, first drilling round holes, and then filing them to right shape by hand. For cast aluminium, you can use woodworking files, but metal files give you a better finish. Needle files are good for finishing touches, but not for shaping the holes; it'd take too long. A rotary hand tool like Dremel with burr bits do short work of the hole shaping, but do wear eye protection. For me, the preferred shape would have the switch (a lever one) on the opposite long edge, with the indicator LEDs poking through. That way I could stack it.
I believe I would connect the enclosure to the ground, but would verify with other members here first. My thinking is that since the ground is common to all connectors, and we do not have any external power sources, it is the best option wrt. shielding and ESD. I suspect sprinkling ESD diodes for the signal lines for all four connectors might be a good idea, too, but it is not something I'm at all familiar with.
Aha! This was something I was wondering about (but afraid to ask)...
So R,G,B and monochrome are analog while the two sync lines are digital?
How about mono-detect?
Right!

R, G, B and monochrome are analog, with signal voltage varying between 0V and 1V (1 Vpp, or one volt peak-to-peak). The impedance to ground of these signals is 75Ω for R, G, B, and 27Ω for monochrome.
Hsync and Vsync are 5V TTL digital signals, maximum frequency only about 36 kHz (Hsync at mono). When the voltage is between 0V and 0.8V, it is logic low; anything above 2V is logic high. Sync polarity does not refer to voltage polarity, but to whether the signal idles low and pulses high (positive polarity), or idles high and pulses low (negative polarity). Basically, any TTL logic ICs can handle these.
Mono detect, or Select, is an open collector input, pulled to 5V using a 4.7k resistor (R472) within the Atari STe. It controls the
74S257N digital selector (U405), with 5V TTL logic. It is basically DC, as any edge on it causes the STe to reset. You only need to connect it to the Atari STe output, let it flap in the wind for VGA color, and connect it to ground (directly) for VGA mono. Again, any 5V TTL logic mux/switch/buffer will work for this. If you use an analog or digital switch for this, something like 60Ω to 100Ω on-state resistance is not a problem, because it will simply be in series with the 4.7k pull-up resistor.
I selected the components for my schematic by looking at Mouser catalog, sorting options cheapest first, and then rejecting any that I wouldn't want to hand-solder. (I avoid QFN and don't do BGA yet, myself, even though I have a tiny hot plate and hot air; need to do some practice boards first.)
I wish I could explain this better... or that some of the more experienced members would step in and explain it better than I can!
Nothing wrong with your explanations. In fact they're very detailed and well worded!
No, all this stuff could be explained much more concisely by other members here. I read and write fast, but spend quite a lot of effort in trying to find a good wording, so it often
appears I'm more knowledgeable than I am. Plus, I'm overly verbose: my posts are too long for many to read.
But I have to plea ignorance on a lot of these concepts, struggling to follow and trying to learn as we go along. I admit not having a fundemental understanding of how your schematic works -if it's similar to mine, or does things a totally different way.
Even though it makes this post yet another wall of text, let me walk you through. Here is the schematic in scalable vector form, so you can open it in another browser window, and zoom in without it becoming blurry:
(Click to embiggen; CC0-1.0 / Public Domain)Note: Blue indicates analog video signals (0V - 1V); green digital 5V TTL signals; and cyan analog/digital signals connected directly between the two 13-pin DIN connectors (and composite video female RCA connector).
On the left, CN1 is the input Atari 13-pin DIN connector. Because this uses amplifiers with high input impedance, we need to terminate the input signals with resistors to ground. The exact reasons for this go into
transmission line model, but as hobbyists, all we need to know is that this way any signal distortion and such is minimised. In general terms, this schematic is a retransmitter between two different transmission lines.
If we used only multiplexers and switches, our circuit would be part of a single transmission line, and minimizing its impedance would minimize the effect on the transmitted signals. In the displays, there are 75Ω resistors to ground (for R, G, B; 27Ω to ground for the monochrome video signal), and any added resistance on the analog video signals acts like a voltage divider, reducing the voltage amplitude at the display end. For example, a 3Ω switch will cause a gain of 75Ω/(75Ω+3Ω) ≃ 0.96, or voltage swing reduction by 4%. It might slightly reduce the default brightness, but should still be well within normal adjustment range.
Similarly, the resistors R5-R8, R9-R11, R12-R14 are the transmitter series resistors that need to match the expected transmission line impedance. I'm not exactly sure about monochrome video (R8, ATARI_MONO); I
think it should be 27Ω, since that is what Atari STe video output circuit has too.
U1, U2, U3 are the video amplifiers. They have high input impedance, and low output impedance, like most amplifiers. Essentially, whatever happens downstream from the amplifier (to the right of the amplifier), will not affect upstream (to the left of the amplifier). The BYPASS pins are connected to the 5V supply voltage to use the full 150 MHz signal bandwidth, and the 100nF supply bypass capacitor makes sure the amplifier has local "charge reservoir". As Dave showed in one EEVblog video, these supply bypass capacitors may not be always needed, but having them there ensures ICs work better; even the pros tend to experiment and measure in practice to see what they can get away with, so for us hobbyists, it makes sense to just use them even if not strictly necessary.
Considering the input terminator resistors and the transmitter series resistors, each video amplifier works like an analog switch, except with minimal load or effect on the input signal. When enabled, the amplifier looks like a 800kΩ resistor to ground to the source for its inputs, as if it was in parallel with the input terminator resistors –– thus affecting that termination by 0.008Ω or so. When disabled, the amplifier looks like a 20kΩ resistor to ground to the source of its inputs, thus affecting the 75Ω input termination by about 0.28Ω or so. Note that this is on the "ground leg" of the effective voltage divisor, and so
increases rather than decreases the voltage swing.
(Amplifiers aren't perfect, and they add noise and have limited bandwidth. In this case, we know we need less than 140 MHz of bandwidth. THS7374 with bypass enabled have 150 MHz, and less noise and better supply noise rejection than can be resolved using 8 bits, according to the datasheet. Without testing them with the actual video source, to me those numbers are sufficient –– if one trusts them! –– to
assume it should work well, because I know I've been very happy with 8-bit analog VGA signals using 17" multisync monitor at 1024×768 85Hz using #9 GXE and Matrox G200 video cards, doing actual paid Adobe Photoshop work just before the turn of the millenium. Mac would have been more suitable, but I was mostly running Linux (with the G200), and only used Windows for paid Photoshop and Macromedia Director work.)
U6 and U7, TS5A3159 analog switches, were just a cheap option to connect the Mono detect AKA Select line to the DIN-13 output, ground, or not connect it to anywhere at all. (Again, this is an open collector output, pulled to +5V through a 4.7kΩ resistor.) I picked these only because Mouser sells them for 0.33€ apiece in lots of ten, and as SPDT switch in SOT23-6, they are easy to use here. There are literally hundreds of options here, and I just picked a cheap and easy way! Well, I was also swayed because I think those switches could come in handy for other circuits as well.
U4 and U5 are the buffer/selector/mux chips for the sync signals. Note that because we only have two connectors, two pairs of sync signals, we only need two of these. In fact, we only need a single DPDT (two signals) switch, if we use /ATARI as the selector. That way, the sync signals are connected to the output DIN-13 when Atari output is selected, and to the VGA connector in the other two modes.
Why 74LVC2G241? I admit, I was lazy.

A 74AHCT2G125 and a 74AHCT2G126 would be a better choice here (
74AHCT2G125DP,125 and
74AHCT2G126DC,125 from Mouser): a TTL-level dual SPST switch with active-low/active-high enable. As these are digital buffers/drivers, they act like amplifiers in that the input is not affected by whatever happens on the outputs; just for digital signals. Could we use say TS5A3159 instead? Yes, we could.
The slide switch connects one of /ATARI, /VGACOLOR, and /VGAMONO to ground. (The / at the beginning, the overline over the name, and a hash mark at the end, are all different ways to note the same thing: that this signal is active-low.) The 10k resistors R15, R16, R17 pull them to +5V when not selected. (When selected, there will be about 5V/10000Ω = 0.0005A = 0.5mA "wasted" in the resistor, turning 2.5mW or 1/400th of a watt into waste heat.)
The indicator LED current will flow through the current-limiting resistor, and the switch, to ground. I wondered whether to use the other side of the two-pole three-throw switch, but this way, if the active-low enable line loses connection to ground, the LED won't light either; and 3-4mA at 5V should not be a problem even for a lightweight or small switch. The ICs only draw a small fraction of a milliamp each.
The extra 100nF capacitor before the 100Ω resistor between 5V and pin 9 of the VGA connector just stabilizes the pin 9 voltage a bit; it forms a basic 16 kHz low-pass RC filter here, and would make sure the voltage the display sees on that pin is stable. It is utterly "gilding the lily", as Dave would say; feel free to omit it. As BrianHG explained, even if pin 9 is connected to ground in the cable or display, it will only draw 5V/100Ω = 50mA, and generate 0.25W = 250mW = 1/4 watt of waste heat. So, I would suggest making this a through-hole resistor. And crap, I actually put the capacitor on the wrong side of the resistor, too; it needs to be
after the resistor... I better just delete the capacitor, to be honest.
So, to recap:
The incoming red, green, and blue analog video signals are terminated to ground through 75Ω resistors R1-R3, as close as possible to the incoming 13-pin DIN connector. The monochrome video is terminated similarly using a 27Ω resistor R4. This is because the input is an end of a transmission line, unlike if we used just analog switches (which would then form part of the transmission line).
Analog video signals go to the inputs of the three video amplifiers U1, U2, U3. As they start a new transmission line, there are 75Ω resistors R5-R7 and R9-R11 in series with the red, green, and blue signals; and a 27Ω resistor R8 (shown as 75Ω in the schematic) on the monochrome video signal.
Amplifier U2 and U3 outputs are commoned to the VGA connector, so only one of them should be "on" at the same time. I added the resistors before the commoning, so that in the case both amplifiers get enabled at the same time, they'll fight through 75Ω+75Ω = 150Ω series resistance –– think of one trying to drive the output low while the other drives it high) –– which should allow them both to survive without damage. If I used only one set of resistors, only the amplifiers internal circuits would limit the current; I don't think they'd survive that. So, I am using extra three resistors to deal with the case where both /VGAMONO and /VGACOLOR manage to be low at the same time. Shouldn't happen, but hey, it's just three extra resistors.
Note how amplifier U2 takes the monochrome video signal for each of the three inputs, and amplifies them separately into VGA red, green, and blue. This way, the monochrome video input is not at all affected by the "copying" into red, green, and blue. Indeed, if your Atari and VGA displays share a common ground (so there is no voltage difference between their grounds, and they can be connected at the same time to this circuit), there is no reason why you couldn't enable both Atari and VGA outputs at the same time. There is no signal degradation, due to the amplifiers used.
For the sync signals, U4 and U5 buffer them, and output (only) to the currently selected connector, using /ATARI to decide. When /ATARI is low, the DIN-13 output is used, otherwise the VGA output is used.
If I missed anything, just say so, and I'll try to explain better. (I write these posts in the hopes that they help others learn –– not just you, but anyone who discovers this thread say via a web search. I'm not interested in giving answers on a platter, which is why my suggested schematics typically require modifications to suit the use case. Plus, I err/fail often.)
(Technically, we could use a 12V isolated DC-DC converter to supply 7-12V regulated down to 5V to the isolated VGA side, a TI ISO7720 for the sync signals and a 74HCT2G125 for output buffer/driver, three NJM2505A isolated video amplifiers and a THS7373/7374 video amplifier, to provide a completely isolated VGA output. The added BOM cost is less than 10€ from Mouser in singles. It would allow connecting both VGA and DIN-13 outputs at the same time, safely, even if the two do not have a common ground or their GND potentials differ by a couple of hundred volts. They could also be enabled at the same time without affecting each other –– except for the Select on the DIN-13, of course. Note that other members here have "berated" me for over-use of isolators, though. It's just that I often encounter ground loops, in the form of GND/0V on different devices having different potentials, because they use non-grounded power supplies; often cheap wall warts.)