Saturday, November 21, 2026

Built temporary version of Signal Driver board for Virtual 2315 Cartridge Facility for testing

WAITING ON PCBS AND PARTS FOR NEW BOARD

The design for a board that accepts signals generated by the IBM 1130 disk controller logic and redrives them cleanly to the 74LVC244 receiver chips in the Virtual 2315 Cartridge Facility (V2315CF) was completed and is in the fab now being produced. The parts orders were placed for the components as well. 

TEMPORARY VERSION COULD BE BUILT USING SIGNAL CONDITIONER PCB BLANK

Because the circuit is close enough to the Signal Conditioner board that I already built to take signals coming from the V2315CF and condition them just before they enter the 1130 circuits, I realized that I could slightly modify the PCB blank I have for the Signal Conditioner to make the new circuit for testing. 

This would require the removal of the pullup resistor on the output transistor, a change in the values of the two resistors on the operational amplifier, and a change in the reference voltage source. I could use a simple voltage divider, a pair of resistors, to output 1.6V as the reference. 

NOT ENOUGH COMPONENTS IN HOUSE, HAD TO SCROUNGE FOR ALTERNATIVES

I discovered that I did not have enough of the operational amplifier and MOSFET chips on hand to build even a single channel on the temporary board. I had all the rest, but this was a snag that blocked me from early testing.

I hunted through my parts to find a substitute for both. The operational amplifier wasn't that critical, however the challenge was finding one with the same footprint and pin assignment. I didn't have any surface mount N channel MOSFETs, but did have a through hole part.

The op amp I selected, an LM365, has a 8 pin package with different pin arrangements, whereas the original part is a five lead SOT-23 package. This would require fancy wire jumpers and an insecure attachment to the PCB. I clipped the extraneous pins off the new op amp before putting it down on the board, finding two pads that roughly lined up so that there was solder to hold it in place, then added small wire jumpers between the pins and the pads on the PCB. 

The MOSFET I selected, a 2N7000, came in a TO-92 plastic package. I bent the leads and tack soldered them on the board to put in in place of the surface mount original from the design. It is quite insecure but I hope it will hold together long enough to do some testing.

I added a 470 ohm resistor from the output pad on the board where the 2.5V reference voltage source chip originally was installed. This works with the 1K resistor from the 5V regulator to generate roughly 1.6V to the negative input terminals of the op amps, providing the offset needed to cause the Schmitt Trigger levels to be approximately 2.2V going up and 0.55V going down. 

Ugly hack to use substitute parts

ORDERED ADDITIONAL COMPONENTS TO MAKE THE SIGNAL CONDITIONER BOARD

Because I was short on op-amp and MOSFET parts, I wouldn't be able to build the second Signal Conditioner board necessary for the second installation of my V2315CF. I found that the chip I had used, AD8605, was now out of stock and not available until late January. I hunted through substitutes and found that the NCS20166 has the same pin assignments, footprint, and was sufficiently alike that I could use that for the Signal Driver and the second Signal Conditioner boards. 

WORKSHOP UNAFFECTED BY FLOODING, ACCESS RESTORED

The flood waters receded enough to easily reach my workshop and verify that it was untouched by the rising waters. I am back in there working to the extent that my family and other obligations permit.

Friday, November 20, 2026

Method to insert the Signal Driver board into the Virtual 2315 Cartridge Facility

WAITING FOR PCB AND PARTS TO BUILD SIGNAL DRIVER BOARD

There are seven signals coming from the 1130 that need to be conditioned and driven into the Virtual 2315 Cartridge Facility (V2315CF). A few of them operate in two different ways depending on whether the V2315CF is running in virtual or real mode. In real mode, the signal from the 1130 is electrically connected to the signal wire running out to the IBM 2310 internal disk drive in the 1130 system. Additionally, the V2315CF snoops on that signal so that it can stay in sync or shadow what the 2310 disk is doing. In virtual mode, the 1130 signal only runs to the V2315CF. This produces very different impedance and voltage levels based on the mode. 

I designed a Schmitt Trigger circuit to clean up signals coming from the IBM 1130's Solid Logic Technology (SLT) circuitry that has to be detected by the V2315CF. Because of the challenges of impedance matching and ensuring adequate signal swing from an SLT output to a modern 74LVC244 receiver chip as installed on the V2315CF, I chose to put this new circuit in the signal line. 

This circuit has an open collector output so that the terminator board can implement the appropriate impedance for signals entering the V2315CF. It is set to switch the output to logic 0 only when the input signal voltage drops below 0.55V and won't switch back to logic 1 until the input voltage rises to 2.2V. Any movement between 0.55 and 2.2V will not change the output signal at all; this hysteresis is what cleans up the incoming signal from the 1130. 

SIGNAL PATH FOR THE V2315CF

Signals run in and out of the IBM 1130's SLT circuits situated in compartment C1 of logic gate A of the system, going over twisted wire pairs in a cable that originally was plugged directly into the SLT circuits in the rear of the 2310 disk drive. The cable is plugged into the 2310 Interface Board of the V2315CF instead of the disk drive. 

A cable of twisted wire pairs runs from the SLT circuits of the 2310 disk drive to the 2310 Interface Board. Both the 1130 to 2310 Interface Board cable and the 2310 to 2310 Interface Board cable end with an SLT card connector, which is a 12 row by 2 column female connector. 

On the 2310 Interface Board, the signals from both cables are routed to a pair of ribbon cables which carry those signals up to the main unit of the V2315CF. The signals that the V2315CF will read are hooked to a 74LVC244 receiver chip, while the signals coming out of the V215CF are hooked to a SN75451 chip which has open collector outputs. The ribbon cables run to a connector board that plugs into the V2315CF. 

All the signals on the ribbon cables have the potential to have termination resistors applied to them. A PCB plugs into the rear of the V2315CF where there are spots for a pullup and a pulldown resistor for each signal line. The pullup goes to +5V and the pulldown is to ground. 

