Tuesday, March 21, 2017

1401 Computer and TV-3 Tube Tester progress

TV-3A/U TUBE TESTER RESTORATION

Today I dug up the proper manual and schematic for my unit, as I tired of waiting for the printed copy to arrive. The seller of the printed copy promised "fast and free" shipping with delivery tomorrow, but when they actually mailed the copy it went out media mail, the dirt cheap way to send paper items that will take it until late next week to arrive. Grrr. At least I have the online version I downloaded.

I printed the schematic and my guide to the eight push buttons, allowing me to begin tracing the power path from the 83 rectifier tube out to the plate pins of the tube test sockets. I quickly discovered that it was simple oxidation on the rotary dials and push buttons - exercising them a bit cleared up the problem and viola! - 150 plate, 130 screen, 40 bias and other voltages appeared as expected. 

I will apply some deoxit to the contacts of the switches while I wait for my new DMM to arrive tonight, which will substitute for the meter movement and let me further check out the functionality of the tube checker. All is looking great with the exception of my saved then destroyed meter movement. 

Once the DMM was received, I installed a series resistor of 2400 ohms, to substitute for the original meter resistance of 2365. The results were reassuring. even with some signs that contacts are not yet fully cleaned. Setting the line voltage to 117VAC gave a reading of about 73 uA, which is roughly half scale. 

Based on that, I extrapolated the readings I got for several tubes, linearly, and the answers for tubes I own and tested were reasonable. If I can get a replacement meter installed this tube tester will be ready to use. 

IBM 1401 RESTORATION

I invested some quiet time with the 1401 when nobody was around, just me and the powered down system, in order to trace out the wiring that must be reconnected to the Start Reset button. First I had to decode the locations on a small backplane into which all the front panel components are wired, then trace the wires and match them to the logic diagrams, finally resolve any faults.

IBM's scheme for these computers is called SMS, which defines the cards, backplanes and other aspects of the machine's construction. SMS cards have 16 traces on the edge that are inserted into a card socket on the backplanes. The pins connected to the traces are labeled A thru R (skipping the letters I and O is an IBM 'thing' apparently because of the potential for confusion with the digits 1 and 0.)

Cards populated with transistors, resistors, diodes and so forth are plugged into the card sockets or slots on a backplane. The typical backplane has 26 slots, numbered 1 to 26 and each slot has pins A to R. The backplane connecting the front panel, however, had only 24 slots. It has the slots facing downward below the backplane, with the cards plugged upward from below.

First step was to determine the orientation. Pin A was the furthest in and pin R is closed to the front panel. Slot 1 is furthest to the left, when looking in from the front panel, while 24 is to the right. There is a rats nest of snarled wires wrapped around the 384 pins sticking up on the backplane, making it hard to count rows and pins, or to get to a specific pin with a probe. 

The logic diagrams (ALDs) will list the spots where signals go on or off a particular backplane, gate or module. In the case of signals connected to the front panel, they went through this backplane 01A2 Axxy where xx is the slot number and y is the pin number. 

I found the various locations, hooked on a circuit tester, and then found the wire that corresponds to it hanging loose next to the Start Reset button. In this way, I identified all 8 wires that run to the switch and knew which signal they contained. That also means I know which terminal on the switch they are to be soldered to. 

One problem we had identified earlier was that none of the eight wires had +6V present, yet one of them must for the switch to work properly. On the logic diagram, this is the +6V CK3 line, which means circuit 3 from the +6V power supply. The backplane also had +6V CK1, CK2 and CK4 wired to it. These are all electrically identical, other than using different wires to bring it up into the card slot. 

I found that the pin which brought +6V CK3 was completely open, not connected at all to the other +6V circuits. They were all mutually connected and would measure properly when the machine is powered up. The pin for this power is 01A2 A24M and that means a paddle card plugged into slot 24 (a stub of a circuit card with discrete wire cables connected to the 16 traces) had one wire which was CK3. It either melted or a fuse element somewhere in the line melted open.

Fortunately, there were several other pins that had +6V from other circuits. I moved the wire that runs down from the Start Reset button over from A24M to A22R, which is +6V CK4, and we now have good +6V running to the switch.

Tomorrow (Wednesday) morning we will solder up all the wires, reinstall the switch and verify everything is good. It is likely that the melted line for CK3 occurred when we had a major short between power supply lines at the switch. The short blew 20A circuit breakers on the power supplies, certainly enough to vaporize a bit of wire.

