MITS 88-PIO and 88-4PIO parallel interfaces

Choose 88-PIO for the original parallel latches or 88-4PIO for the multi-channel PIA board. Use the device window to observe registers and test handshakes on the selected board.

Introduction

The MITS 88-PIO and 88-4PIO were S-100 expansion boards for connecting an Altair to parallel peripherals. They transferred data over eight signal lines at a time, with handshake signals coordinating the computer and the peripheral. The original 88-PIO had separate eight-bit input and output ports; the 88-4PIO used Motorola 6820 Peripheral Interface Adapters (PIAs), allowing each data line to be configured as an input or output.

Original MITS 88-PIO S-100 board with two Intel 8212 chips and a parallel connector

Original 88-PIO board. Photo from the deramp.com hardware archive.

MITS 88-4PIO S-100 board populated with four Motorola 6820 PIAs and ribbon cables

88-4PIO board populated with four PIAs. Photo from the deramp.com hardware archive.

The 88-pio plugin supports two boards: the original Intel 8212-based 88-PIO, with separate input and output latches, and the Motorola 6820-based 88-4PIO, with two eight-bit channels per PIA. The default board is 88-4PIO. Select the board expected by the guest software and avoid conflicts with other devices’ CPU ports.

Original manual

MITS 88-PIO Parallel I/O Board Documentation (1975, PDF) covers the original board.

Original 88-PIO

The base port must be even, from 00h through FEh. With the default base:

Address Read Write
04h Status: bit 1 = input ready, bit 0 = output ready Interrupt enables: bit 1 = input, bit 0 = output
05h Input latch; clears input-ready status Output latch; clears output-ready status

The device publishes one byte DeviceContext at index 0. A peripheral writes a byte to fill the input latch and set input-ready; reading the context consumes the output latch and sets output-ready. Input is a single latch, so a new byte can replace an unread one. Reset clears both latches, ready flags and interrupt enables.

88-4PIO

The base must be aligned to 16 ports, from 00h through F0h. Each PIA occupies four consecutive ports. With two PIAs and the default base:

Channel Control Data-direction register / data
PIA 1 A A0h A1h
PIA 1 B A2h A3h
PIA 2 A A4h A5h
PIA 2 B A6h A7h

Control bit 2 selects the data-direction register (0) or data register (1) at the odd port. Each direction bit selects output (1) or input (0). The control registers also configure handshake lines and interrupts. Reset clears the control, direction and output registers; input pins default to FFh.

For example, this 8080 program configures PIA 1 B as output and writes 55h:

xra a
out 0A2h       ; select direction register
mvi a, 0FFh
out 0A3h       ; all eight bits are outputs
mvi a, 04h
out 0A2h       ; select data register
mvi a, 55h
out 0A3h
hlt

The board publishes PioContext at index 0. A connected peripheral can drive input pins and control lines, and observe output and handshake changes. The MITS hard-disk controller requires this context with at least two PIAs; connect 88-hdsk to 88-pio in the computer schema.

Open and use the device

In Emulator → Peripheral devices, select 88-pio and choose Show device…. The 88-4PIO window is shown below:

88-4PIO window with numbered attached device, channel, registers and input controls

Mark Explanation
1 Attached device. Identify the board’s connected peripheral.
2 Channel. Select the PIA channel to inspect. This changes the view, not the attached peripheral.
3 Registers. Inspect data, direction, control, and handshake state for the selected channel.
4 Input byte. Enter the simulated input-pin value.
5 Set input pins. Apply the entered byte to the selected channel.
6 C1 high. Set the selected channel’s C1 input level.
7 C2 high. Set the selected channel’s C2 input level.

The original 88-PIO uses separate input and output latches instead of PIA channels:

Original 88-PIO window with numbered latches and manual handshake controls

Mark Explanation
1 Attached device. Identify the peripheral connected to the original 88-PIO board.
2 Latches and status. Inspect the input/output latches and handshake flags.
3 Input byte. Enter a byte to present at the input.
4 Strobe input. Latch the entered byte as a new peripheral input.
5 Output device ready. Set the peripheral’s output-ready handshake input.

Settings dialog

Select 88-pio in the device list and click Show settings…. Its three tabs are shown below.

General settings

88-PIO general settings with numbered board model, PIA count and Save button

Mark Explanation
1 Board. Select original 88-PIO or 88-4PIO emulation.
2 Populated PIAs. Set how many PIAs the 88-4PIO board contains.
3 Save. Save the board configuration; reopen the computer to initialize it.

Connection with CPU

88-PIO CPU connection settings with numbered base port, defaults and channel mapping

Mark Explanation
1 CPU base port. Set the first port claimed by the selected board.
2 Set default. Restore the selected model’s standard base port.
3 Port map. Review the CPU ports and channel registers derived from the base port.
4 Save. Save the mapping; reopen the computer to apply it.

Interrupts

88-PIO interrupt settings with numbered RST vector and default button

Mark Explanation
1 Interrupt vector. Choose the RST vector used for board interrupts.
2 Set default. Restore the standard interrupt vector.
3 Save. Save the vector; reopen the computer to apply it.

Configuration file

Set these keys in the existing [DEVICE.settings] table for 88-pio in the computer’s TOML file.

Key Default Values Meaning
boardType "88-4PIO" "88-PIO", "88-4PIO" Board model
basePort 0xA0 for 88-4PIO; 0x04 for 88-PIO 88-4PIO: multiples of 16 from 0x00 to 0xF0; 88-PIO: even addresses from 0x00 to 0xFE First CPU port; avoid overlaps with other devices
piaCount 2 1–4 Number of 6820 PIAs on 88-4PIO; ignored by 88-PIO
interruptVector 7 0–7 RST vector used when the board raises an interrupt

For example, the default 88-4PIO configuration is:

[DEVICE.settings]
boardType = "88-4PIO"
basePort = 0xA0
piaCount = 2
interruptVector = 7

Use decimal or hexadecimal TOML integers. For the original 88-PIO, set boardType = "88-PIO" and basePort = 0x04. Close and reopen the computer to apply changes made directly to the file. The settings dialog previews the port mapping; save its changes, then reopen the computer to apply them.


This site uses Just the Docs, a documentation theme for Jekyll.