On the DEC computers for which George Wiley designed the RK-05 Emulator that I based the V2315CF on, each signal has a 178 ohm pullup and a 383 ohm pulldown, implementing a voltage of about 3.4V when the SN75451 is not conducting and 0V when the open collector is active. The impedance is around 121 ohms since the DEC bus is based on that value. 

To match the ribbon cables, however, the impedance should be closer to 100 ohms. Changing the resistors to 169 ohms pullup and 249 ohm pulldown, the impedance is around 100 ohms and the idle voltage is about 3V, which is the nominal logic high voltage for SLT circuits. 

The connector board with the ribbon cables that run between the 2310 Interface Board and the V2315CF main unit routes these to the backplane of the V2315CF main unit which has two connectors each with 18 columns and 2 rows, labeled A and B. 

There are a few special signals that connect to the 2310 Interface Board which don't come from the 1130 or the 2310 twisted wire cables. These are directly wired to their destinations, but then run over the ribbon cables to the V2315CF main unit. 

HANDY POINT TO INTERCEPT SIGNALS ON THE CABLE CONNECTOR BOARD

The connector board for the V2315CF main unit is pretty simple. It has two ribbon cable connectors and the male fingers to plug into the 18x2 backplane connectors A and B. Traces run between ribbon and backplane connectors. It also features holes that allow wires to be soldered to each of the signals, which is a very handy feature I exploit. These holds are close to the fingers of the backplane connectors. 

Ribbon cable connector pins are inputs, bottom holes are outputs

If I cut the trace on the connector board that connects the ribbon cable pin to the backplane finger for a given signal, then I can fit the Signal Driver board into the circuit. Tack soldering a wire to the ribbon cable connector pin for a given signal provides access to the input for a channel of the Signal Driver board. The output of that channel can be soldered into the holes for the signal thus driving that signal into the 74LVC244 circuit of the V2315CF. 

The work all takes place on the underside of the connector board. I worked out where to capture the inputs of the seven signals, where to cut their traces on the board and where to solder in the output wires for those signals. 


The view above is of the underside of the PCB, produced by viewing the gerber files for the connector board because I don't have the original PCB design files for the board. I numbered the signals assigned to the seven channels of the new Signal Driver board:

  1. -Write_Data_Clock_L which is the mixed clock and data pulses during a write to the disk
  2. -Access_10_20_Mil Step determines whether we move the disk arm 1 or 2 steps
  3. -Access_Rev_Direction determines whether the disk arm moves toward cylinder 0 or 202
  4. -Access_Go requests that the disk move the arm the amount and direction set above
  5. -Head_Select choses whether the head accesses the upper or lower surface of the disk platter
  6. -Read_Gate activates a read operation for a given sector of the disk
  7. -Write_Gate activates a write operation for a given sector of the disk

Thursday, November 19, 2026

Developed a complementary Schmitt Trigger device for signals from the 1130 to the Virtual 2315 Cartridge Facility

THE ORIGINAL SLEDGEHAMMER PRODUCED PERFECT SIGNALS - I WAS INSPIRED

The Signal Conditioner board I built uses a Schmitt Trigger design with very wide hysteresis so that bouncing signals, undershoots and other consequences of the difficult to control signal path are hammered into submission, giving me clean signals that feed into the IBM 1130 logic circuits. I am sitting around in my home watching the incessant rain, seeing most of the local roads flooded around me so that traveling outside is foolhardy. I had plenty of time on my hands.

I thought about the tweaking and adjusting I have been doing for signals going the other direction - produced by the 1130 logic circuits and received in the FPGA of the Virtual 2315 Cartridge Facility (V2315CF). One devilish complication is that the V2315CF operates in two modes. One mode makes use of the internal 2310 disk drive of the 1130 to move the disk arm and to produce the sector and index marker pulses that delineate the four sectors/slices as the disk rotates. The other mode completely emulates the 2310, generating the timing pulses and pretending to move the disk arm with fidelity to the timing of the real disk drive. 

This means that sometimes a signal is produced by Solid Logic Technology (SLT) circuits in the 2310 and routed to the 1130 SLT circuits, with the V2315CF simply watching the signals so that it can stay in sync with where the disk arm has moved. Other times, the signal is generated by the FPGA and sent to the 1130. 

Since SLT logic is a version of Diode Transistor Logic with lots of peculiarities, interfacing it with modern technology like the 74LVC244 receiver chips and 75451 open collector drivers is not straightforward. Then, the impedance of the signal paths is a huge mess, consisting of many different segments of travel with their own impedance and signal transfer characteristics. There are twisted wire pairs, ribbon cables, wire warp wiring, traces on various boards, pins and connectors. 

A NEW SLEDGEHAMMER COULD RESOLVE SIGNALS IN THE REVERSE DIRECTION

I could use a similar design to deal with the signals coming into the V2315CF. The hysteresis would allow me to recognize the state of signals and produce a modern clean signal for the FPGA to sample. In particular, when the V2315CF is in its real mode, making use of the 2310 disk drive to create many signals, I simply bridge the 2310 signal to the outgoing wires to the 1130, but also watch them in the V2315CF for the purposes of staying synchronized. 

Thus, the SLT logic of the 1130 produces signals that the SLT logic of the 2310 are designed to receive properly, and the new board could clean those up to work well with the FPGA. All the signal path characteristics between the 2310 and the 1130 are already handled by the IBM designers, so that will work as it did before the V2315CF was inserted into the path. 

In the virtual mode, where the 2310 is not producing the signals, the 75451 chip and terminator resistors in the V2315CF are responsible for detecting the signals coming from the 1130, without the 2310 circuits connected to them. This changes the impedance and other factors, which made it a challenge to find termination values that worked for both modes. 

Since the V2315CF needs the incoming signals to work properly in either mode, the sledgehammer design can handle either wiring path and produce exactly the same signals going into the FPGA. There are a few minor changes from the sledgehammer (Signal Conditioner) board I used for signals from FPGA to 1130.

CHANGES FOR THE REVERSE DIRECTION SIGNAL CONDITIONING

The original Signal Conditioning board creates a 0 or 3V signal compatible with SLT input gates. The new board, which I will call a Signal Driver board, has to produce signals that are compatible with a 74LVS244 receiver chip. I also modified the thresholds so that it switches on when the signal reaches 2.2V on the way up and won't switch back off until the signal drops below 0.65V on the way down towards zero. 