Thursday, March 16, 2017

More tube tester restoration work

TV-3 TUBE TESTER RESTORATION

With my solid state replacement for the 83 rectifier tube in place, I found that the tester delivered no plate voltage to the circuits - one of the two potentials that are handled by this tube. Time to carefully probe all the voltages present at the tube socket, to determine if I have something burned out in the main power transformer.

The rectifier tube (type 83) is actually a dual diode. Each of the two plates is connected to an opposite polarity AC winding on the power transformer delivering +170V. There is a filament winding where the rectified DC output is the center tap and each side delivers 2.5V AC at opposite phase to light the tube filament.

83 rectifier circuit
I discovered that the filament center tapped winding works fine. I see the 155+VDC at the center tap but it is not getting to the tube socket where I am testing for it. Incidentally, the solid state replacement for the 83 tube uses two rectifier diodes, two resistors and two zener diodes to sit in place of the real vacuum tube.
Solid state replacement for 83 tube - large pins are the filament
I went through the checkout procedures in the manual I currently have, which is for the immediately prior version, the TV-3U and so a few items don't match. In spite of that, I verified all the filament voltages, the screen voltage, grid bias voltage and the small AC signal voltage that drives the gm (transconductance) measurement to validate the tubes gain. The short light tests worked properly as well.

The only thing that didn't check out was the plate voltage on the tube socket when I pushed the gm test button P4 - it should jump to 150V but it did not do that. Having verified the voltage is produced by the rectifier tube, it is just a matter of tracing and checking each step in the circuit from there to the plate pin of the tube socket.

I could have bad contacts on the push buttons or rotary switches that connect the plate voltage to the appropriate socket pin, or it could be a problem with some components in the path. I am overjoyed that this is working so well already, particularly that I don't have a bad power transformer.

Unfortunately, the path from the point where the rectifier delivers 150+ DC is where one of the deviations exists between the TV-3/U and my TV-3A/U unit. As well, there is no "large/small" signal switch on my unit, but the predecessor allows selection of 1V or 5V AC signal on the grid when testing transconductance.

I also discovered that P4 is not the gm test button on my unit - there is a row of pushbuttons with only a couple marked. It think it is better that I wait until I know what is what before I decide whether the plate voltage is delivered or not, plus I need an accurate schematic. I will set this aside until I get the manual and new DMM. 

Working on 1401 computer, restoring tube tester

1401 RESTORATION WORK

One of the 1401 systems is down due to a cascade of problems with the "Start Reset" switch on the console. The switch appeared to be bad, someone soldered on a replacement after which the system appeared to work. 

Later, when the switch was tightened into place, it created a short across power supply lines that popped circuit breakers on 20A power supplies. Another set of soldering including some guesswork as to which wires went where, and we now have a machine that won't reset.

Back to basics, tracing the wires and comparing to the logic diagrams until we can get it working right. It is slightly complicated because we have eight wires but only six total switch terminals. We have to figure out where the two 'extra' wires go, but the ALDs are not close enough to physical wiring diagrams to help us with this. 

The switch is actually a pair of single pole, double throw momentary switches. Since the 1401 has two complementary sets of voltage levels, U and T, the switch must generate reset levels at both U and T levels for the various cards that need that polarity.

U level is -12 and 0 volts, with the lower potential equating to logical 0. The T level is -6 and +6 volts, again the lower potential is logically 0. Thus, we have two switch halves, one for U and one for T potential. 

A minor complication is that the actual signals driven are +U Start Reset and -T Not Start Reset - so that the U side of the switch will be at 0 to reset but the T side of the switch will be at -6 to cause a reset.

The U side has -12 on the normally closed contact and ground on the normally open contact. The common pole of the switch is the +U Start Reset signal. Thus, the line sits at -12V (logical 0) until the switch is pushed, when it pops up to 0V. 

The T side has -6V on the normally closed side and +6V on the normally open side. The common pole is the -T Not Start Reset signal. This is an example of the maddeningly bizarre nomenclature IBM used, as the -T means inverted logic levels so a "Not Reset" with inverted levels is 0 when "Not Reset" and 1 to Reset. That means it is really a +T Start Reset line. Thus, the line sits at -6V (logical 0) until it is pushed, when it pops up to +6V.

A second complication is that the machine must reset itself on powerup, so the normally closed contacts (-12V on U side, -6V on T side) are not directly wired to the power supply. Instead, they go through a relay that is part of the power-up sequencing logic.

