Thursday, January 27, 2022

Forty Years of Personal Computing - MC6800 years - Cassette Tape and BASIC

Percom CIS-30+. Note that the handles of two
switches have broken off.
I don't have a lot of records about the early use of my  my first personal computer - the SWTPc 6800 Computer System. I purchased it in November of 1977, built initially with 8 KB of memory, shortly upgraded to 12 KB.

Around December 1977, I purchased the Percom CIS-30+ cassette tape interface. These interfaces allowed one to store and load programs on audio cassette tapes. 

The CIS-30+ had major advantage over the SWTPc AC-30 cassette tape interface. Like the AC-30, the CIS-30+ supported the 300 bps Kansas City standard, but it could also record and decode at 600 and 1200 bps. This allowed programs to be stored and loaded two to four times faster. 

Insides of the CIS-30+.
One early modification I made to the CIS-30+ was a small LED for the Tape On switch. This switch changed the serial input from the keyboard to the tape interface. More than once, I had left the switch in the on position and wondered why I couldn't type anything from the keyboard.

Originally, the CIS-30+ sat on top of the SWTPc 6800 Computer System. At some point, before I moved to Atlanta, I removed the board from the small aluminum case, and mounted it on the front panel of the SWTPc 6800 Computer System, in a space right above the power switches. This made the whole unit more compact, and reduced the number of cables that had to be dealt with. 

I've since removed the cassette interface, and the holes that remain in the computer font panel. 

The first program loaded was Rob Uterwick's Tiny Basic, which required 4 KB of memory. That was perfect for my machine, as it left 8 KB of space for programs.

Tiny Basic was distributed uniquely.  The May 1977 issue of Interface Age contained a thin plastic record with Tiny Basic in Kansas City standard format. I jigged up a circuit so I could play the record on my family stereo and record it on a cassette tape. It took several tries to get the levels right, so the recording was readable. The magazine also had a hex dump of the program, so I verified that everything loaded correctly.

Tiny Basic was fun, but very limited - no string variables or functions. In the spring of 1978, I purchased SWTPc's 8K BASIC and the 6800 Co-Res Assembler / Editor.

Rob Uterwyk's 8K
BASIC Manual.
With a full-featured BASIC interpreter, I amused myself by entering games. I had a copy of David Ahl's 101 BASIC Computer games. The dialect of BASIC was slightly different than that in the book, so minor changes had to be made. Still it was fun. I also entered programs that were published in magazines. Hunt the Wumpus was one of my favorites. As was Lunar Lander. 

6800 Co-Res Manual.
The Lunar Lander game was amusing. It prompted you for an amount of fuel to burn at each step, as you headed toward the moon. One time I let the lander get really close, then entered 1.0E+99 -- the largest possible number -- as the amount to burn. The result must have caused some kind of weird numerical overflow, since the next step had the lander successfully on the surface!

One of the magazines published a Fantasy Adventure text game in BASIC, and I managed to get it running on my computer. At school we had a "Fantasy and Renaissance Fair", and my computer was featured running this game as one of the exhibits. 

Setting up the computer to run this game was an involved process. First, you had to load the BASIC interpreter. The first part of the 8K BASIC tape had a binary loader program (which was twice as fast as the Motorola S1 format). With that program loaded and executed, you would load BASIC. The second step, after BASIC was running, one loaded the game from a different cassette tape. Then one could execute the game. All of this was done at 1200 bps speed, and the process took nearly 30 minutes. 

Someone managed to kick the power button on the computer in the middle of playing, turning it off. I spent the next 30 minutes of the festival re-starting the game....


Sunday, January 16, 2022

The Desktop Shelves

Updated shelves as of January 2022. The AL-80A
Amplifier is just off to the right side, on the desk.
Setting up my shack in my first home, in 1986, I needed to stack equipment. My operating position was a finished door on top of two filing cabinets, something that I used in my previous apartment. While the table was big enough, shelves were needed to easily access all my equipment. 

