.:[Quick and Timely SBC 2/4 Repair and Modifications]:.

Topic: Repairing the Q&T SBC 2/4 and adding memory management
Date:  2019 JUN 29

Quick and Timely Systems (originally CompuTime) produced a Z80 based S-100 single-board computer called the SBC 2/4 (or SBC 880) in the early 80s. It is a typical Z80 SBC of the era, containing the CPU, boot ROM, scratchpad RAM, a serial console USART, and some parallel I/O. You can read John Monahan’s description on s100computers.com, which includes links to the manual and schematics.

I’d acquired two of these boards some time ago in a lot of industrial control equipment. One board was populated and complete, the other had only regulators, some capacitors, and some sockets installed. They sat for a while, until a fellow vintage computer hacker on the Vintage Computer Forums expressed interest in having a small S-100 system built up that could run CP/M Plus with banked memory. The Q&T SBC 2/4 stood out as a good choice for a CPU board.

Initial Check-Out and Repairs

I started with the populated SBC in an 8-slot Morrow Wunderbuss backplane, connected to my Lambda current limited triple voltage supply. The board was totally unresponsive and generated some weird serial signals. I plugged in a Jade Bus Probe and discovered the Z80 “running wild” through address space, not even responding to the *PRESET signal from the S-100 bus. This turned out to be an intermittent CPU socket. Below is the SBC with the socket removed, it was replaced with a high quality machine pin socket:

CPU socket removed Closeup of CPU area

This was not to be the only socket with issues! I eventually removed all of the 14- and 16-pin sockets, as well as the 24-pin sockets for ROM and 8253 PIT, and the 28-pin USART socket. The sockets removed were cheap single-wipe types, similar to the type originally used for the CPU socket. The 18-pin RAM sockets and 20-pin buffer sockets seemed to be of acceptable quality and were gold-plated dual wipe types, so they were left in place.

Replacement sockets were installed for the ROM, 8253 PIT, USART, RS-232 buffers, address comparators, and bus drivers. The 7400 series logic on the board was soldered directly. In the process of repairing the board, I switched from mostly straight 7400 series to 74LS series to reduce power consumption and get the heat dissipated by the 5V regulator down. Here’s the board with all socket rework completed:

Low quality sockets removed and replaced

Logic Problems and Other Issues

After replacing the CPU socket, the SBC would reliably reset, but still “ran wild” through address space. It was discovered that a bad 7402 in the ROM select circuit was preventing the boot ROM from being selected. With that replaced, the ROM started execution but hung up before generating any serial output. This turned out to be a dead 8253 PIT, which was not generating any clock for the USART.

With ROM running and a good USART bitrate clock, there was still no serial output on the console terminal. It turned out that someone had stuck a 74LS08 in place of the 1489 RS-232 receiver chip! That explained the weird serial behavior shown on the lights box. With that replaced, the system came up and signed on with the QT MONITOR. The QT Monitor V1.1 can be downloaded here, via FTP (or here, via HTTP). It is programmed into a 2708 EPROM at 0xF000.

There were still a few issues to sort out. As stated above, I ended up replacing most of the sockets on the board. I also replaced the 7805 5V regulator, though this was largely due to removing it to clean the heatsink and apply new thermal compound. The board was running hot, even with the +8V rail at 7.5V, Switching to 74LS series logic reduced +8V rail current consumption by around 250 mA, a significant reduction.

Wire wrap jumpers and new resistor pack

As seen above, the DIP resistor pack was removed in the socket removal process: there was a 14-pin socket installed, but a 16-pin resistor pack present. It was replaced with a proper 14-pin device. The jumpers near the resistor pack were a mess, and were replaced with wire wrap pins.

The last repair item was to replace the serial console header that came with the board. Someone had soldered a small single-row header into the top row of the socket, and then soldered wires directly to the header pins to make up a short serial pigtail. The pin layout for the console connector is compatible with a 25-pin IDC D-SUB connector crimped onto a ribbon cable, so the old header was removed and replaced with a right-angle 26 pin shrouded header. A new console cable was made up:

Old serial header New serial header and cable

Here’s a picture of the board with all repairs complete, ready for a few modifications:

Repaired SBC, before modifications