The initial state of the relay before power comes all the way up will set the normally closed U side to 0V and the normally closed T side to +6V. It reverses after a short time delay to give -12V to the U side and -6V to the T side. The effect of this is to set +U Start Reset to on and -T Not Start Reset (+T Start Reset) to on initially, resetting the machine before the short delay is over and those signals revert to their inactive off state.
1401 Start Reset button wiring
We can trace the center poles of the switches, by finding SMS cards that receive these signals somewhere in the machine and tracing continuity back to the the wires, all of which are unsoldered to trace things properly. We did find and validate the +U Start Reset and the -T Not Start Reset lines.

Finding the +6V, -6V, 0V and -12V seemed simple as well, but we could not find any wire that had +6V on it. That was the condition when we ran out of time Wednesday when the museum visitors arrived for the scheduled demo at 3PM. If there is no +6V available, the reset switch can't activate the +T side of all the reset circuits.

ALTO DISK TOOL

I have to wait patiently for the next session with access to the machine in order to archive nine more cartridges we borrowed and to collect enough debugging information to clearly identify and fix the defect that keeps me from booting cartridges I have written.

TV-3 TUBE TESTER RESTORATION

I soldered together the solid state replacement for the 83 tube and stuck it into circuit. I powered up to check that no magic smoke or signs of distress arose. All seemed fine, but without a meter I will need to improvise to check things out.

I think I can hook up my modern DVM in current mode, using a 2365 ohm resistor in series with the VOM, and read off the current. Full scale should be 200 uA through the resistor, which is the equivalent of the original meter resistance.

My meter reads 400ma on the scale, which is huge compared to the actual current expected, so I might need a different method for handling this. I decided to upgrade my DMM to a model that has a 200 uA range - will come tomorrow.

Wednesday, March 15, 2017

PARC meeting picture, progress and not on the TV 3 tube tester

ALTO DISK TOOL

Here is a picture of the meeting we had at PARC with some of the original researchers who built parts of the Alto.


NAVY TV 3A/U TUBE TESTER RESTORATION

I removed the meter from the tester chassis, opened it up and was delighted to find that the series wirewound resistor was open! As long as the movement itself works, I only have to install a substitute resistor to repair this.

Cover off, next to remove faceplate
Shunt wirewound resistor in series with movement

Resistor is an open circuit!
The meter movement moves fine on its own, restricting the repair to a replacement for this. It was helpfully marked on the face with its precision resistance - 1,640 ohms - which is the value I must shoot for in a substitute.

Anchor electronics parts list
If I combine the 1.6K resistor, accurate to .05% in series with the 40.2 ohm resistor accurate to .1%, the target resistance is 1,640.2 with a max deviation of about 0.84 ohms. The higher value resistor can have a value between 1599.2 and 1600.8 ohms, while the smaller resistor will be somewhere from 40.1598 to 40.2402. I will buy several of each and cherry pick the best combination, both on the low side, to get closest to 1640 exactly.

While I am going there, I cataloged the capacitors that must be changed to finish the restoration. One challenge is that I can't locate one of the capacitors shown in the manual I downloaded. It has clear pictures of where it should be, but the location is somewhat different and there is absolutely no capacitor there.

The manual I found was from 1949, for the TV-3/U while my unit is a TV-3A/U from 1950 or 1951. I bit the bullet and ordered a manual reprint from ebay which should arrive on Saturday. It may be that one of the three capacitors I ordered do not even exist in this unit, but I have visually verified two of them.

Parts in hand, I began soldering the replacement components on the tester. Somehow, while preparing to solder the series precision resistors into the meter, I managed to pop the movement off its bearings. I suspect this is now totally broken, by a stupid mistake, when it was almost salvaged.

The capacitors went on, anyway, so that when I either repair or more likely spend a fortune to replace the meter, the tester will then work. Building the solid state rectifier tube replacement now.

Monday, March 13, 2017

TV 3A/U Navy tube tester restoration, still investigating disk tool issuing writing cartridges

ALTO DISK TOOL

Still working through the microcode and hardware to understand each and every cycle I should see on the Alto when it is trying to boot a disk - both successfully with natively written cartridges and failing with the ones written by my tool.

MILITARY TV-3 TUBE TESTER RESTORATION

