Monday, March 14, 2022

Decoded the I/O error trying to load the flash of the IOB6120

ERROR 1050 DURING ATTEMPT TO WRITE FIRST BLOCK TO FLASH

When I issued the FL command to load the flash and began feeding it lines of data through the console, at the end of the first block when it compared the checksum successfully, it then failed with an error 1050. I first looked into the source code for the FL command and discovered two things. First, codes of the form 1xxx are failures to do the block erase that occurs before the data write. Second, the three octal characters are the status byte returned. 

SHARP DOCUMENTATION SHOWS THE MEANING OF THE STATUS BYTE

I looked over the documentation on the flash chip I used and found that the error byte 050 octal means two things - block erase failed and the Vccw level was too low. This chip gets two VCC inputs, the regular +5V and a second level which if not at 5V will block any writes/changes. Think of it as the write protect tab of a floppy disk. If I take this at face value, then the failure was due to a low voltage on pin 37 (the Vccw pin). 

LIKELY CAUSES TO BE INVESTIGATED

I checked the gerber files and there is indeed a connection between the VCC pin (13) and the Vccw pin (37), involving a bottom layer trace, two vias and short top layer traces to the pads. 

  • One possible failure mode is a break or bad via. 
  • Another is an issue with the Vccw pin either not being firmly soldered or being shorted to an adjacent pin. 
  • A third area of concern is my modification very near to that pin, where I added a pullup resistor to the continuation of the trace after +5 reaches pin 37, over to the chip enable line for flash. 
  • A fourth possibility is that this is indeed a counterfeit chip, being some other similar flash with changed markings
  • A fifth possibility is that the chip itself is failing.
When I bought this chip, I received four in the package thus I can deal with the last possibility easily. Some diagnosis is required, plus careful inspection and perhaps a reflow of pin 37 while I am there. 

Another possible issue for me to consider is the solder bridging I added for the two additional address pins that don't exist on the original chip for which the board is designed. Rather than taking them to logic low, I tied them to adjacent address bits. That may, however, cause odd problems so I think I will rework this to use jumpers to ground instead. For example, I see at least one of the bits is used to address 'boot and parameter blocks'. 

IOB6120 is alive and talking to the flash, debugging continues

HI-Z TESTS DON'T SPOT OBVIOUS FAKE CHIPS BUT DOES FIND SHORT ON FLASH

I checked all the data pins of the four SRAM and one flash chips, looking for pins that were near ground or VCC rather than high impedance. The SRAM chips looked fine by this measure, so I moved on to the flash. It was while I checked the data pins that I found one shorted to VCC, which was an adjacent pin. 

I looked under the microscope and really couldn't see the short, which seemed to be a bridge up under the body where I couldn't see it. However, some solder wick to the rescue and soon I had the bridge gone. 

WITH SHORT REMOVED, SBC6120 COMES UP WITH IOB6120 IN PLACE

Previously, with the IOB board installed, the SBC6120 stopped in the memory test phase of initialization. Now, it proceeded through to the end and started up the monitor program that communicates over the console terminal. This is very good news.

ISSUE FLASH LOAD COMMAND AND IT SEES THE CHIP

With the IOB not installed, issuing a FL command receives an immediate response that flash is not installed. Now, when I typed FL the response was a question - "overwrite flash?" Again a very good indication. 

At this point, one would set up the terminal program to send lines of text to the console, waiting for the prompt ':' before sending each line. I don't have a terminal program with this capability, just PuTTY and the Arduino Serial Monitor. 

MANUALLY SENDING LINES TO FLASH LOAD

I decided to do a copy and paste line by line from the text file into the PuTTY window as a workaround. I transmitted each line until I got to the end of one block, where the FL command expects to receive a checksum value which it compares to the calculated checksum of the lines previously sent. If that compares successfully, it writes the block to flash then reads text lines for the next block.

WHEN FIRST BLOCK WRITE IS ATTEMPTED, I/O ERROR 1050 IS REPORTED