I came up with a design using 1x12 lumber. There are three shelves, one 1", 12" and 22" above the tabletop. I chose these heights because it allowed me to slip my paper log books and other operating aids under the bottom shelf -- under the bottom row of gear. 

I bought a stack of 1x12 boards, borrowed a friend's table saw and cut the pieces to length. I laid them on edge on the cement floor of my garage, glued the edges and pieced them together with wire brads. Everything lined up OK -- the result was pretty square.

35+ year old shelving unit, before
it was removed from desk
The shelves were 48" wide ( 8 foot boards cut in half ), and had two uprights under each shelf. These shelves worked for several decades.

Over time, I noted problems. The upright supports limited the equipment I could put side by side, because only so much would fit. And the lowest shelf was problematic -- it meant my computer was in front of the shelf -- which meant my arms hung off the desk, with my forearms resting against the edge of the desk. This caused a lot of fatigue when contesting. Plus, I had stopped using paper logs back in 2006, so there was no reason for the lower shelf.

Micro-shack, before I moved.
I liked the layout I had back in the micro-shack. The desk surface was small (just a couple of inches wider than 5 feet), and the primary equipment sat on the desk itself, with other gear on a shelf. This meant I could re-position my gear at will. Best of all, the computer could be front and center, with my forearms resting comfortably on the desk itself. 

After 35 years, the requirements came together. I needed a shelf unit with two shelves. The first shelf would be 12" above the desk, and the second shelf 22" above the desk. This left more than enough room to slide a 15-17" laptop under the bottom shelf. The shelves could be a little wider, to accommodate more equipment. Because my copper pipe grounding bar was a little more than 53" long, I opted to make the unit 52" wide. 

I liked having the AL-80A amplifier on the right side of the desk, canted slightly to make the controls accessible, and allow for good cooling airflow. With a 52" wide self unit, this meant about 8" of unused desk space on the left-hand side. That was fine. That part of the desk is right next to a wall, and I don't put equipment that deep -- usually that's where my headphones and operating aides end up.

The bottom and top shelves would be separated by two uprights, with openings of roughly 17" on the left and right, and 15" in the middle. Under the bottom shelf, there would be no uprights. Instead, to keep the shelves from bowing, I used a piece of 1x4 as a sheer web at the back of the unit. 

Here are the component dimensions used:

  •   top (1x12) - 52” 
  •   shelf (1x12)  - 50 1/2” 
  •   ends (1x12) - 21 3/4” (2) 
  •   separator (1x12) - 10” (2) 
  •   shear web (1x4)  50 1/2” 
I bought the requisite 1x12 and 1x4 lumber, but didn't cut or assemble until later. This was unfortunate, because the lumber cupped a little bit as it dried out in my basement. This made the pieces a little harder to fit together. I used the same construction technique I used before -- glue and wire brads. 

And even though I put the pieces together on my very flat workbench, a little bit of twist was introduced in the bottom shelf. It doesn't quite line up in the front like it should -- something I'll be looking at for the next 30+ years. I considered busting it apart and starting over, but I decided it would do as is. 

Assembled unit with
grounding bar installed
I intended to stain it and seal with polyurethane. However, I found that my stain had turned into a solid mass of jelly and was unusable. Instead, I applied three coats of polyurethane. The resulting finish is quite handsome.

The shelf unit is relatively light and quite sturdy. I'm sure it would support my weight, but I didn't try. The copper pipe grounding bar fastens to the 1x4. I use small hose clamps to attach wires to the grounding bar. This ensures that all gear is properly bonded to ground.

I'm very satisfied with the end result - plenty of room for gear on the desktop, with other gear on shelves at a handy height. The bits and pieces of equipment are slowly coming back to the operating desk, and I'm being careful in deciding what goes where -- it can get awfully cluttered. 

I do love having a lot of space for computer gear on the desktop. I've had as many as three different laptops all running at the same time on the desk.

Now I've got to finalize where everything goes. I've already decided I need to move the P3, and the KK1L antenna switch matrix is going to end up on the basement wall on the Single-Point Ground panel.