Changing the thresholds requires a different reference voltage, which meant a different chip that produces 1.6V instead of the 2.5V used in the original board. Then the two resistors on the op amp are changed to achieve the thresholds. The op amp swings dramatically between the 0 and 5V rails at the thresholds. 

The op amp output is buffered by a MOSFET so that the op amp is not loaded down at all. The MOSFET then drives an open collector transistor circuit. The terminator resistors establish the pullup for that open collector output. 

Finally, there are seven signals that come from the 1130 that I need to handle with the board, but the original Signal Conditioner is a five channel board. I expanded to seven channels.

WHIPPED UP A PCB DESIGN AND SENT IT OFF TO THE FAB

I completed the Signal Driver board and uploaded it to JLCPCB.com where it is being produced. I also created a Digikey order for the extra components to go on the board. I did order extras of some of the parts for the Signal Conditioner board, since the price was cheaper that way. However, others such as the unique resistor values for the Signal Driver board had to be ordered. I also needed the new voltage reference chip and the seven pin headers to accommodate the additional channels. 



Time in workshop limited by two waves of flooding in the space coast of Florida

HOME AND WORKSHOP IN BREVARD COUNTY ALONG THE COAST

My home is in Satellite Beach, a bit south of Cape Canaveral and one of the beach communities around Melbourne Florida. My workshop is nearby in Indian Harbour Beach, also on the coast. 

EXTREME RAINFALL AND FLOODING EVENTS BACK TO BACK

Last week we had a "thousand year" level of rain (0.1% of occurring in any year), resulting in substantial flooding in the area and closure of roads, schools, businesses and government. Once again this week, we are having the same level of unprecedented rainfall leading to similar flooding levels. The Saint Johns river that is on the mainland to the west of us has exceeded its highest every recorded level, yet we have two full days of rain to come. 

Both my home and my workshop are at local high points that have not flooded, but the roads nearby are impacted which makes it impractical for me to travel between them. Otherwise I would be proceeding with the debugging and other wrap-up work on the Virtual 2315 Cartridge Facility. 




Last week, the floods caused a few water mains to lift underground and break, resulting in zero water pressure for the Melbourne area. We were without water for a couple of days and under a boil-water notice until the safety of the water could be determined. Hopefully that won't happen again, but we have filled one bathtub to have water to flush toilets. Our bottled water supplies are good as well. 

This is apparently the result of the very strong El Nino weather pattern in the oceans. It blocked any hurricanes from coming to Florida this year, which is a big plus, but it is also creating conditions where heavy bands of rain come in from the Atlantic and stall right over the coastline, unable to move west and therefore dumping all of their moisture in one area. I guess we get the rain amounts that a hurricane would have brought, just without the high winds and other damage. 

EXPECT TO BE BACK IN THE SHOP BEFORE THE END OF THE WEEKEND

Based on when the rains are forecast to stop, water levels should drop enough to let me safely drive to the shop before Monday. The moisture soaked clouds should be moving north along the coast, ending up passing up the east coast of the US over the coming week but leaving me alone. 

Wednesday, November 18, 2026

Refined Virtual 2315 Cartridge Facility power system to stop battery drain

POWER SYSTEM HAS 12V BATTERY AND TRICKLE CHARGER

The power system for the Virtual 2315 Cartridge Facility (V2315CF) is designed to detect when the IBM 1130 drops power and to ensure the V2315CF has about 40 seconds of power available to write back the contents of the RAM to the mini cartridge's microSD card. This ensures that any data written to the virtual cartridge is preserved after power drops. 

A motorcycle battery is maintained at 12V by a smart trickle charger that is hooked to the 1130's utility outlet. This should feed 120V to the charger at all times when the 1130 is plugged into the wall and building power is on. A detection circuit in the V2315CF will turn on a timer when the 12V rail of the 1130 switches off, connecting the battery to the V2315CF rather than the 12V rail for the planned 40 seconds. It also notifies the Raspberry Pi PICO in the V2315CF so that if a virtual cartridge was in use and is not marked read-only, the unit will do an emergency unload of the data back to the cartridge. 

DISCOVERED ISSUE WHEN I WAS AWAY FROM THE SHOP FOR SEVERAL DAYS

When I returned to the shop after several days and powered the 1130 on, the timer began ticking away, connecting and disconnecting the battery to the V2315CF. I discovered that the battery had drained down to less than 3V. Once it was charged up, the system resumed its normal operation.

CAUSE - DRAIN FROM THE BATTERY IF THE SMART CHARGER IS NOT PLUGGED IN

The smart charger I used will pull power from the battery when it is not powered by 120V, since it is designed to be used while building power is applied. In a museum setting, I can't guarantee that the 1130 might not be unplugged for a long enough duration to have the charger drain the battery.

SOLUTION IS A RELAY TO DISCONNECT THE CHARGER WHEN 120V NOT PRESENT

The simple solution is to switch the charger to the battery through a relay, which is powered by the 120V utility output that is also powering the charger. When 120V is not present, the charger is isolated from the battery and the drain is eliminated. The only drain on the battery is internal drain that any lead-acid battery has when sitting unused for long durations, much longer than the period causing my problems. 

Friday, November 13, 2026

Repairing cable for signal conditioner for Virtual 2315 Cartridge Facility, plus new PCB built for mini disk drive

FIRST TEST OF SIGNAL CONDITIONER BUT SECTOR MARKER SIGNAL BAD

I fired up the 1130 and loaded a virtual 2315 into the Virtual 2315 Cartridge Facility (V2315CF) . -When the drive came online, illuminating the File Ready lamp, attempting a read or write appeared to work as far as the 1130 was concerned but the V2315CF did not see perform the read or write. 

I had the oscilloscope on the -Sector Marker signal at the origination from the V2315CF main unit and at the input to the 1130 logic circuits. The logic circuits were not receiving anything from the signal conditioner (sledgehammer) board for this signal. I powered down and did a quick continuity check which showed that there was no connection from the output of channel 5 of the signal conditioner board to the input where the cable from the V2315CF's 2310 Interface Board enters logic gate A, compartment C1 of the IBM 1130.