As soon as I sent the checksum, the load aborted with a message that it received Input Output Error 1050. I suspect this is a compatibility issue because I am using a different flash chip than originally specified. I will do some research into this error and then figure out how to resolve it. This may involve creating my own method of writing to the flash chip or a modification to the SBC6120 firmware to alter its flash write process. 

Starting the debugging of IOB6120 add on to the SBC6120 PDP-8 replica

NEED TO USE LOGIC ANALYZER TO TRACK ACTIVITY OVER THE BUS

The SBC6120 features a 50 pin expansion connector, carried around through the front panel FP6120 to a connector where the IOB6120 is connected. A few of the pins are power and ground, but most are control signals and the main bus. I want to track these, which will require three pods on my HP logic analyzer, each offers up to 16 probes.

The next channel is mechanical - how to access the various signals. With through hole ICs like DIP chips, I can put a grabber around a chip lead, but with surface mount this is quite difficult or impossible depending upon the pin pitch.

If I can build an extender, something that plugs into the FP6120 connector, has a second end to each signal wire that plugs into the IOB6120, and allows attachment of the logic analyzer probes somewhere, that will let me do the job. I would need a female 50 pin on a cable, like an internal SCSI connector. In addition, a few male-to-male adapters which could simply be 2x25 header strips.

LIKELY CANDIDATES AND FIRST AREA TO CHECK

The likelihood is that I have one or more counterfeit chips on the board. Since they have their outputs tied together on the bus, presumably they sit in high impedance until the chip enable line is asserted. If these are not real chips, they likely won't have high impedance on those pins which will jam the bus. 

The four SRAM chips as well as the Flash memory chip are the ones I suspect the most. All other chips were sourced from Digikey or Mouser, reputable suppliers. 

QUICK CHECKS OF SUSPECT CHIPS

To check the suspect chips, I will measure the impedance of the bus lines which should all be high-Z. I can provide power to the NVRAM battery contact to power the SRAMs and again check the state of the bus lines. Pulling the chip enable low at the PCB activates the outputs; again they should only activate with contents. Finally, I can provide 5V to the board, test the bus to see if the flash is stomping on the bus, then pull the flash enable low at the PCB to check for its outputs.

PLAN B AND C IF CHIPS ARE FAKE

The obvious plan B is to attempt to buy from another eBay source and hope that the results are better this time around. If that doesn't work, I will be forced to a complex alternative wherein I will create small PCBs that match the footprint of the pads on the main PCB, then place some tinier alternative chip that will be functionally and electrically identical albeit with a different assignment of signals to pins. 

For the Flash it also requires me to modify the programming which writes the flash image, or write it myself which is the more straightforward approach. Hopefully the IOB6120 treats the flash as pure SRAM for everything except writing new ROM contents via the FL command. 

Sunday, March 13, 2022

Got to the bottom of the serial port issue with SBC6120, added air vents to 1130 Expander box

 AIR VENTS DRILLED INTO THE 1130 EXPANDER BOX CASE

I added side holes to draw in fresh air and top holes above the power supply fan which will exhaust the hot air from the case. Nothing else to do until the tool for extracting and reinserting the Amphenol M series sockets arrives. 

WHIPPED UP TTL TO RS232 LEVEL SHIFTERS FROM SPARE PARTS

Since the SBC6120 makes use of the voltage levels of RS232, the line can swing as high as +12V and as low as -12V, a definite problem when attached to a TTL part that expects voltages in the range of 0 to +5. I had some old chips in my cabinets that I put on a breadboard such that I could convert the transmit output from RS232 and take a TTL receive line and drive it to RS232 levels. 

I used a SN75150 dual driver chip and an MC1489 quad receiver chip to handle the conversions. The first takes +12 and -12 supply rails, the latter uses 5V. I jumpered the SBC6120 lines to the breadboard and then jumpered the TTL side to a USB to TTL adapter I owned. I used a voltmeter and the oscilloscope to confirm the proper levels and encoding of characters.

RS-232 and TTL conversion chips wired to rails

Still, however, I saw nothing but gibberish on the Putty terminal program. I checked with the Arduino serial monitor and the output was the same. Commands keyed in didn't see to be decoded by the SBC6120 nor responded to.