Saturday, December 25, 2021

Fifty Years Ago - The AM Count-down

Original log book from
1971.
When I first got into radio, in 1971, I barely knew what I was doing. I had done some shortwave DXing with my GR-81, but that rig worked much better on the AM broadcast band than anywhere else. Just before labor day of 1971, I put up my first outdoor antenna. 

Previously, I had just used a spool of magnet wire strung around the ceiling of my attic bedroom. This was not a very good antenna. Just before school started in 1971, I bought a 25 foot roll of small speaker wire and unzipped it all. Soldering the two pieces together, this gave me 50 feet of antenna wire, which I strung out the window, across the garage and into a tree at the edge of the yard. 

I was eager to try this new antenna, so I proceeded to tune across the AM broadcast band that evening, and log each station I could. I started about 9 PM, and kept tuning until midnight. The next evening, I continued the process. 

Sep 3 log page.
That first night, I had started at the bottom of the band at worked my way upwards. The second evening, I continued upwards, but then reversed and went lower in frequency. This made more sense to me, and my later "countdowns" that I would make in subsequent years all started at the top of the broadcast band and continued toward the bottom. 

Sep 4 log page.
This event inspired me that for the next several years, I would try to do a "countdown" around Labor Day weekend. It marked the end of the summer, but also the beginning of the radio season. 

I remember it distinctly. I would sit patiently and wait for the AM stations to ID, generally at the top or bottom of the hour. If I got lucky, they would ID sooner. 

Hard to believe that event was over fifty years ago. 



Saturday, December 18, 2021

Oh, Wow, What a Year!

I can't believe I haven't posted in over six months. It's been an interesting year. Things really heated up quite a bit at work in the late spring, and I finally got the opportunity to take a couple of nice vacation times in the summer before Covid sprung back up.

And then, in October, when I finally thought I was hitting my stride at work a year after a position change -- they laid me off....

So, I've been busy looking for new employment. I'm happy to say that I have accepted a position that starts in January, so perhaps I can catch up on some much needed writing before then. 

Monday, May 3, 2021

Forty Years of Personal Computing - 6800 - The Need for Speed

The 1.0 MHz clock board, attached to the back
of the MP-A CPU board.
When I ordered my SWPTc 6800 Computer System, I was expecting a 1 MHz 6800 computer. It wasn't quite.

Yes, 1 MHz seems glacially slow by today's standards, but this was 1977! And the Motorola and MOS Technology chips of that time could access memory in a single clock cycle, so they were just as fast as the Intel or Zilog chips at twice the clock speed. (Those devices needed two clock cycles, minimum, to access memory and typically ran 2-5 MHz)

Perhaps as a cost-saving measure, the SWTPc MP-A board only has one crystal. This crystal connects to the MC14411 bit rate generator, which requires one specific frequency: 1.8432 MHz. The MC14411 contains a number of divisor networks to offer common bit rates for serial communication. 

The designers of the MP-A used one of those outputs to drive the MC6800 at exactly 0.9216 MHz through clock conditioning circuitry. The MC6800 has two clock inputs that must be non-overlapping. This required about three integrated circuits and about 20 discrete components to produce. (Motorola later developed the MC6875 chip for this purpose. The later MC6802 had an on-chip clock oscillator and driver)

Clever, perhaps, but disappointing. It meant that my computer was almost 8% slower than specified. 

Harsh Reality

Original crystal from my MP-A.
All this assumes you are start with a 1.8432 MHz crystal. In my unit, the crystal was actually 1.7971 MHz! This must have been another cost-saving measure. Perhaps the 1.8432 crystals weren't available, or perhaps they were more costly, since they substituted a unit that was 2.5% slower. 

This meant that I didn't have a 0.921 MHz computer, I had a 0.89 MHz computer. It was 11% slower than 1 MHz.

This would not do. 

First Modification

Changing the clock speed is actually a simple matter - one need only introduce a clock signal into the conditioning circuits that drive the MC6800. All you needed was a crystal oscillator and a 1 MHz crystal.

