GTIA-Mode and Video-Sync Fix for Late XEs

Type
DIY project
Category
Video correction modification
Manufacturer
Homebrew design by Jiří Bernášek (BeWeSoft)
40-pin GTIA chip marked C014805 on a circuit board

Overview

When BeWeSoft's Jiří Bernášek bought a late Atari 800XE as a test machine, he hit two display faults that he had also seen at computer meetings:

  1. Bad "GTIA modes". The 16-shade and 16-hue modes (BASIC's GRAPHICS 9, 10 and 11), loved by demo coders, show stray bright dots and white vertical lines. He believed this affects probably all of the last XEs made in China, and traced it to a bug inside their GTIA chips.
  2. Unstable sync. On some TVs the picture "flies" or breaks into diagonal lines, especially when the screen is bright.

His document fixes both. The first fix is an advanced build; the second needs two parts.

Test your machine

10 GRAPHICS 9:FOR X=0 TO 15:COLOR X:PLOT X,0:DRAWTO X,64:NEXT X
20 GOTO 20

A good GTIA shows a smooth step from black on the left to white on the right. If you see white vertical lines, mostly in the left part, your GTIA has the bug. Replacing it with a good GTIA is the real cure, but spares are scarce.

Fix 1: the GTIA-mode corrector

How it works. Bernášek found that a faulty GTIA draws the left half of each pixel correctly and corrupts only the right half: the lower luminance bits get ORed into the higher ones. GTIA outputs luminance as four digital lines (LUM0–LUM3). His board passes LUM1–LUM3 through a 74HCT75 transparent latch clocked during the first quarter of each pixel, so the latch holds the good left half and repeats it over the bad right half. LUM0 doesn't need correcting. The clock is built from the OSC and Φ1 signals. Φ2 isn't used, because its delay from Φ1 is too unstable. Φ1 is inverted in GRAPHICS 10 because those pixels are shifted right.

A 74HCT138 detects writes to GTIA's PRIOR register ($D01B), and a 74HCT74 keeps a copy of PRIOR's top two bits. When those bits are equal (GRAPHICS 11, or no GTIA mode at all), or when the optional disable switch is closed, the latch is held transparent and the signal passes untouched.

Parts: 74HCT00, 74HCT74, 74HCT75, 74HCT86 and 74HCT138 (74LS or 74ALS also work but draw more current), a 10 kΩ resistor, a 100 nF capacitor, an optional on/off switch, a 70 × 28 mm piece of perfboard (28 × 11 holes), thin insulated wire, and some 1–1.5 mm bare wire for the mounting legs.

Installation outline:

  1. Build the board as shown in the original figure. Keep everything on the component side below the tops of the chips.
  2. Open the XE: 4 screws, keyboard ribbon (fragile), 7 board screws, then straighten the 7 tabs of the shield.
  3. Cut three traces beside the 4050 chip near GTIA, one of them on the underside.
  4. Solder the board's two legs to the "+" point (ANTIC pin 21) and the "–" point (ANTIC pin 1), with the board sitting no more than 1 mm above ANTIC. Run 18 short wires to the marked points, plus wire 19 for the disable switch, which goes to ground.
  5. Bench-test without the keyboard. Boot a GRAPHICS 9 or HIP title picture and check the streaks are gone. Then refit the shield; Bernášek insists you keep it to avoid radio interference.

Limitations: brightness is corrected in GRAPHICS 9 and 10, but colour in GRAPHICS 10 and 11 is not. Static player/missile graphics over GTIA modes can look slightly "flat", because pixel pairs get merged. That is why the disable switch is there. Faint grey traces may remain in complex HIP pictures.

Fix 2: XE composite sync

Cause. On XEs the colour signal is mixed by a different RF modulator with an extra internal transistor, which shifts the whole video signal down by more than 0.5 V. The sync pulses would have to go negative, can't, and are clipped. The DIN socket's composite output suffers most, and the RF output a little. The monochrome (luma) output is fine, as are all XL outputs.

Fix. Cut one trace on the solder side near the modulator. Add a PNP transistor (BC556 or almost any general-purpose PNP) and a 220 Ω resistor on the modulator terminals, linked by a wire to the far end of the cut trace. This lifts the signal back by the missing half-volt. Keep the parts below the modulator's top so the shield still fits. After this, the XE's output works on any TV, just like an XL's.

Safety

Use HCT logic, a temperature-controlled iron, and anti-static precautions. Bernášek warns against cheap transformer-type soldering guns. Don't attempt the first fix without experience of fine work on dense boards.

Credits