PULLED THE SIGNAL CABLE AND CHECKED ALL PINS CONNECTIVITY

I removed the modified cable from the IBM 1130 by pulling one end's connector from the 2310 Interface Board, the other end's connector from slot N7 of compartment C1 of logic gate A, and the two 5 pin female connectors from the Signal Conditioner board's input and output male connectors. I moved it back to the workbench.

I used a continuity tester to check that the signals which don't pass through the Signal Conditioner board were intact between the two ends. I then checked the five signals that are being conditioned, checking that the five input signals from the 2310 Interface Board end of the cable were connected to the assigned pins on the Input connector for the Signal Conditioner board. They were good.

Finally, I checked the five signals coming from the assigned pins of the Output connector for the Signal Conditioner board, verifying whether they had continuity to the 1130 logic gate end of the cable. One did not - the one carrying -Sector Marker of course. 

REPAIRED THE MODIFIED CABLE

I unwrapped the electrical tape from the modified cable and looked to find the wire route for this signal going to the Output connector. At the point where I had cut the original cable to insert the new twisted wire pairs, I checked for a good connection. 

I had to replace the connection since I removed the shrink wrap insulation to test. I made use of my handy new jig for aligning wires to solder together. Since the repaired link was working, I continued my investigation, moving up to the new twisted wire segment running to the Output connector. 

I found that the connection failed right at the pin, which I had crimped with the old tool and not replaced because it felt mechanically secure. After I installed a new pin using my new crimping tool, I had full connectivity restored. I wrapped the cable with electrical tape and brought it over to the IBM 1130. When I return to the shop I will plug in the ends to the 1130 logic compartment, to the 2310 Interface Board, and to the Input and Output connectors of the Signal Conditioner board, then resume testing.

NEW PCB BLANKS ARRIVED, BUILT THE MINI DRIVE INTERFACE BOARD

I had temporarily hacked together some perf board, putting on the connectors and using wire wrap to connect appropriate points, which let me test while I waited for the new printed circuit board I designed to arrive. To save cost, I used the low cost shipper rather than services like UPS, Fedex or DHL because those add about $40 to the cost of even a tiny PCB like this. The downside is waiting quite a bit longer, but I had the perf board in the interim.

This interface PCB has a female connector that the mini 2315 cartridge connects to when the cartridge is slid into the mini drive. It also has a male connector on the other side which fits to the signal cable from the main V2315CF unit. A teeny toggle switch on the mini drive is wired onto a 3 pin connector on this PCB. In addition, a 2 pin header is on the PCB to allow a jumper which bypasses the teeny toggle switch if so desired. 


I will pull the perf board off the mini drive and install this completed interface PCB when I get back to the workshop. I am also building a second one because I expect to install another V2315CF in a different museum's 1130 system once the project is completed. 

Wednesday, November 11, 2026

Finished wiring the Signal Conditioner (sledgehammer) into the Virtual 2315 Cartridge Facility in the IBM 1130 and reinstalled the cable

REMOVED CABLE FROM 1130 AND WORKED ON A BENCH

Trying to cut, solder and crimp pins with the cable down inside the 1130 was not very productive. Lying on the floor on my side with arms twisted into place was not good for my body. I pulled it completely out so that I could work in a more convenient location. 

Removed cable, ready to continue work

COMPLETED WIRING IN ALL FIVE SIGNALS AND COMPLETING THE CONNECTORS

I located and soldered the extra twisted wire segments to all of the five signals that will pass through the Signal Conditioner. The ground (black) wires of those segments were tied together with one of the black ground wires of the main cable. Pins were put on the new segment white wires and inserted into the appropriate input or output connector.

WRAPPED THE CABLE WITH ELECTRICAL TAPE, READY TO INSTALL

I wrapped everything once the wiring was complete, making for a new cable with the two smaller cables that run to the conditioner board also wrapped. 

Completed cable assembly

THREADED CABLE THROUGH 1130 AND PLUGGED IT IN

I put the cable assembly back inside the IBM 1130, passed it into logic gate A compartment C1 on one end and plugged it into the 2310 Interface Board of the V2315CF on the other end. Everything is ready for testing when I get to the shop next. 

Tuesday, November 10, 2026

Slow work wiring Signal Conditioner (Sledgehammer) into the disk signals for Virtual 2315 Cartridge Facility

WIRING FIVE SIGNALS THROUGH THE SLEDGEHAMMER

The Signal Conditioner, AKA sledgehammer, will clean up signals coming from the Virtual 2315 Cartridge Facility (V2315CF) through a cable of twisted pair wiring into the logic gates of the IBM 1130. Five of the twenty signal pairs passing through the cable are the priority for conditioning.

These are the -Sector Marker, -Write Clock Phase B, -Read Clock, -Read Data, and -Access Ready signals. The twisted pairs are wrapped with cloth electrical tape to form a cable which runs between the swing out logic gate A of the 1130 processor and the internal 2310 disk drive that fits inside the 1130 cabinet. 

The V2315CF intercepts the signals running over that cable, thus there is a 2310 Interface Board that this cable plugs into rather than into the disk drive. That interface board also has a cable coming from it that plugs into the disk drive. The main unit of the V2315CF will pass certain signals along between 2310 and 1130, but will generate others rather than using the signals coming from the 2310. 

The cable going into logic gate A fits into an SLT card slot in compartment C1. Each SLT card slot is a 2 x 12 set of pins with four of them reserved to carry power and ground for an SLT card. The remaining 20 pins deliver signals into and out of the compartment, in this case between the compartment and the interface board for the V2315CF. The pins on an SLT slot are labeled D02 to D13 for one column and B02 to B13 for the other column. For example, the signal -Read Clock is assigned to D02. 

SIGNAL TONE TRACER NOT USABLE