Close-up of the clock board.
I used a very simple circuit using two gates of a 7400 to create a very reliable oscillator. Even though this circuit was really simple, I wanted it to neatly attach to the CPU board. So, I etched a small circuit board. This was perhaps my second or third attempt at making a printed-circuit board, so it isn't pretty.

I masked the board by hand-painting etch resist. The lines are not very straight, and the lands have all different sizes. Most of the board was unetched and forms a ground plane that the crystal case is tied to. The result is very crude and rough.

Crude but functional etching.
The smallest drill bit I had was quite large for the pins, so the chips and other components don't rest very snugly, and are held in with solder blobs. All of the parts came used out of my electronics junk box, so they are different sizes. Only three wires connect to the MP-A: 5 volt power, ground, and the oscillator output. 

It worked!

I now had a computer which was 11% faster than stock. At the time, It really felt like I had improved the computer.

Overclocking

Having an external clock oscillator means you can experiment with different clock speeds. Some time circa 1980, it dawned on me that I might push the processor faster than 1 MHz

Now, the Motorola 6800 microprocessor line had different codes for different speeds. No letter indicated 1 MHz, and "A" indicated 1.5 MHz, and "B" was 2 MHz (eg an MC68A00 is 1.5 MHz, and MC68B00 is 2 MHz). This wasn't just for the processor, but it applied to all the peripheral devices in the line (MC6810, MC6820, MC6830, MC6850, etc). All of my components were 1 MHz only. Could it possibly work at higher speeds?

At an electronics shop, I found a surplus 2.01 MHz crystal cheap, so I figured I'd give it a try. I removed the 1.0 MHz crystal and installed the new unit.

It worked!

I ran that computer for a couple of years in that configuration, and I never had a problem. Those 1 MHz components could work at 2 MHz, although likely not through the entire 0 to 70 degrees C rating for commercial devices. 

This experience proved useful several years later at work, circa 1985. We had upgraded from the 4.77 MHz IBM PCs to 6 MHz IBM ATs. Of course, I opened up mine immediately and noted that the CPU crystal was 12 MHz and socketed. A trip down to the electronic surplus store netted several crystals at 16, 18 and 20 MHz. That IBM AT on my desk would not boot up at 10 MHz (using the 20 MHz crystal), but it ran just fine at 9 MHz. I made the same modification to several other colleague's computers as well to 8 or 9 MHz. We ran that way for years. And when it came time to turn them in, the original 12 MHz crystal was easily swapped back in.

Wednesday, April 28, 2021

Remote Operation - Level 0 (RealVNC)

Sometimes experiment pays off. You never know until you try.

I was reading an article about remotely controlling computers over the internet. It occurred to me that if I could do this, it would be easy to operate FT8 from my Gwinnett QTH when I was at the Fulton QTH. Although I have rigs in both locations, Gwinnett is where I have the K3, and can operate on 6m. 

I started to research solutions. I found a product called RealVNC that can be licensed free for non-commercial use on up to five computers. Comes with a separate server and viewer product, and it works on Macs as well as Windows, Linux, even the Rasberry Pi. 

You have to create an account on their web site, but the installation was easy. I have a MacBook Pro hooked to the K3 at the Gwinnett QTH. I installed the server there. Then I installed the viewer software on a couple of Macs, and one Windows computer. 

Making the connection from Viewer to Server requires 2-factor authentication, so it is pretty secure. 

This software worked great. I was easily able to connect to the MacBook Pro and use WSJT-X. The K3 has to remain turned on, and I have no way to remotely change antennas, so I left it switched to the 3-element 6m beam. I also have no way to rotate the antenna remotely (it uses Armstrong rotation...), so I left the beam pointing SouthEast. I was hoping to pick up some propagation to the Caribbean or perhaps Central or South America. 

The first week of this experiment bore fruit the next day. I was in Fulton county, but checking I lucked into an opening to South America, where I worked two stations in Chile and two in Uruguay. Two new countries and four new grids! The next day, there was a powerful, but brief opening to the Cayman Islands, and Belize.

