Covox 8-bit DAC: DIY Builds

Year
1996
Type
DIY project
Category
Sound upgrade (digital-to-analog converter)
Manufacturer
Homebrew (Atari adaptation credited to Michał 'Psychol' Lange; builds by Gumi/Tight, Zenon/DIAL, Simius and others)
Hand-drawn style schematic: a 74LS138 decoder fed by A0, A1, R/W, the $D6 chip-select and phase 2 clocks four 74LS574 latches from the data bus; each latch feeds a resistor ladder D/A converter, with outputs 1 and 4 mixed to the left channel and 2 and…

Overview

A Covox is about the simplest sound hardware there is: an 8-bit latch that holds a byte, and a resistor network that turns the byte into a voltage. Write sample values to it fast enough and you hear 8-bit digital audio. The name comes from the Covox Speech Thing for the PC, released in late 1987. On the Atari it fills a gap. POKEY can only play samples at 4-bit volume resolution, and doing so ties up its channels.

The Atari version was adapted in Poland in the mid-1990s. Michał "Psychol" Lange is credited with the original project, and Profi (Protracker, Inertia) and Epi (NeoTracker) wrote software for it. Most Atari Covoxes have four channels, two per stereo side, mapped at $D600–$D603 (54784–54787). With one DAC per voice, a four-voice tracker module can give each voice its own channel.

How it works

  1. A 74LS138 decoder watches A0, A1, R/W, Φ2 and the computer's $D6xx page select. A write to $D600, $D601, $D602 or $D603 produces a clock pulse on one of four outputs.
  2. Each pulse clocks a 74LS574 (or 74LS374) octal latch, which grabs the byte on the data bus.
  3. Each latch's eight outputs drive an R-2R resistor ladder, which produces a voltage proportional to the byte (about 0 V for 0 and about 5 V for 255). A 100–220 nF capacitor blocks the DC.
  4. Channels 1 and 4 mix into the left output and 2 and 3 into the right.

The $D6xx select is an unused page in the stock machine, which is why the Covox can live there. Other boards use different addresses (see below), so Covox software isn't automatically compatible with every Covox.

Parts (Gumi/Tight's "Easy 4 channels × 8 bits", 1996)

  • 1 × 74LS138, 4 × 74LS574
  • 36 × 1.2 kΩ and 28 × 2.4 kΩ resistors (the ladders)
  • 4 × 100–220 nF capacitors
  • Signals: 74LS138 pin 1 = A0, pin 2 = A1, pin 3 = R/W, pins 4 and 5 = the $D6 page select, pin 6 = Φ2, pin 8 = GND, pin 16 = +5 V, and outputs 15, 14, 13 and 12 to the clocks of latches 1–4.

The reference schematic on Atariki, with corrections by Zenon/DIAL, takes R/W from ANTIC pin 14, Φ2 from ANTIC pin 29, and the $D6 select (CE6) from pin 9 of the board's 74LS138. Gumi's article was reprinted in Serious Magazine #3 (1998), and Pigula/Shpoon described another build in the disk magazine NOP #1 (1998).

Building tips (from the Atariki notes)

  • On some 800XLs without FREDDIE, taking Φ2 from ANTIC distorts the sound. Take it from the CPU (pin 39) instead.
  • HC and HCT logic work as well as LS.
  • Any resistor value from about 2 to 4.7 kΩ works, but the ladder only works properly if the "rungs" are exactly half the value of the resistors on the latch outputs. The reference design does this by putting two identical resistors in parallel.
  • Test each channel with a voltmeter before connecting the capacitor. In BASIC, 10 FOR I=0 TO 255:POKE 54784,I:FOR K=1 TO 500:NEXT K:NEXT I should make the voltage climb evenly from about 0 to about 5 V. Change 54784 to 54785–54787 for the other channels.

SimCovox: one channel, no soldering inside

SimCovox (Simius, 2011) is a single-channel Covox that plugs into joystick ports 1 and 2. Their eight PIA port A lines become the data bus, and eight resistors and a DIN-5 socket with audio wired as on the monitor port complete it. Software sets PORTA ($D300) to output through PACTL and writes samples there, then must restore PORTA to input on exit. The board's filter components between PIA and the joystick ports distort the signal, so there is little point playing samples above about 16 kHz. In 2022 Jakub Husak made an Arduino-based SimCovox that re-creates the signal as PWM at 62.5 kHz with near-perfect linearity. Some IDE Plus rev. D boards (marked rev. S) have SimCovox built in at $D1FB. D2D, DRUM Machine, PSG Player and MOVPLAY support it.

Addresses used by other Covox hardware

Hardware Covox address
Classic DIY, SimpleStereo, RAM 320XE/576 $D600
Evie, P-Covox (Lotharek) $D600 or $D700 (chosen at install)
PokeyMAX $D280
uCovox (Pajero) $D280 (rev. B); $D500, $D600 or $D700 (rev. A)
SimCovox $D300 (joystick ports) or $D1FB (IDE Plus rev. S)

Software that supports Covox includes Inertia, Protracker 1.51 and NeoTracker 1.7. Commercial alternatives include Lotharek's P-Covox and the Covox modes of PokeyMAX and Acid Stereo. Don't confuse this with Covox Inc.'s Voice Master digitizer.

Credits