Supra MicroPort XL
- Year
- 1986
- Type
- Interface
- Category
- Parallel bus prototyping board with PIA
- Manufacturer
- Supra Corporation (Albany, Oregon)
- Tags
- supra, pbi, parallel-bus, pia, 6520, prototyping, kit, 800xl, 600xl, interfacing, diy
Overview
The MicroPort XL is a kit, not a finished gadget. Supra Corporation, the Oregon company that grew out of Microbits Peripheral Products, sold it as a starting point for hobbyists who wanted to wire their own devices to an Atari: LED displays, printer interfaces, home-lighting and security controllers, robot drivers or an EPROM programmer. It plugs into the 50-pin expansion connector (the parallel bus) on the back of a 600XL or 800XL and puts a 6520/6821 PIA on the bus. That is the same chip the XL uses for its joystick ports and memory banking (see PIA), so programmers already knew how to drive it.
Antic reviewed it in February 1986 at $49.95. Charles Cherry called it a prototyping board for the hardware hobbyist and said it did what Supra claimed, but he found the assembly booklet "thoroughly confusing". In particular, the 50-pin connector goes under the board, whatever the instructions say.
Specifications
| Item | Detail |
|---|---|
| Connects to | 600XL/800XL expansion connector; a $30 adapter plug let it work on the 130XE's ECI. Not for the 400, 800 or 1200XL |
| I/O chip | 6520/6821 PIA, socketed |
| I/O lines | 20: two 8-bit bidirectional ports (A and B), each with a data-direction register, plus CA1/CA2 and CB1/CB2 handshake lines |
| Address | DIP switch selects page $D100, $D500, $D600 or $D700 (decimal 53504, 54528, 54784, 55040). It can't sit on $D300, where the computer's own PIA lives |
| Register layout | page+0 Port A data, +1 Port B data, +2 Port A control, +3 Port B control (mirrored through the rest of the page) |
| Interrupts | PIA IRQ wired to the Atari's IRQ line; user code hooks the vector at $0216/$0217 |
| Power | Separate wall adapter (110 V AC to 9 V DC) and an on-board 7805 regulator supply +5 V at about 300 mA for the PIA and your circuits |
| Other | All expansion-bus lines brought out to solder pads; about 10 square inches of plated-through prototyping area; a 74LS688 (or AM25LS2521) comparator does the address decoding |
| Price | $49.95 (1986) |
How it works
The register order is deliberate. Supra arranged data registers first and control registers second, the same order as the Atari's own PIA at $D300. Any program that drives joystick ports through PORTA/PACTL will work the same way here after you change the base address. Bit 2 of each control register switches between the data-direction register and the data register, just as on the built-in chip.
The manual's first example, in Atari BASIC, uses the $D700 page (55040). It writes 0 to the control register to reach the direction register and sets all eight lines to outputs. Then it writes 4 to the control register to return to the data register and counts from 0 to 255 on the port. A matching assembly-language example does the same counting, using the real-time clock at location $14 for the delay. A small sketch of the idea:
10 PORTA=55040:PACTL=55042
20 POKE PACTL,0:POKE PORTA,255:REM ALL OUTPUTS
30 POKE PACTL,4:REM BACK TO DATA REGISTER
40 FOR N=0 TO 255:POKE PORTA,N:FOR D=1 TO 50:NEXT D:NEXT N
The handshake lines give it more than the joystick ports. CA1 and CB1 are inputs that can set a flag or raise an interrupt on a rising or falling edge. CA2 and CB2 can be inputs, strobed outputs or plain output bits. The control-register bit map (IRQ flags in bits 7 and 6, Cx2 mode in bits 5–3, data/direction select in bit 2, Cx1 edge and enable in bits 1–0) is printed in the manual. Supra also included the PIA maker's data sheets and told users to study them.
The ports are TTL level. Supra advised opto-isolators or transistor drivers for anything heavier than another logic chip.
What came in the box
The kit has the circuit board, a 50-pin edge connector, a power jack and wall adapter, the PIA, the comparator, the 7805 regulator, a four-way DIP switch, sockets, capacitors and resistors. There are also two application packets: a digital clock with LED displays, and an EPROMer EPROM programmer. The manual also lists all 50 lines of the parallel bus. For deeper bus work it points readers to Earl Rice's series on the parallel bus in Antic, which began in January 1985. Supra invited owners to send in finished projects, with schematic, parts list and commented source code, for a planned users' newsletter.
To assemble it you solder the edge connector first, then the sockets, bypass capacitors, resistors, DIP switch, power plug and regulator. Then you check for +5 V on the socket pins before fitting the chips. For the first power-up the manual says to set the switch to $D700, plug the board into a powered-off computer, and use a monitor program to watch the PIA registers.
Using one today
- Mind the address map. The board decodes its page with a simple comparator, and the manual warns that pages other than its default may clash with chips already there. Page $D100 is the area intelligent PBI devices use, and $D500 is the cartridge-control area that bank-switched cartridges write to. Page $D600 or $D700 is usually the safe choice.
- 130XE and later machines need an ECI-to-PBI adapter. Supra sold one; modern equivalents exist.
- Emulators don't model the board, so test your code on real hardware.
- For simpler projects the two joystick ports may be enough. See joystick-port interfacing and the dual PIA mod, which puts a second PIA inside the machine instead.
Credits
- Antic Vol. 4 No. 10 (February 1986), Product Reviews: MicroPort XL (Charles Cherry) — AtariMagazines.com (Kevin Savetz), 1986