I tried to use a signal tone tracer, injecting the tone into the signal pin that I wanted to locate, then touching the probe to each wire pair to find the one with the loudest signal. Unfortunately, I couldn't set any level that would let me aurally distinguish the correct pair from the others. Enough tone is coupled through the ground wires that are part of each twisted pair so that every wire pair has almost equal volume. 

VISUAL TRACING FROM CONNECTOR WAS HIT OR MISS

I attempted to spot each wire pair coming from the connector, cutting the signal wire so I could wire in the lines to the Signal Conditioner. About half the time, the wire pair I thought was correct was not and I had to repair the connection by soldering the wire ends and using shrink wrap to insulate the joint. The design of the connector is not conducive to easily spotting the right wire.

Once I do find the proper wire for a signal and cut it, I have to solder on a twisted wire pair segment to each end of the cut. One of the new segments runs to the Signal Conditioner board input, where the signal coming from the V2315CF is injected. The other new segment runs from the Signal Conditioner board to the wire end that is running into the 1130 logic gate. 

When the new twisted wire pair segments are soldered on, their ground wires need to be connected together and to the ground wire of the original cable. The far ends of the new segments get a Molex KK pin crimped on and then they are inserted into five position connectors that fit onto the input and output of the Signal Conditioner board. 

CRIMPING WAS ALSO A PROBLEM AS MY CRIMPING TOOL WAS SUBOPTIMAL

Fastening the pins to small gauge stranded wires with the crimping tool I have in the shop was an exercise in frustration. The tool is not very good, thus the pin would often twist out of position as I attempted the first crimp, or bend one of the tabs outward instead of atop the wire or insulator. Others would appear to be properly crimped but not tight enough to hold the pin on for long. 

I ordered a better crimping tool designed for these pins and able to produce solid connections on the ten pins that are needed for the Signal Conditioner. Once it arrives I will finish up the construction. 


Thursday, November 5, 2026

Stumbled upon defect in the Raspberry Pi PICO library routines for SPI links

VIRTUAL 2315 CARTRIDGE FACILITY USES SPI LINK BETWEEN PICO AND FPGA

The heart of the Virtual 2315 Cartridge Facility (V2315CF) is a unit that houses a Lattice Field Programmable Gate Array (FPGA), enough RAM memory to hold one disk's worth of data, and a Raspberry Pi PICO. The PICO mainly manages the user interface while the FPGA mainly implements the disk drive emulation and controls the RAM. 

The PICO implements a Serial Peripheral Interface (SPI) link to the FPGA, with the PICO acting as the master. The PICO exchanges two bytes with the FPGA as a transaction, the first byte having the command from the PICO and the second byte recieves one byte from the FPGA based on that command. 

For example, a transaction code of x88 is a request for the FPGA to return one byte of data from the RAM. The address for memory access was previously transmitted by the PICO as a set of three x05 commands that set the 24 bit RAM address. When the PICO is writing back the contents of a virtual 2315 disk cartridge to the microSD card file that stores the data, it sets the RAM address for each of the 1,624 sectors, reads 642 bytes sequentially from the FPGA and then writes the sector's 321 words of data to the file. 

PICO LIBRARY PROVIDES ROUTINES TO CONTROL THE SPI LINK

Exchanging data over an SPI link is done with a few library calls provided for the PICO. The caller first starts the transaction by asserting the SPI chip select line, then calls the  spi_write_read_blocking function giving it the address of the buffer holding the outbound data to send to the FPGA, the address of a buffer to receive the data coming back from the FPGA, and a count of how many bytes to send. The caller then deasserts the chip select signal. 

The transfer proceeds with the SCLK signal being alternated for the number of bits being transmitted - in this case, that is 16. The MOSI signal sends the bits serially from the PICO to the FPGA. The MISO signal comes from the FPGA and provides the inbound data that is returned to the caller. Thus, an SPI transaction is an exchange. 

The routines that I inherited from the RK-05 Emulator had defined the outbound and inbound buffers as arrays of uint8_t, an eight bit unsigned value (byte). The length of each was 2, since the intent is to exchanges two bytes between master and slave in a transaction. There was also a 2 byte array of uint8_t declared in the routine but never used. 

EXPERIENCED ERRATIC RESULTS AND LOOKED CLOSELY AT THE FUNCTION CALLS

When my logic tried to write back the contents of RAM to the microSD card in the virtual 2315 cartridge, I would get some correct results and some corrupt data returned. I looked for every possible cause and investigated, but wasn't getting anywhere.

The routines that I inherited from the RK-05 Emulator had defined the outbound (OUTBUF) and inbound (INBUF) buffers as arrays of uint8_t, an eight bit unsigned value (byte). The length of each was 2, since the intent is to exchanges two bytes between master and slave in a transaction. There was also a 2 byte array BUF of uint8_t declared in the routine but never used. 

After adding code to verify that the last bits had been exchanged before deasserting the chip select, yet seeing no improvement, I was considering slowing the SPI clock just in case I was getting errors due to hardware signal issues. However, this didn't make sense because at startup the same link transferred 1,624 sectors of data down from the microSD card file to the RAM without a single failure. 

I happened to remove the unused variable BUF from the routines but when I next tested, the corruption rate increased to almost 100%. That was unexpected. 

MY ASSUMPTION WAS THAT THE FUNCTION WAS RETURNING TOO MANY BYTES

Perhaps the issue was the function, which might be overrunning the buffers I passed it. The count was a hard coded integer 2, which should be what controls this completely, but perhaps it was instead returning integers, a longer data type than the uint8_t bytes in the arrays. 

I increased the size of OUTBUF and INBUF to four from two and tried again. The code worked flawlessly. Somehow it was stepping on the stack and causing issues until I added extra room in teh buffers. The code is below. 

uint8_t read_write_spi_register(uint8_t reg, uint8_t data)

{

    uint8_t out_buf [BUF_LEN+2], in_buf [BUF_LEN+2];

    uint8_t buf[2];

    out_buf[0] = reg;

    out_buf[1] = data;

    cs_select();

    spi_write_read_blocking (spi_default, out_buf, in_buf, 2);

    cs_deselect();

    return(in_buf[1]);

}

The cs_select and cs_deselect calls are inline routines:

static inline void cs_select()
{
    asm volatile("nop \n nop \n nop");
    gpio_put(PICO_DEFAULT_SPI_CSN_PIN, 0);  // Active low
    asm volatile("nop \n nop \n nop");
}

I still don't understand what is going wrong but increasing the buffer fixed the problem. This must be why the original programmer left the spurious BUF variable in the routines, something they found solved a problem even if the root cause wasn't understood. 


Wednesday, November 4, 2026

Testing a write after conditioning the Sector Marker signal for the Virtual 2315 Cartridge Facility

FIXES MADE BEFORE DIAGNOSTIC TESTING RESUMED

The new Signal Conditioner board is in place and ensuring that glitches on the -Sector Marker signal receive by the IBM 1130 logic won't lead to incorrect results. Since that signals looked really good now, I expected everything to work properly now. 

LOGIC ANALYZER SHOWS THAT THE SECTOR MARKER ISSUES ARE GONE!

I recorded the same signals that showed me that doubled edges were caused by the ringing of the signal and led to a spurious termination of the write after only half a sector - 5 milliseconds instead of 10. This time, everything was perfect and the write continued for the full 10 ms. 


The flipflop logic that blocks every other 5ms raw sector marker pulse (+Alt pulse and -Alt pulse) are alternating just as they should, thus the -Sector Marker signal at 5ms is blocked and only the second one is passed through as -4 Sector Pulses and that terminates the write. The probe lead had fallen off the raw sector marker signal, which would have been signal 5 (green) in the trace, but we know the pulse comes at the 5ms point in the write operation. 

ALMOST PERFECT TEST OF WRITE IN VIRTUAL MODE ACHIEVED

This time I did achieve a good capture of the data I wrote to the virtual 2315 cartridge, including the entire sector. I set up a known pattern in a memory buffer in the 1130 and issued an XIO instruction to write to a given sector of the disk (cylinder 0, head 0 and sector 1). I issued an XIO to read in the same sector to a different buffer, confirming that the contents matched what I had written. An offline view of the mini 2315 cartridge using the Showsector.exe program I provided confirmed the content of the sector as well. 

It was not flawless, however, as there was a single bit shift in the data for the last 48 words of the 321 in the sector. If you look at the data from the sector as it was extracted with Showsector.exe, you will see starting at word 0x111 the data was recorded as 0x0224 when it should be 0x0112. Every word from that point forward is the same as the data I tried to write out except for the one bit shift, ending with 0x0282 which was intended to be 0x0141. 



The data that I wrote out was almost the same as in my previous tests, however, words 2 and 3 were changed to 0x2600 in the buffer where they had been 0x0002 and 0x0003 in my original test. Thus I wrote what we see above, at least up to word x111 where things went slightly astray.

I had previously identified that the signal -Write Clock Phase B which comes from the V2315CF into the 1130 might cause this kind of issue. The signal will advance the shift register after each clock. A spurious double edge would cause the register to shift the data by one bit. I had finessed the signal termination to really ameliorate signal issues but they were not ideal. It does appear that we had this one error in about 6,500 clock intervals during the write. That is quite good but not good enough.

The solution is the sledgehammer! One board has five channels of signals that it can process. The -Write Clock Phase B signal is definitely worth slamming into shape, so it is going to be processed. On my next visit to the shop I will be wiring the other four signals I identified so that they pass through the Signal Conditioner board. I don't anticipate any errors after I sledgehammer the signal into shape. 



Testing signal sledgehammer for the Virtual 2315 Cartridge Facility

FILTERING OUT RINGING AND UNDERSHOOT OF SIGNALS

The Virtual 2315 Cartridge Facility (V2315CF) sits in between the internal 2310 disk drive and the IBM 1130 computer's logic gates, either relaying signals between the two end points or generating a signal in place of the one that the disk drive might produce. I found that in virtual mode (disk drive not turned on, the V2315CF simulating it entirely), certain signals exhibit an undershoot to under -3V and quite a bit of ringing, when the nominal voltage levels are +5V and 0. 

The ringing caused the 1130 logic circuits to see the falling edge of the signal as multiple falling edges, thus confusing the logic and creating incorrect results. The path from the V2315CF to the logic gate of the 1130 is complex, with transitions between PCB traces, ribbon cables, more PCB traces, twisted wire cables, additional PCB traces, a pin on a backplane and then wiring in the logic card. There are many impedance transitions and places where signals can be distorted - made worse by a very fast falling edge because of the modern FPGA and logic gates in the V2315CF which switch so quickly. 

SIGNAL SLEDGEHAMMER IMPLEMENTS SCHMITT TRIGGER FOR HYSTERESIS

I designed a circuit that will employ hysteresis, so that the output of the circuit changes from logic high (+3V) to logic low (0V) or back at different thresholds depending on the direction of the change. That is, the output won't switch to logic low until the incoming signal from the V2315CF drops below 0.85V and then it won't switch back to logic high until the incoming signal rises above 4V. Any ringing in between these levels is blocked from the output. 


TESTING ONE CHANNEL WITH THE SECTOR MARKER SIGNAL

I initially only located and cut the wire that carries the signal causing me the most problems, -Sector Marker which produces a falling edge for 160 microseconds once every 5 milliseconds. This marks one eighth of a rotation of the disk platter, used by the logic circuit in the 1130 to determine where the four sectors begin on one rotation. 

A peculiarity that leads to the incorrect operation of the 1130 logic is that the disk drive reports every one-eighth of a rotation but the 1130 implements only four sectors per rotation. Therefore, it has to ignore every other sector marker pulse. The ringing in the signal from the V2315CF was causing the logic to see two sector marker pulses rather than one, so it assumed it had already moved a full one-quarter rotation. The signal conditioner should ensure it counts correctly and sees only one falling edge for every -Sector Marker pulse. 

WATCHING THE RESULT OF THE SIGNAL CONDITIONER

I put a scope on the input pin of the 1130 logic that receives the -Sector Marker pulses, to observe how the signal was shaped by my conditioner. I performed a write to a target sector, which previously had been aborting halfway through the sector due to the false edge count. The goal was to see it complete the sector write and the signal to look as close to perfect as possible on the scope.