I stopped by an electronics swap meet this weekend and picked up a US Navy tube tester - the TV 3A/U which was built by Hickok. It measures the gain of the tube, not just the static emission strength like most tube testers, which is important to truly verify that a tube is working properly.

The pilot lamp goes on and one of the two tubes inside has it filaments glowing (the lower voltage 5Y3 rectifier tube) but the other 083 tube did not light at all. I may have a failed tube, but need to check voltages and condition to be sure that something more sinister doesn't exist, either to have caused the failure or perhaps inside the power transformer.

Another flaw is that the meter movement does not budge - it should deflect for the line voltage measurement and also to full scale when the tester is set to the ohmmeter function. The meter has a capacitor across it, which may have failed in a short, or I may have a more pernicious problem given that the line voltage check is a very direct connection.

I checked all the AC voltages coming off the transformer and it is good! Further, there is filament voltage on the 83 rectifier tube but it is stone cold dead. I looked for replacement tubes on ebay, found these ran around $30 each but a kit to create a solid state rectifier that plugs in as a replacement was only $12. It should arrive toward the end of the week.

Next up is diagnosis of the lack of meter movement. Separated meter from circuit - wide open circuit. Something burned out inside. Ouch! These are unobtainium parts. My plan of attack is to first open it up and see if I can find the open circuit somewhere external to the meter winding where it might be fixed. Secondly, I would need to find a close enough alternative and swap the faceplates.

I have removed the meter but have to figure out how to open it nondestructively and then inspect it carefully to find the cause of the open circuit.

Detailed oscilloscope images comparing packs that boot and those that don't

ALTO DISK TOOL

On Saturday we had guests over at the Alto restoration meeting - Bob Sproull who wrote the Alto OS among other things, plus John Shoch again. So many great memories, anecdotes and tips. After they left,we captured traces of the data and clock patterns coming from two cartridges - one that I wrote, which fails to boot, and one with original data patterns which boots fine.

Nothing obvious jumped out of the patterns so far, but I will continue studying them for any significant variance. We began at an overall level without sufficient detail, then zoomed in first to the beginning of the header record preamble, subsequently to the end of the header record with its postamble. 
Alto written cartridge reading multiple sectors successfullly
Cartridge which I wrote, during a failed boot try

One thing that is immediately obvious is some data bits that occur right at the front of the preamble on the Alto written packs. By 'spec' the preamble should be nothing but 34 zero words before the sync word. We zoomed in to examine this in more detail.
Good cartridge, zoom into header record of the sector
Failing cartridge, zoom into header record
The views above show the entirety of the header record, which should proceed as follows:

  • Initial delay before beginning to write (lack of clock pulses)
  • 34 words of all zeroes (16 x 34 clocks with no data pulses)
  • sync word of 0000000000000001 (first 1 bit)
  • two words (32 bits total) of the header record
  • checksum word of the data words XORed together and with see of x0151
  • postamble of zero data until clock pulses end
We zoomed further into the beginning of the preamble to compare the two:
Start of preamble on good cartridge boot
The good cartridges have some random data bits - repeatable exactly on the sector but different patterns on each sector - that start the preamble. Reading a pack involves delaying through 21 words of clocked in data, thus these are not looked at as far as we know. The bad cartridges have no one values at all. 

The cause of this is believed to be residual magnetic flux on the media during the first 25 us of the write operation. On the Diablo heads, the erase head poles trail the read/write head poles by a distance that equates to 25 us at the rotational speed of the disk. When both write and erase gates are turned on simultaneously and zero data words are written, the first 25 us of old information is not erased.

We timed the delay from the sector marker pulse until the first clock pulses is recorded and they are essentially identical. The Alto written packs have some very slight variance between sectors and packs I wrote have sectors that are all exactly the same.

Alto written sector, with delay from SM to first clock pulse
Delay on cartridge written by the disk tool
The tail end of the header record was examined next. This should begin with a single one bit value that represents the end of the sync word, followed by 32 bits of the encoded cylinder/head/sector number, followed by a 16 bit checksum, and some postamble or trailing words of zero.
Good boot of sector zero from sync word to checksum and beyond
Cart that fails to boot, sector zero sync, header, checksum and beyond
The two patterns above are identical except that the postamble clock pulses (those after the last bit of the checksum) are four long on a good booting pack and three long on cartridges that fail to boot. 

First pass through all of this flagged only two difference, neither of which 'should' matter. Residual non-zero stuff at the start of the preamble and the difference of one clock pulse on the postamble. Time to study and count pulses much more closely. 

