A theoretical late-1970s demonstration unit: a CDP1802 and CDP1864 built into a colour monitor cabinet, with Conway's Life in ROM. Everything below runs on a cycle-counted emulation of that hardware, executing the real 1802 machine code. Switch it on and it starts.
Keyboard works too: 0–9 and A–F press the matching key. Keys 4–F are read by the ROM and reserved for later features.
CDP1802 registers
Hardware manual
The 1864 gives colour only once per 8 pixels across, which would limit a full-colour Life field to 8 cells wide. LIFE-1 adds a colour expansion board, built only from 74LS logic and 2114 RAM, that gives every 2-pixel pair its own colour. The 1864 still does the timing, DMA, interrupts, background colour and sync. This is Rev B, corrected against RCA's CDP1864C data sheet.
Memory map
Address
Contents
0000–07FF
ROM, 2716
1000–15FF
Bitmap, 64 × 192, 8 bytes a line, read by 1864 DMA
1864 display on: enables its interrupt and DMA requests
OUT 1 (61)
1864 background step: blue → black → green → red. The colour board's shadow counter steps with it
INP 4 (6C)
1864 display off
OUT 4 (64)
1864 tone latch, unused: AOE is tied low
INP 2 (6A)
Keypad code, low 4 bits. The 1864 ignores N1, so port 2 is free
EF1
1864 EF: low 4 lines before the display starts and 4 lines before it ends
EF3
Key held (74C922 data available)
INT
1864 field interrupt, two lines before the picture
N0 and N2 together are an illegal command for the 1864, so ports 5 and 7 are never used.
How a frame is made
The CDP1864C is a PAL part. With INLACE low it makes 312-line, non-interlaced fields at 50.08 Hz, with 14 machine cycles to a 64 µs line at 1.75 MHz. Two lines before the picture, it interrupts the 1802. RCA's rule is that exactly 29 cycles must pass between the interrupt response and the first DMA, one of them an early 3-cycle instruction. The ROM's interrupt routine follows that pattern from the data sheet's Fig. 5 and points R0 at the bitmap. For each of the 192 picture lines, the 1864 then takes 8 DMA cycles and reads 8 bytes (64 pixels). A 3-cycle instruction during the picture would make the 1864 skip cycles to resync, which shifts lines by 8 pixels. So the routine holds the CPU in 2-cycle branches on EF1 until the picture ends. Life runs in the other 120 lines, which is about 38% of the CPU.
While each byte goes out, the colour board uses the same address lines to read a 16-bit word from colour RAM. Address bits A3–A5 are left off, so one word covers 8 lines: one cell row. Each 4-bit lane colours one 2-pixel pair. A pixel shows its lane's colour when both the bitmap bit and the lane's LIT bit are set. Otherwise, inside the picture area, it shows the background colour. The Life field keeps every bitmap bit on, so the colour RAM alone draws the cells, and the bitmap is used only to cut the counter out of a white box. One generation of the 32 × 24 field takes about 1.1 seconds at the real clock speed.
The ROM
On reset, the ROM seeds a random-number generator from the garbage the RAM powers up with, turns all bitmap pixels on, switches the display on and makes a 30% soup. Each generation slides 3-cell column sums along every row of the padded alive array. The cell's own state is part of that sum, so a total of 3 means alive next generation, and 4 means the cell keeps its current state. Ages go up to 16, then a 17-byte table turns age into a colour nibble. The keypad is polled once per row, between pictures. Keys 2 and 3 act straight away. Key 0 or 1 stops the generation in progress and redraws, so the counter appears or disappears within a fraction of a second. Key 3's colour change waits for the next generation, because the table is only read when the field is redrawn.
Schematic
The schematic has four sheets, drawn in net-label style: pins with matching labels are connected. Red labels are signals and green labels are power. A name starting with / is active low, and × marks a pin with no connection. Each part's power pins are listed under its symbol. Sheet 4 shows the decoupling: a 0.1 µF capacitor at every IC supply pin.
Design notes
Rev B follows the CDP1864C data sheet. /CLK IN takes the 1802's XTAL pin, as the data sheet shows. INLACE is low, for 312 lines non-interlaced. ALT is an output, used only by PAL colour encoders, so it is left open: Rev A had it shorted to ground. EVS is held low, and /CON is tied low so colour is enabled from reset.
The 1864's R, G and B DATA inputs are tied high, so every foreground pixel comes out white. No background colour is white, so U31 detects a pixel by ANDing the 1864's RED, GREEN and BLUE outputs.
The Life field keeps every bitmap pixel on, so the 1864 never shows its own background there. U32 and U33 keep a shadow copy of the background colour. U7 decodes the same terms the 1864 uses to step its background, MRD low with N0 high and N2 low, so the two counters can't drift apart.
Blanking: the 1864 holds /BCKGND high and blanks its RGB outputs during retrace. ACT (a pixel is on, or /BCKGND is low) is true only inside the picture, and the background path is gated by ACT, so the RGB lines are black during blanking.
Colour timing uses two latch stages. U26 and U27 catch the colour word at the end of TPB in each DMA cycle. U40 and U41 copy it when the pixel counter's QC rises, which is set by JP1 to fall on the byte boundary on screen. The lane mux inputs are rotated two lanes to match. JP1 is the only timing adjustment, and it is set at bring-up because the 1864's output delay isn't given in the data sheet.
Colour RAM writes: the 74LS244 write buffers are enabled for the whole write cycle, and the RAM selects only while MWR is low. Data is still being driven when write ends, so there is no hold-time race.
Logic levels: the data bus pull-ups are 10 kΩ to keep the load on the CMOS 1802 low. EF3 comes from a CD4049, a CMOS buffer, so it reaches the 1802's 3.5 V input threshold.
Video: 220 Ω for foreground and 470 Ω for background into the monitor's 75 Ω inputs. That gives roughly 0.6 V and 0.35 V, using typical 74LS output figures, so trim the monitor's drive controls at bring-up. RCA's own composite network (Fig. 8) mixes the 1864's outputs with plain resistors in the same way.
Decoupling, drawn on sheet 4: a 0.1 µF ceramic at every IC supply pin (both supply pins on the 1802), 10 µF tantalums at the RAM array and on the colour board, and 100 µF at the regulator. Supply current is about 1.2 A, mostly the twelve 2114s, so U38 is a 3 A LM323K.
Bill of materials
Qty
Reference
Part
Description
Netlist ( nets)ROM listing (1802 assembly, bytes)
A theoretical design: the parts are real and of the period, but this exact machine was never built. Emulation: 1802 instruction set with real cycle counts, the 1864's PAL timing, control codes and sync rules from its data sheet (the emulator counts any rule violation), colour board and keypad as described above.