Rising edge

Falling edge

The yellow trace at the topp is the output from the V2315CF main unit before it runs through all the cabling to get to the 1130 circuits. The purple trace is the signal received at the 1130 after the Signal Conditioner finishes with it. The blue trace is the output of the first inverter inside the 1130, showing that it also produces a single edge. 

By comparison, here are the same three signals without the Signal Conditioner aka sledgehammer - 


WILL ADD ADDITIONAL SIGNALS TO THE SLEDGEHAMMER

I picked four other signals that depend on falling edge detection in their operation in the 1130 logic, since they had the potential to trigger incorrect operation of the logic. Some won't malfunction even if they see multiple falling edges close together, such as the -Index Marker pulse that arrives once per rotation to reset the sector number counter to 0. Two edges on that signal wire still generate the same sector number in the counter. 

The incoming clock generated by the V2315CF, -Write Clock Phase B, is used by the 1130 logic to output the pulses (-Write Clock and Data) that get written on the disk platter to record both clock pulses and data bits that have a value of 1. The design of the disk produces no pulse for a data bit if its value is 0, so the only way to determine whether we have a 0 data bit value is to depend on the timing signals coming from the disk drive (or V2315CF in this case).

When reading a sector from disk, the V2315CF generates the clock and data pulses that would be extracted by the disk drive, however the data actually comes from our mini 2315 cartridges and sits in RAM on the V2315CF. Therefore, the V2315CF generates the -Read Clock and -Read Data pulses that would be seen if the disk drive heads were actually reading data from a full sized 2315 cartridge inserted in the 2310 disk drive. Those two signals are given a channel each on the conditioner board.

A feedback signal from the disk drive mechanism, -Access Ready, is used by the 1130 logic to recognize when a step of the disk arm has been accepted and when it completes. The 1130 converts a request from the program to seek a number of cylinders into a chain of small steps, a single 1 cylinder step for an odd count preceeded by 2 cylinder steps to achieve the full count. False edges might cause the 1130 to believe a step has completed when it has not, throwing off the total movement. 

I protect against false edges in the V2315CF where I watch over the arm movement, but the disk drive and the 1130 are fully in control of arm movement when we are in real mode (disk drive is operating with data coming from mini 2315 cartridge). The V2315CF has to shadow the arm movement so that it can present the data from the correct cylinder when a read or write is done - we change the RAM address based on the current arm location between cylinders 0 and 202. 

The terminator resistors for all the signals passing through the V2315CF must be pulled up to 5V in order for the 4V threshold of the signal conditioner to recognize a logic high, even though the disk drive circuits generally use 3V as logic high. This is one on the terminator board of the V2315CF. 

Another complexity of the V2315CF is my desire to support two modes - real and virtual. The intended use is real mode, where the 2310 disk drive inside the 1130 is spun up. The disk drive is passing along the real -Sector Marker and -Index Marker pulses, with the V2315CF just observing or shadowing them. The disk drive arm moves when the 1130 commands a seek to a different cylinder, with the V2315CF shadowing the end location. 

Virtual mode allows operation with the disk drive left turned off. The -Sector Marker and other signals are all produced by the V2315CF itself. It responds to the seek requests and generates -Access Ready as well. Thus, -Sector Marker, -Index Marker, and -Access Ready can come from either the V2315CF or the 2310 disk drive depending on mode.

The signals like -Sector Marker and -Access Ready are passed along through an electronic analog switch on the 2310 Interface Board which merges the wires from the disk drive, 1130 and V2315CF. In real mode, the switch connects the disk drive output to the 1130 input, while the V2315CF leaves its output line undisturbed. In virtual mode, the switch is off and the V2315CF is pulling the line down to logic low to implement those signals. 

I need the signal coming into the 1130 to work properly in both modes - real and virtual - with different electronics producing the signal in each mode. This made it impossible to select terminator resistors for an impedance that worked correctly in both modes - some choices worked for one mode but not the other. 

When these signals are conditioned by the new board, it will be time to rerun all the function tests for the V2315CF, once in real mode and another time in virtual mode. That plus the correct completion of the IBM 2310 disk diagnostic program constitute an adequate test of the V2315CF. 

Sunday, November 1, 2026

Preparing wiring of the signal sledgehammer into the IBM 1130

SCHMITT TRIGGER TO CLEAN UP MESSY SIGNALS ENTERING THE 1130

I have some signals that are generated in the Virtual 2315 Cartridge Facility (V2315CF) that I built and they are fed into the disk drive controller logic in the IBM 1130. I had limited ability to change the 1130 circuitry and the connections into it. The main hardware in the V2315CF generated the signals in a FPGA and drove them out with an open collector driver and a terminator board. 

Typically the terminator board had a pullup and pulldown resistor pair to create the logic high voltage and an appropriate impedance to match to the destination. The details of the Solid Logic Technology (SLT) circuitry in the 1130 is odd by today's standards and often would not work properly when fed with the standard resistor pairs in the terminator - it might not detect a logic low reliably as one example. Thus in some cases I couldn't create a good impedance match and also get good behavior from the 1130 circuitry. I would experiment until the results were good.

When the impedance is not well matched - a difficult condition to achieve since the path from the V2315CF to the SLT input pins involved multiple mechanisms with differing individual impedances - the signal would have poor characteristics where it entered the SLT circuits. Signals may ring with substantial swings, thus swinging up and down between levels that would be a logic high and a logic low to the 1130 circuit. Sometimes the signal had an undershoot to a very negative level. 

Parts of the 1130 logic was designed around edge detection - a falling edge would trigger an action. If that action changed a counter or flipped between states, then the ringing could act like multiple edges when the intent was to have just one edge. What I needed was a way to ignore all the junk such as the ringing that occurs as part of a falling edge sent from the V2315CF, so that the 1130 sees a single clean edge. 

A Schmitt Trigger is a form of hysteresis that controls whether a signal becomes a logic low or logic high, using different thresholds for the transitions in each direction. If we don't consider a signal to be logic low until the voltage drops below 1V, but won't change it back to a logic high until the voltage rises to 4V, then all the oscillations between those voltage thresholds are ignored. 