Thursday, March 9, 2017

Digging into ALTO disk controller interaction with cartridges written by my disk tool

ALTO DISK TOOL

I have a working hypothesis for why cartridges I write cannot boot on the Alto, but can be read back fine by my logic. It centers on a quirk of disk heads that the erase head poles cannot be exactly coincident with the read/write head poles. Typically the erase poles are in back of the read/write gap by a short distance.

The consequence of this spacing is that, when both erase and write head currents are switched on simultaneously. there is a time of about 25 us where any writing flux transitions on the write head would be placed on media that had not had its prior contents erased. The erase poles are lagging.

Requirement to consider the 25 us delay from read/write head position to erase poles

The Diablo drive electronics also requires a minimum delay after WriteGate is turned on, energizing the read/write head, until flux transitions are written, but this is just 2 us. The Alto turns on the heads as soon as it executes a command to write, with no timing circuits to wait 2 us.

Requirement for 2 us minimum delay from WriteGate to first transition

The Diablo manual recommends that a write operation wait 25 us after the sector mark before turning on write and erase heads to write data, and also leaves the write and erase current on for 25 us AFTER the next sector mark arrives. This produces an erased and written swath that fits exactly between the sector marks.

Green circle shows lagging delay of erase head poles behind SM and read/write poles
This is not how the Alto manages the disk, however. On the Alto, every time a sector mark goes active, the disk sector task checks for a match of the cylinder, head and sector specified in an active write command. When there is a match, the disk word task is woken up and the disk sector task goes to sleep, only to awaken at the subsequent sector mark.

The disk word task sets the state for read or write, sets up the count for preamble words, and then goes to sleep. It is awoken when the write shift register has written out sixteen data bits (these are all zero values in the preamble). The preamble on the first record of the sector is 34 words, so the task is woken 34 times before it moves on to write the sync work and the rest of the sector.

Thus, we will have data written essentially immediately after the sector mark occurs, bit cells with one or two pulses depending on whether it encodes a 0 or 1 bit value. This is very different from the recommended method in the Diablo manual.

The way the Alto handles a read operation is the same as write in the disk sector task, where it just matches the address and then fires off the disk work task. The disk word task will be interrupted every time the read shift register has shifted in 16 data bits, a 'word time'.

Reading the first record of a sector involves an initial delay, where the disk word task is woken 21 times as a delay counter, not looking at the data being read, then begins looking waiting for a sync word. That will involve some number of all zero words, which are ignored, until the pattern 0000000000000001 is seen.

Alto format on disk

The error I am experiencing occurs quite early in the disk word task execution, when it is looping waiting for the 21 word times to expire. There is a status bit init or wdinit which is on during on of the first invocation of the disk word task, causing an error condition.

That line wdinit is switched on at all times when the command line wdallow is off. Once wdallow is on, the state of wdinit is reset if the word task is going to sleep, i.e. block signal is on during a word task execution.

Init state on for first pass of word disk task, then reset
My error condition is occurring while the wdinit condition is still on, but the microcode task is trying to count down word times from the disk drive. It will shift some value into the read shift register every time the ReadClock signal from the drive pulses, then after sixteen of those clock pulses the register is full raising wddone and forcing a new task execution.

74161 counts up to 16 bitclock pulses then sets WDDONE
The wakeup logic is all reset when the wdallow control signal is low. When the counter of bit clocks gets to 16, it sets wddone which toggles on the left FF. That FF changes asynchronously to the system clock, driven by disk drive ReadClock signals, so the next two FFs serialize this into the Alto clock domain, After two cycles, the wake up signal reaches the top NAND gate and awakens the disk word task.

Wakeup logic above init state FF
 The wdallow signal is set by the hardware when a microcode instruction specifies the ldcom control signal. That is generated by instructions setting a specific value in the microinstruction F bits.

LDCOM sets up WDALLOW signal
F bits select LDCOM signal

Now what I need is a listing of the assembled MU code (MU is the microcode assembler) to let me see how it uses the F bits and bus to set wdallow on and off, in relation to the start of a disk transfer.
The existing listing I have is only of the source code, which is pretty opaque.

Annotated microcode source for start of disk read in disk word task
Until I get get the generated output include microinstruction ROM addresses, to correlate this to the logic analyzer traces of the disk boot failure, it is hard to zero in more on the cause of the problem.