Gumby Stereo POKEY Build (Chuck Steinman, 1989)
- Year
- 1989
- Type
- DIY project
- Category
- Sound upgrade (second POKEY)
- Manufacturer
- Homebrew (design by Chuck Steinman, DataQue; mods by Frankenstein and Alphasys)
Overview
The "Gumby" upgrade is the original dual-POKEY stereo project for the Atari 8-bit. Chuck Steinman of DataQue Software posted it as a text file on GEnie on 16 December 1989. It was reprinted in the British magazine 8:16 and the Dutch disk magazine Mega Magazine, whose writer Frankenstein (Freddy Offenga) followed it with two articles of practical notes and modifications. The nickname comes from Pokey's sidekick in the Gumby children's TV show.
The idea is simple. A second POKEY rides piggy-back on the first, and one spare inverter gate decides which chip answers. The two chips then drive separate left and right outputs, for eight sound channels in all. Every later stereo board, from Candle's SimpleStereo to the FPGA-based PokeyMAX, uses the same addressing. For the wider family of boards, see stereo POKEY upgrades.
How it works
POKEY's registers sit at $D200–$D20F, but the chip ignores address line A4, so the stock machine mirrors them throughout $D200–$D2FF. POKEY has two chip-select pins: active-low /CS0 (pin 30) and active-high CS1 (pin 31). On XL/XE machines, CS1 is normally tied high through a 3 kΩ pull-up.
Steinman feeds A4 from the CPU into a 74LS14 inverter and uses it as CS1:
- The original POKEY gets A4 inverted once, so it answers only when A4 = 0 (
$D200–$D20F). - The new POKEY gets it inverted twice, so it answers only when A4 = 1 (
$D210–$D21F).
All other pins of the new chip, including address, data, clock, R/W and power, are simply soldered to the old one. The pins it must not share (paddle inputs, keyboard scan, serial I/O and IRQ) are bent out of the way. The new chip's registers mirror the old ones 16 bytes higher: AUDF5/AUDC5 at $D210/$D211 through AUDF8/AUDC8 at $D216/$D217, AUDCTL2 at $D218 and SKCTL2 at $D21F.
Parts
| Part | Notes |
|---|---|
| Second POKEY (CO12294) | The 1989 list gave Best Electronics and B&C ComputerVisions as sources |
| 74LS14 or 74HCT14 hex inverter | Piggy-backed on an existing 74LS14 for power |
| 1 kΩ resistor | Pull-up for the new POKEY's audio output (pin 37) |
| 2 × RCA phono jacks | Left and right outputs |
| 2 × 0.01 µF (Frankenstein used 100 nF) capacitors | DC-blocking on each output |
| Shielded audio cable | Between the POKEYs and the jacks |
| Optional: 2 × 50 kΩ trimmers | Level adjustment. Steinman found he didn't need them |
Build steps (Steinman's original)
- Inverter: bend up every pin of the 74LS14 except 7 and 14, trim them, and solder it on top of an existing 74LS14 so it shares power and ground. Wire inverter pin 1 to CPU pin 13 (A4).
- Remove the 3 kΩ pull-up between old POKEY pin 31 and Vcc. Wire inverter pin 2 to pin 3 and on to old POKEY pin 31. You can use the pad left by the removed resistor.
- New POKEY: bend up and trim pins 8, 9, 11–16 and 18–29. Bend up, but don't trim, pins 10 (pot 4), 31 (CS1) and 37 (audio). Solder the remaining pins (1–7, 17, 30, 32–36, 38–40) to the old chip.
- Connect the new chip's pin 31 to inverter pin 4, and fit the 1 kΩ pull-up from its pin 37 to Vcc.
- Mount the RCA jacks on the rear of the case. Run shielded cable from old POKEY pin 37 (left) and new POKEY pin 37 (right) through the capacitors to the jacks. Leave the shield unconnected at the POKEY end, and ground the jacks to the wide ground area of the board with 18–20 AWG wire.
- Feed the jacks into the AUX or tape input of a stereo.
To detect the upgrade in software, compare the keyboard code at $D209 with $D219, and check the new chip's paddle registers. On the second chip both read zero, because its keyboard and paddle pins aren't connected. Mask IRQs while you test. Initialise both chips by writing 3 to SKCTL ($D20F and $D21F), and repeat it after any disk I/O.
Later modifications
Frankenstein added a double-pole switch for "stereo" (old POKEY left, new POKEY right) or "mono" (old POKEY to both jacks). Unmodified software only drives the old chip, so without the switch it would play from one speaker only. He also patched SoftSynth, the World of Wonders demo and ZUPKGC-style game music to send two channels to the second POKEY.
Arianne Slaager (Alphasys) then found programs that write to POKEY's "illegal" mirror addresses between $D210 and $D2FF, which the upgrade breaks. The fix is a second switch that disables the new POKEY: it feeds the inverter from ground instead of A4, so the original chip answers at every mirror address again and the new one never does. Alphasys also showed how to mix the new chip into the TV sound with one capacitor and one resistor, giving eight channels in mono.
Pitfalls
- Don't cut pins on a POKEY you want to keep. Frankenstein later advised against Steinman's method of trimming pins. A trimmed IC socket stacked on the old chip is better, and a plug-in board with two sockets is best. On unsocketed XE boards you'll need proper desoldering tools to fit a socket.
- The keyclick won't come through the stereo outputs, because it doesn't come from POKEY.
- Modern boards and FPGA POKEYs avoid all of this soldering, and Atari emulators can play dual-POKEY music if you just want to hear it.
Credits
- Picture: The stereo/mono switch from the Mega Magazine follow-up articles, drawn on an Atari. — STEREOSW.GIF diagram from the Mega Magazine 'Atari 8-bit in Stereo' articles, Nir Dary CD collection (ftp.pigwa.net)
- Chuck Steinman — POKEY Stereo Upgrade text, as reprinted in 'Atari 8-bit in Stereo' (Mega Magazine), STEREO.TXT / STEREO1.TXT (Nir Dary collection) — STEREOSW.GIF diagram from the Mega Magazine 'Atari 8-bit in Stereo' articles, Nir Dary CD collection (ftp.pigwa.net)
- Frankenstein — Atari 8-bit in Stereo #2 (Mega Magazine #3), STEREO2.TXT
- Frankenstein — Atari 8-bit in Stereo #3 (Mega Magazine #5), STEREO3.TXT
- Diagrams STEREO1.GIF and STEREOSW.GIF (Nir Dary collection on ftp.pigwa.net) — STEREOSW.GIF diagram from the Mega Magazine 'Atari 8-bit in Stereo' articles, Nir Dary CD collection (ftp.pigwa.net)
- comp.sys.atari.8bit FAQ, section 6.11 (Michael Current) — Michael Current (comp.sys.atari.8bit FAQ)