While one cannot predict 6m propagation, remote operating gives me a tool so I don't miss out on openings while I'm away from the Gwinnett QTH. 

This is only Level 0 of Remote Operating. I can only do FT8, and I can't change bands. That's next, I'm working on an automatic antenna switch driver to choose an antenna by the band selection of the K3. 

Wednesday, April 14, 2021

Forty Years of Personal Computing - SWTPc 6800

Old computer veteran from November 1977,
showing a few front-panel modifications.
After I completed the SWTPc CT-64, I ordered the SWTPc 6800 computer system in November of 1977. How much memory to order was a consideration. The original kit had the MP-M board with only 2 KB of memory. SWTPc changed this earlier that year to add an MP-MX expansion for a total of 4 KB. 

I wanted to run BASIC, plus the co-resident Assembler / Editor (called Co-Res), and this required 8 KB, plus space for programs. To basic kit, I added two MP-M boards. But, I did not order the MP-MX 2K expansion kits. I figured I could purchase the 2102 1Kx1 static RAM chips cheaper somewhere else. 

Design

The design of the SWTPc 6800 Computer System results from the MIKBUG ROM. Motorola developed MIKBUG to run a MC6800 evaluation kit. The essential features of the SWTPc system are drawn from this evaluation kit. The ROM resides at address E000, 128 bytes of RAM at A000, and a serial device at address 8004. 

The serial device is worth mentioning. For the original evaluation kit, the MC6850 serial device wasn't ready, so Motorola shipped the MC6820 parallel interface adapter (PIA), a bit of divider logic and used software to "bit-bang" all serial communications. SWTPc offered two serial port boards, the MP-C and the MP-S. The MP-C uses a MC6820, while the MP-S uses the MC6850 asynchronous communications interface adapter (ACIA). MIKBUG requires the PIA, so that's what the MP-C uses. This means that the original 6800 computer system cannot receive any characters from the console terminal unless the CPU is actively polling the MP-C I/O board.

The resulting memory map makes perfect sense for an evaluation kit, but left something to be desired as the system grew:
  • 0000-7FFF - available for RAM (32 KB)
  • 8000-9FFF - 32 bytes for the 8 I/O slots (4 bytes per slot) repeated
  • A000-BFFF - 128 bytes of ram repeated
  • C000-DFFF - available for RAM (8 KB)
  • E000-FFFF - 512 bytes of MIKBUG ROM repeated
Back in 1975, 32KB of memory space seemed enormous. SWTPc recommended only four 4K boards be installed, based on power supply considerations, which topped out at 16 KB. Later, it would become a serious constraint.

Building

The 6800 computer system kit consisted of several sub-kits:
  • MP-B Motherboard
  • MP-P Power Supply
  • MP-A CPU Board
  • MP-M + MP-MX 4K Memory Board
  • MP-C Console Serial Port Board
  • Metal chassis and case to house the computer
After my experience with the CT-64, I was prepared for SWTPc's minimalist assembly instructions.

MP-B Motherboard
MP-B

The MP-B was straightforward, although there are nearly 600 connections to solder the bus pins to the heavy bus traces. That was a lot to ask for my 25 watt Weller soldering pencil. The motherboard design has some decoding and buffering logic to separate the seven 50-pin main slots from the 30-pin I/O slots.

(In the picture, you'll note that I have replaced the original nylon spacers with #8 screws. SWTPc used nylon spacers that clipped into chassis bottom and allowed the MP-B to snap in. Those goofy nylon spacers never worked well and often would come loose from the chassis bottom. There's also some additional logic that enhances decoding -- more on that in a future article)

MP-P

I struggled a bit with the MP-P power supply. It had a lot of heavy wiring and board traces. But it is simple and went together quickly.

MP-A

MP-A CPU board
The heart of the whole computer system is the MP-A board. Compared to later CPU boards, there's quite a few discrete components on this board, related to the clock drivers and 555 reset timer. Given my experience with SWTPc kits, it wasn't difficult.