Just to throw in some amusement, one of the ground connections came loose which lead me on a ten minute wild goose chase debugging things until I realized that the RS232 to TTL receiver chip wasn't working because it had nothing on the 5V rail. 

As I looked more carefully at the scope image, the timing of the bit cells looked off so I did some calculations. Aha! The SBC6120 was jumpered for 300 baud but was operating at roughly 110. That triggered a distant memory of my having modified the SBC with a different timing crystal to achieve compatibility with old teletype and typewriter equipment. 

A quick look at the oscillator chip confirmed the issue. It was operating at 1.8432 MHz while the original from the schematic was a 4.9152 MHz oscillator. That gives a ratio of .375 for the serial stream, converting the 300 baud of the design down to 112 baud. 

I changed the oscillator to create 110 baud support

I happened to look in my parts bins and found a bag with an oscillator marked "original 4.9152 crystal". How convenient. I swapped the parts out, configured the jumper for 9600 baud operation, and got clean output on Putty set to that speed. 

I found the old oscillator part!

That is more like it!

IOB6120 HANGING THE SBC6120 STARTUP

Unfortunately, when I add the IOB6120 board, the SBC6120 system hangs in the memory test at startup. I was unable to get it past that point. When I hit the ESC key at startup, the monitor didn't start so that I had no way to enter the FL command to load the flash contents. 

At this point, having checked the soldering very carefully and attempted to move every pad with a dental pick, I will have to move into debugging to figure out what is going wrong. Keep in mind that five of the chips on the board were procured through eBay and thus have a reasonable risk they are counterfeit, which could result in a hang like this if they tie down bus lines or inject spurious outputs. That is, the Flash chip and four SRAM chips are suspect. 

Saturday, March 12, 2022

Checkout of IOB6120 and SBC6120 slowed by serial terminal hiccups

POST CODES AND ACTIVITY AS AN INDICATOR OF OPERATION

The SBC6120 has a set of LEDs that show the progress of startup and any problem that is encountered. The goal is to have the four LEDs end with ON-off-off-ON which occurs with the SBC6120 by itself. If the IOB6120 is added but the FPGA is left active, an illogical state since the firmware for the component was not yet loaded, gives us an error status of ON-ON-off-off which is a memory error. The IOB6120 takes part of the memory range for its function but is not responding properly to the SBC6120 given the lack of firmware. This makes sense.

JUMPER TO DISABLE FPGA ON IOB6120 PRIOR TO LOADING FLASH

Adding a jumper to a pair of pins disables the FPGA and now the system starts up to the normal ON-off-off-ON state, indicating the tests are complete and the monitor is running. The next step would be to connect with a serial port and terminal program, to communicate with the monitor on the board. This is a positive sign in the early checkout of the IOB6120 board. 

POWER CABLE INSTALLED TO FLASH CARD EMULATED IDE DISK

The SBC6120 provides an IDE disk interface, to which I have connected a board that uses a CF card to emulate a disk drive. The board needs power from the main SBC6120 board, provided using a PC four pin to mini four pin cable as typically connected to disk, floppy and CDROM drives. 

SIGNS OF LIFE PRIOR TO TERMINAL CONNECTION

With the board powered, I see it flash when I boot the PDP-8, the front panel lights loop for a bit and I take this as an indication that the OS/8 image has been started properly. Again, until I connect with a terminal program this are suggestive but not definitive indications of health.

FIRST GOTCHA FROM ILL CONSIDERED ACCEPTANCE OF MS WINDOWS 11 UPGRADE

Having been cajoled, hounded, beseeched, urged, prompted and pestered by Microsoft to upgrade my Windows 10 system to Windows 11, along with a projection that everything will work fine after an upgrade, I finally in a moment of weakness acceded to the upgrade. In my heart I knew I would pay the price, but all the programs I tried such KiCAD worked properly which lulled me into false confidence.

