Retro computing field guide

CA82C55A guide: add 24 I/O lines to a retro computer

A CPU has only so many pins. A programmable peripheral interface (PPI) adds parallel input and output lines for switches, displays and other simple hardware. The CA82C55A provides three eight-bit ports—24 lines in total—but software must select and configure them before use.

Start with one selected device

The CA82C55A sits between an eight-bit CPU data bus (D0–D7) and Port A (PA0–PA7), Port B (PB0–PB7) and Port C (PC0–PC7). Port C can be treated as upper and lower four-bit groups. A separate address decoder makes /CS low only when the CPU accesses this chip. A1 and A0 then choose which port or control register is accessed. /RD and /WR are active-low read and write controls. If /CS stays high, the chip ignores those controls and does not drive the CPU data bus.

Conceptual CPU bus to CA82C55A flow: decoder selects the chip; A1 and A0 select one of three ports or the control register.
Select the chip first, then select a register. The arrows show logical flow, not a complete wiring diagram. Open full-size diagram.

Four registers in one example address window

Imagine a 6502 system assigning $C000–$C003 to this PPI. The address decoder must recognize the full intended range; connecting only A0 and A1 without high-address decoding would mirror the chip elsewhere. The 74HC138 address-decoding guide explains the selection step. Once the chip is selected, A1:A0 = 00 selects Port A ($C000), 01 Port B ($C001), 10 Port C ($C002) and 11 the control register ($C003). These addresses are an example, not fixed locations inside the CA82C55A.

One complete read-and-write cycle

Suppose switches feed Port B and a buffered LED display follows Port A. After reset the ports are inputs. Write $82 (1000 0010) to the control register: Mode 0, Port A output, Port B input, and both halves of Port C output. Then read $C001; the CPU selects this chip and Port B, asserts a valid read cycle, and the PPI puts the switch byte on D0–D7. Write that byte to $C000; the CPU selects Port A and performs a write, so Port A latches the new output value. In 6502-style notation the conceptual sequence is LDA #$82 / STA $C003 / LDA $C001 / STA $C000. A real board still needs CPU-phase-qualified read/write logic and timing checks. Use input conditioning for switches and current-limiting resistors or drivers for LEDs; this is not a buildable schematic.

Mode 0 is only the beginning

Mode 0 is plain input/output: outputs latch; inputs are read without a handshake. Mode 1 adds strobed transfers, using some Port C pins as handshake/status lines. Mode 2 gives Port A a bidirectional handshake bus. Do not count every Port C pin as free general I/O in those modes. The control register also supports a bit set/reset command for individual Port C outputs; it is different from the $82 mode-setting word.

Check the PLCC-44 package before wiring

The listed Newbridge CA82C55A-5CN is a 44-pin PLCC, not a 40-pin through-hole DIP. On the PLCC top view, pin 29 is +5 V (VDD), pin 8 ground (VSS), pin 7 /CS, pins 9 and 10 A1 and A0, pin 6 /RD, pin 40 /WR, and pin 39 RESET (active high). Check the corner mark and socket orientation. A DIP 8255 pinout is not a PLCC wiring diagram, even when the devices are functionally compatible. Use a PLCC socket or suitable PCB; this part will not plug directly into a breadboard.

CA82C55A PLCC-44 top-view pinout with PA, PB and PC port pins, D0–D7 bus, address and control pins, +5 V and ground.
44-pin PLCC top view, redrawn from the CA82C55A component manual. Pin 1 is at the top edge; follow the physical package mark. Open full-size diagram.

Before powering a build

Use a regulated 5 V supply; the manual specifies 4.5–5.5 V operation. Add local decoupling, check logic-level compatibility and avoid bus contention with other devices. The manual describes reset and bus timing; verify those against your CPU and decoder instead of assuming any 8255-compatible part is a drop-in electrical substitute. For the broader CPU/RAM/ROM picture, see the 6502 parts guide and SRAM guide. The CA82C55A-5CN product listing gives the current package and availability.

Technical reference: Tundra 8000 Series Components Manual, CA82C55A chapter. The shop lot is marked Newbridge; compare its physical marking before production use. PDF.