Adding ROM Switchout

With the SBC functional, it was time to tackle a few modifications that would make the board more useful. First off, adding the ability to switch ROM out under software control. This allows for the use of a full 64K of RAM under operating systems like CP/M. There is parallel I/O on the SBC, but it’s implemented with a pair of 74LS374 latches, which do not have a reset pin and come up in a random state. For ROM switchout functionality to work, the ROM needs to be enabled when the system is reset.

I achieved this by replacing the output latch at U16 with a 74LS273. The ‘273 pinout is identical, except that it has a *CLEAR input where the ‘374 has an *OUTPUT_ENABLE input. Both functions use pin 1. On the SBC, pin 1 is tied to ground, such that the ‘374 is always outputting. To use a 74LS273, simply cut the ground tie-up to U16 pin 1, and jumper pin 1 to Z80 pin 26 (*RESET). In this configuration, the output latch will reset to all outputs low whenever the Z80 is reset.

Having an output that goes low on reset makes for simple modification to the ROM control circuit. The DS8131 comparator at U30 decodes the ROM’s address. This comparator has an active-high STORE input on pin 7, which causes address comparisons to stop when high, and allows comparisons when low. It is tied to ground on the SBC. Cut the ground tie-up and jumper pin 7 to an output on U16. I chose to use bit 7, which is U16 pin 12.

To disable ROM, the code which sets U16 pin 12 high must execute from RAM, so that a ROM address compare is not selecting the ROM. Here’s a picture of the jumpers for disabling onboard ROM under software control – note that onboard RAM is also disabled when ROM is switched out (discussed below):

ROM/RAM switchout control modification

IEEE-696 Memory Management

It is easy to expand upon the above ROM switchout scheme to get (almost) full IEEE-696 memory management. The other data lines can be connected to the A16 through A22 lines of the S-100 bus. I chose to ground A23 since connecting it to the bit shared by ROM disable would make for weird extended addressing. With the remaining 7 extended address lines, up to 8 MB of RAM can be addressed.

When using IEEE-696 extended addressing, it is necessary to have a “global” or “common” area of RAM which ignores the extended address bits. Otherwise, switching the extended address would cause all current RAM to page out. Without exceedingly tedious efforts, the program would run away once the address switch happened. For small, simple systems, the 1K of static RAM on the SBC can be used for this purpose. If the onboard SRAM is not used for this purpose, I’d recommend cutting its address comparator’s ground tie-up on pin 7 of U29 and jumpering to pin 7 of U30, so that the SBC’s RAM and ROM are switched out together.

A more common solution for “global” or “common” memory is to use a smaller RAM board that does not handle IEEE-696 extended addressing. This is an excellent use for those 8K and 16K SRAM boards that might not seem practical in a large, banked CP/M Plus system. For this particular system, this was the chosen solution. A CompuPro/Godbout EconoRAM IV was configured to occupy the 16K block from 0xC000 to 0xFFFF. Any extended addressing RAM boards should be configured not to respond to this memory range, no matter what the upper address bits are.

Here are two closeups of the extended addressing connections to the edge connector, and the ground tie-up for A23:

Front side address jumpers Back side address jumpers

Final Thoughts

The Q&T SBC 2/4 proved to be an excellent choice for this build. In addition to being a nice, simple 4 MHz Z80 SBC for the S-100 bus, it was easy to modify for added memory management needs. Additionally, this board will be used with a SD Systems Versafloppy II, which requires a PHI1 signal on the S-100 bus. Not all later Z80 boards provide this, but the Q&T SBC 2/4 does.

One shortcoming of the SBC is a lack of I/O address mirroring. On the 8080, the low and high bytes of the address bus contain the same byte during I/O instruction execution. With the Z80, the upper byte can be one of several values, depending on the I/O instruction being executed. This often results in the low and high address bytes being different, which is a problem for older S-100 boards that only use the high address byte for I/O addressing, like the Solid State Music IO-2. For this reason, the Vector Graphic ZCB remains my current favorite S-100 Z80 SBC.

And, here are two pictures of the completed SBC project, from the front and back:

Front side after modifications Back side after modifications

CP/M machines running



Copyright (c) 2024 Jonathan Chapman