Alas, when I plugged in my USB to serial adapter, the device manager entry listed the driver as "upgrade to windows 11 version". I downloaded the latest Prolific driver, only to have the driver message change to "HA hardware not supported". Time to buy a replacement that is supported in Windows 11. 

MOVE TO WINDOWS 8 BASED SURFACE PRO TO ATTEMPT TERMINAL CONNECTION

In the interim, I grabbed my Surface Pro, running Windows 8, to attempt the terminal connection. I wired up the connection between the USB adapter and the DB9 connector from the SBC6120, then powered up. 

The screen output was bursts of gibberish, repeatable but not intelligible. I was not able to see valid output from the monitor. 

MAY HAVE TOASTED THE USB TO SERIAL BOARD DUE TO REAL RS232 VOLTAGES

It was then that I realized that the SBC6120 produces real RS232 - meaning voltages in the range of + and -12V - unlike the 0 and 5V used with TTL serial connections. Both make use of a DB9 with the same signal names, but I may have very well have fried the adapter by presenting it with excessive voltages as well as negative excess swings. 

I have a new adapter on order, Windows 11 capable, plus some RS232 to TTL adapter hardware. Hopefully when I have this on hand I can connect to and communicate with the SBC6120. That is essential in order to download the flash data to the IOB6120. 

Modification to SBC6120 sorted out, additional cable signals to 1130 Extender box wired up

MODIFIED HD6402 UART CHIP WITH SWITCHED CONNECTION

The Universal Asynchronous Receiver Transmitter (UART) chip has a number of pins that are used to configure the serial protocol as to the number of data bits, parity and stop bit length. The SBC6120 PCB ties these to VCC or ground as appropriate to select the default of 1-8-N with a single stop bit. 

The change was made by bending up two pins, to disconnect them from the PCB traces. They were wired to a DPDT switch which provides VCC and ground to the pins, alternately. That is, in one position, the first pin is hooked to VCC and the second connects to ground. The other position of the switch ties ground to the first pin and VCC to the second. 

PURPOSE OF THE TWO SWITCH POSITIONS

Based on the pins selected, this switch toggles between two configurations - 1-7-E-1 and 1-8-N-2. These were reasonable values for connection to the ASR-33 teletype I brought to VCF-W that year. As I no longer own a teletype, this is not needed and should be removed. 

REMOVAL OF THE MODIFICATION

I disconnected the wires that had been tacked to the lifted chip pins, then installed jumpers down to the PCB to restore the original functionality. The switch was then discarded.

REPAIR OF 160 PIN CONNECTOR MUST WAIT FOR EXTRACTOR TOOL

The two wires that came loose were at the top two positions, connector sockets A1 and A2, which are routed to FPGA connector pins D5 and D3. I made a try at soldering the wire to the end of the crimp connector as it sat in the connector housing, but it wasn't feasible to accomplish.

Left two openings are sockets A1 and A2

I therefore have to remove the two sockets that came loose, crimp the wires to new sockets, then re-insert. Because of the spring loaded tines that hold a socket in place, a special tool is needed that releases the tines and pushes the socket out of the holder. I purchased that tool plus some spare sockets but have to wait a few days to receive it before I can continue.

ADDITIONAL SIGNALS CABLE WIRED INTO THE 1130 EXTENDER BOX

I constructed an additional cable to sense and drive interrupt levels 0 and 1, for a fully generalized input-output control of the 1130 system. In addition, it carries a signal that triggers the three button press sequence for booting an 1130:

  • IMM STOP
  • RESET
  • PROG LOAD

I brought the five wires from those signals to the screw terminals for the FPGA connector pin associated with each, as well as bonding the grounds together and hooking them to the PCB of the extender box. 

FINAL ASSEMBLY OF POWER SUPPLY INTO CASE

The power supply is installed and wired up, feeding the PCB and the Power Good lamp on the case. The extra wires out of the power supply were clipped off and covered with heat shrink tubing. At this point, once the two sockets are replaced on the 160 pin connector, I only need to drill some air vents for cool air intake and hot air exhaust before closing up the box. 

Friday, March 11, 2022