I designed a signal conditioner that I nicknamed the signal sledgehammer because it forces a very ugly incoming signal to be a clean nice output signal. It uses an operation amplifier to force a very clean dramatic snap between logic low and logic high. Normal logic circuits can enter a grey area when the voltage is above the maximum logic low voltage but below the minimum logic high volage. This forbidden zone may produce an output that is not clearly high or low in normal circuits. Using an op amp meant that when it switched, it swung fully to the extreme. 

I used a voltage reference chip and appropriate resistors with the op amp to set it so that it would flip to logic low when the input falls down past 1V and won't flip back until the input rises up past 4V. Much more of a hysteresis spread than a typical Schmitt Trigger logic gate. I then used other circuitry to produce an SLT type output that would swing fully to its logic high (3V) or logic low (nearly 0V) following the op amp.

INTERCEPTING THE WIRING OF THE SIGNALS TO BE CONDITIONED

IBM connected the 1130 disk driver logic circuits to the internal 2310 disk drive mounted in the computer using a cable with about 20 twisted wire pairs, with SLT style connectors on each side. The SLT connector, used on the circuit cards, is a 2 column by 12 row grid of pins. The backplanes into which SLT cards plug are composed of many SLT connector slots. One of the slots in the backplane where the disk driver logic is implemented is where the cable is connected. The disk drive electronics, also built with SLT, has a smaller backplane and one of its slots is used to connect the other end of the cable. 

The V2315CF sits between the 1130 and the internal disk drive, so that it can make a mini 2315 cartridge appear to be spinning on the internal disk drive on a real 2315 disk cartridge. A 2315 cartridge has a single 14" disk platter inside the plastic enclosure. The cartridge is inserted into the 2310 disk drive and read/write heads of the disk drive will read or write data on the platter and provide it to the 1130 computer memory. 

A printed circuit board named the 2310 Interface Board has the cable from the 1130 plugged into it, rather than to the disk drive. Another cable comes from that PCB and is plugged into the disk drive. A pair of ribbon cables come from the 2310 Interface Board and connect to the main unit of the V2315CF. That unit has an FPGA, a Raspberry Pi Pico processor, RAM and a lot of interface circuitry. 

Some signals come from the disk drive and are passed directly on to the 1130. Some signals come from the 1130 and are passed on to the disk drive. The V2315CF will snoop on those signals as necessary to stay in sync with the disk drive. However, signals that would have come from or gone to the read/write heads of the disk drive are instead processed fully in the V2315CF, which creates signals that appear to come from the disk drive but are actually based on data in the mini cartridge. 

A complication is that the V2315CF can operate in one of two ways. It can completely simulate the internal disk drive, while the disk itself remains powered down. More usually, it works cooperatively with the internal drive. The disk drive spins the platter and produces timing signals (e.g. Sector Marker) that indicate where the platter is in respect to the read/write heads at any moment in time. In the other mode, the Sector Marker is generated within the V2315CF. 

Requests from the 1130 to move the read/write heads to one of the 203 tracks (cylinders) on the platter will have the disk drive move the arm with the heads. The V2315CF has to snoop on this so that it knows which track the heads are at. When the 1130 reads a sector of data, the V2315CF has to grab the data from its RAM at the location corresponding to that cylinder, so the two must stay in sync. In the other mode of operation, the disk drive does not move its arm and only the V2315CF is involved in the movement request. 

The cable from the 2310 Interface Board to the 1130 runs through the inside of the 1130, enters compartment C1 of logic gate A and is plugged into a slot of the backplane in the compartment. Its twisted wire pairs were held together with waxed string lacing then covered by a sheath of electrical tape. I can't easily intercept a signal once it enters a slot in the SLT backplane, so the cable is my point of interception.

MOST IMPORTANT CONDITIONING WAS THE SECTOR MARKER SIGNAL

My biggest challenge is when the V2315CF is in the mode where it fully simulates the disk drive. The signal -Sector Marker is produced once every 5 milliseconds during the 40 milliseconds it takes for a single rotation of the 2315 disk platter. For the 1130, IBM decided that it needed a full 10 milliseconds for a reasonable sized sector of information. Therefore the 1130 logic will ignore every other sector marker pulse. 

When doing a write of a sector of data to the V2315CF, the 1130 logic will stop the writing process when the second sector marker pulse arrives marking the end of the logic sector. The falling edge of the sector marker pulse (160 microseconds long) alternates some logic, to alternate whether the sector marker pulse is passed along or blocked. 

Because of the ugly signal arriving at the 1130 logic, the logic might see a sector marker pulse falling edge as two edges instead of one. That would mean that the write ends after only 5 ms since the blocking logic malfunctioned. 

FINDING THE CORRECT WIRE PAIR FOR THE SECTOR MARKER SIGNAL

I opened up some of the electrical tape sheathing, cut the lacing and had access to the individual twisted wire pairs near the end of the cable near where it will enter the compartment of the 1130. Using a signal tone tracer I attempted to locate the wire pair corresponding to the -Sector Marker signal. It wasn't definitive, but I also used a continuity tester hooked across the two connectors at the ends of the cable. I did locate the wire pair and cut it.

PREPARING TO SOLDER IN THE CONNECTORS TO THE SLEDGEHAMMER

I created two short twisted wire pairs that would connect to the two cut ends of the signal wire, as well as continuing the ground in the other wire of each pair. They were hooked to two connectors which will plug into the signal conditioner PCB that I had mounted on the side of logic gate A near where the cable enters the compartment. One of the short pairs goes to the input connector of the PCB, bringing the signal coming from the V2315CF. The other short pair goes to the output connector, bringing the cleaned up signal into the 1130 logic. 

Next session, I will solder these short pairs to the cut ends and insulate everything, then plug the input and output connectors to the PCB. I can then fire up the 1130 and watch the signal on an oscillocope to confirm that it looks clean. As well, I will watch the write process to verify that the full sector is written, not cut short by the defective sector marker blocking.