(You might notice my board is missing a few things - like the MC14411 chip and its associated crystal as well as the heatsink on the 7805. These components moved to other projects when the board was retired)

MP-M / MP-MX

MP-M 4KB memory
boards
The MP-M boards with the MP-MX expansion were the most dense. They have 32 total memory chips, plus seven other integrated circuits, two voltage regulators and a handful of discrete components, all on a 5 1/2" by 9" board. It was a lot of soldering. I did this twice, using parts from the second MP-M kit to act as the MP-MX kit. 

A few weeks later, I built the third MP-M/MP-MX, using 2102 chips I ordered by phone. It was cheaper, but not by a lot. There were a few other components for the MP-MX I either obtained from my junk box, or bought locally. You can tell that board by the yellow disc ceramic 0.01 uF capacitors. 

(In the photo, these boards are missing components, too. The molex connectors are missing from the center board, and the two top boards have donated their heatsinks as well. If you look closer, you'll find a few memory chips that are socketed or are mounted on socket pins. All these chips failed in the first couple of years of use and had to be replaced)

MP-C

MP-C board, modified
The MP-C was easy to build by comparison. Generally the I/O boards are really simple. The MP-C had nine integrated circuits, but three of these are six-pin opto-isolators. 

This board was designed to support RS-232 connections, as well as 20 mA current-loop interfaces that were typical of mechanical teletypewriters. 

(In the photo, the MP-C card has been modified into an MP-S type card using a MC6850 ACIA. The components related to the 20 mA current-loop interface have been removed, as well as the clock divider circuits)

Debugging

The big challenge for this kit was making it all work. Yes, I had a few solder-bridge problems with the CT-64 kit, but I managed to puzzle them out. It was easier where I could see things on the screen.

For the SWTPc 6800, this was harder. A lot of the system had to work to get the MIKBUG asterisk "*" prompt to show up. How as a kid who is not even 17 years old and owns no test equipment other than a cheap Volt-Ohm Meter going to do this?

I was lucky my father worked for a local college and they allowed me to borrow a dual-trace oscilloscope for a few weeks. This allowed me to track down my problems. I was experienced in building enough that I managed to avoid obvious problems like putting components in backwards, or putting the wrong components in a spot. 

You'll note most of the integrated circuits in the SWTPc kits are not socketed. Sockets were considered optional for most components. The MP-A board has sockets for four chips: MC6800, MC6810, MC6830 (MIKBUG), MC14411. The MP-C board has a socket for one chip: MC6820. There were no sockets supplied for the MP-B or MP-M/MX boards. Some builders opted to supply their own. 

Without sockets, it was important to place components correctly. Unsoldering misplaced components was not a pleasant experience, and it risked damage to the board.

That said, virtually every problem I encountered was either due to a solder bridge, or an unsoldered connection. The SWTPc boards had no solder mask (another cost-saving measure), so making accidental bridges was easy. I found solder bridges on the MP-A board, on the MP-B board, and several on the MP-M boards. 

Indeed, getting the memory boards to work correctly was enough of a challenge that it made me appreciate memory test programs. Some simple tests won't find memory convergence problems.

The SWTPc 6800 computer would function with only the MP-A and MP-C boards plugged in. The MIKBUG ROM monitor could be used to enter short machine language programs into the 128 bytes of scratch memory at A000.  This made it easy to test the other components, such as the MP-M boards.

The Unit

The resulting unit is a smart-looking turnkey box without any flashing lights. (Mine has been modified with 16 LEDs and a few other holes on the front panel, but I'll tell that story later) It came with aluminum angle trim, but I tended to leave it off. I generally had my hands in and out of the box so often I didn't even screw the lid on.

On the original kits, the back panel had four large holes which passed all I/O cables. In later units, SWTPc added punch-outs for DB-25 connectors for serial devices. Mine has four punch-outs arranged in two horizontal groups just inside the two outermost holes. Other units have four punch-outs in a line above the holes. Other builders have modified their back panels to add other connector types.