Progress on IOB6120, 1130 Extender and a few small disasters

IOB6120 ASSEMBLED AND INITIAL TEST SHOWS SBC6120 WORKING

The header strips arrived, I soldered them onto the FP6120 and IOB6120, then put the entire stack together. That is, the large front panel FP6120 has two daughter boards mounted on the rear, the SBC6120 (PDP-8 replica) and the IOB6120 for additional input-output functionality.

I provided power and watched the machine go through its power on self test with blinking lights on the panel. To go any further, I will need to hook up a terminal emulator and see the prompts from the built in monitor. That will allow me to confirm that the IOB6120 is found and eventually, once I flash the firmware onto the board, that the new board is working properly.

I last used the FP6120/SBC6120 for a Vintage Computer Festival West conference when I was showing teletypes. In order to support the teletype interfaces I was using, I had to make modifications to the SBC6120 interface chip. I added a slide switch that would reverse VCC and ground to a couple of pins on the HD6240 UART chip. I don't remember why or what this does. 

Before I proceed, I have to reverse engineer the change, then decide how I put the system back to original condition. Once done, I can try to connect the terminal emulator to the replica.

BUILT IMPROVED MOUNT FOR 160 PIN CONNECTOR FOR 1130 EXTENDER BOX

I made use of some metal standoffs and a plastic project box to hold the 160 pin connector outside of the extender box chassis, allowing room for the wires to run inside and be connected without the connector body getting in the way. I marked off and drilled the holes, cut out the rectangle to clear the connector body and assembled everything. 

New mount for the 160 pin connector

WIRED SIGNAL LINES TO THE PCB INSIDE EXTENDER BOX

I was able to route and screw down the wires from all 76 of the signals that run over the SAC feature cable to the IBM 1130 system. I will lace or add wire ties to make things a bit neater, once I verify that it all operates properly. 

Beginning the connection of all signal wires

MINOR DISASTER - TWO WIRES TORN OFF CONNECTOR REAR

I discovered that two yellow wires from the rear of the 160 pin connector had been torn loose, likely during all the manipulation to wire up and mount everything. I should be able to access the rear of the connector and hopefully make a repair without needing to buy the pin removal/mount tools for the connector. 

One of the wires that was broken off the connector

SOLDER REFLOW PLATE POWER ON TEST - DISASTROUS RESULTS

The solder reflow plate takes 12V as an input and can draw up to 5A when heating for reflow. Its logic is driven through a linear power regulator that produces 5V to feed the ATMEL ATMEGA328P microcontroller and the LMT85LP temperature sensor. 

As you may remember from previous episodes, this version of the board, recommended by the Great Scott youtube channel, came without a bill of materials. The base project that it claims to have tweaked does have a BOM, but as I discovered it is deficient in several ways. First, it points at parts number from a China supplier and not the manufacturers code or other international supplier numbering. Second, it had gross errors, such as specifying 0402 size capacitors to mount on 1206 sized pads. 

Well, when I powered the board up and began checking power supply values, I soon found that 12V was present on the rails that should have been 5V. The cause was quickly found to be a PCB layout that required a special 'reversed' pin version of a chip but the material in the BOM was for the normal layout. This resulted in routing the 12V straight through to the sensitive parts downstream.

I believe that I have fried the ATMEGA328P controller and the temperature sensor. I may have also blown the .91" OLED panel, but I will wait to see that after I get the rest of the board operating. I removed the offending version of the voltage regulator, which you may remember was also the wrong form factor for the PCB pad spacing, but have not yet removed the microcontroller because there are so many tiny parts very close to it. 

I will build a set of diverters to block the hot air from reaching the capacitors and resistors that sit next to the main chip, while still allowing me to melt the bonds and remove it. I have a few days until the replacement parts arrive before I need to remove the old one, so it can be done at my leisure. 

REORDERED PARTS THAT WOULD HAVE FAILED, PLUS PROPER POWER MODULE

I did find the correct part number for a power regulator for reversed layout and that fit the pads on the PCB. I also ordered all the other damaged parts. I should have it all towards the end of next week.