CHECKED WIRING AND BEGAN POSITIONING THE V2315CF BOX ON THE 1130
I routed the final power lines within the IBM 1130 and positioned the various boards, boxes and the battery where I believe they will live permanently. The interface board that interposes signals between the 1130 controller logic and the 13SD disk drive sits down low on the right hand side of the machine, while the remainder will sit atop the 13SD drive enclosure.
The top right of the IBM 1130 swings up for access to the CE switches, also exposing the top of the 13SD drive and other bits of the machine. Thus, when that gray top is swung up, the Virtual 2315 Cartridge Facility (V2315CF) will be visible. The main box of the V2315CF is angled upwards so that the operator can read the screen and lights. Aside it will sit the power distribution/monitoring board, the power supply, the trickle charger/maintainer, and the motorcycle battery.
I haven't received the power distribution/monitoring board parts yet, but have power connected to both the 1130 main supply and the motorcycle battery at this time. The power supply, charger and battery are sitting loose, but they will be fastened down once I finish this installation.
INADVERTENT SHORT TO V2315CF BOX - WON'T INITIALIZE
The top plate of the 13SD disk drive enclosure is metal and connected to system ground. Due to the tilt of the main V2315CF box, a few pins on the rear of its main board made contact with the disk enclosure plate. The ones I am certain were affected are the three pins for the debugging serial port, but there are also FPGA programming pins that are a hair higher from the edge of the PCB and thus may not have contacted the plate.
When I bring up the system, the V2315CF box does not display anything on its OLED screen nor change the lights to its normal initialized state. Hooking up a USB serial connection to the debugging port yielded no messages at all.
I pulled the Raspberry Pi PICO and attempted to open it as a disk drive on a nearby PC - this is the normal way you program it by holding a BOOTSEL button as it is plugged in. Nothing at all. The PICO is clearly damaged. The remaining question is how much else on the V2315CF box might have been impacted. I grabbed a spare Pi PICO and programmed it with the code.
POWERED UP V2315CF AND SAW IT INITIALIZE
The new PICO did initialize and go through the process of reading a virtual cartridge image into the SDRAM according to the OLED screen on the box. I tried a number of functions such as toggling Read-Only which appeared to work properly. Based on this, I tentatively proceeded to testing on the IBM 1130 system but remained concerned that other devices in the box had failed due to the issue that fried the PICO.
VIRTUAL MODE TESTING CAMPAIGN FIRST
I powered up the IBM 1130 with the V2315CF set to pure virtual mode. An initial Sense DSW to read device status showed appropriate values except that bit 10 was set after the sense when it should be at zero. Nothing in the box itself drives bit 10 in any way, thus this phantom bit is coming from somewhere in the IBM 1130 circuits, perhaps the disk controller logic but it could be anywhere since there is a shared bus that feeds bits for operations such as Sense DSW.
The simulation should begin by emitting sector and index pulses, waiting 90 seconds as the real disk drive would, then turn on File Ready status indicating it is available to accept commands from the 1130. This activity would be triggered by virtually powering up the drive, via loading the virtual cartridge image using the V2315CF.
I flipped the load/unload switch to load and watched the V2315CF read the image and send it down to the SDRAM. The File Ready lamp on the main 1130 console did indeed light up after 90 seconds. A Sense DSW returned the proper status - the disk was not busy or offline, it marked the arm location as Home (cylinder 0), and a sector number was showing. That sector number changed, reflecting the sector pulses which come from a spinning (virtual) disk.
However, I observed three incorrect behaviors in addition to the phantom bit 10 in the device status word. First, the Ready lamp on the V2315CF box was illuminated right after initialization and never changed, even though it should parallel the File Ready lamp on the main 1130 console. Second, the Fault lamp on the V2315CF box lit, which locks out the drive from responding to any further commands from the 1130. Third, the Unlock lamp on the main 1130 console remain lit even though the simulated disk drive had a loaded cartridge once I flipped the load/unload switch on the V2315CF to load.
The Unlock lamp is an issue I didn't properly deal with for virtual mode. When the disk drive is first powered up, it energizes a solenoid to allow a handle to be opened to insert or remove physical 2315 disk cartridges. The +48V on the main console Unlock lamp is pulled to ground by the same circuit that pulls +48V through the unlock solenoid to ground.
The lamp thus lights when the solenoid end is pulled to ground by the drive. The circuit I established in the V2315CF for virtual mode will also pull that line to ground when activated, thus I can force the lamp to light (and the unlock solenoid to energize) from the V2315CF.
This is the opposite of what I needed to do. I instead need to extinguish the Unlock lamp on the main 1130 console when in pure virtual mode, based on a signal from the V2315CF, rather than lighting it. I have to rethink this portion of the design.
The File Ready lamp on the V2315CF box should not be lit except when the main console File Ready is set. The code in the PICO drives the lamp based on the main state machine - when it is initialized or a cartridge is not loaded, it is turned off by changing the general purpose input-output (GPIO) pin on the PICO. Once a cartridge image is loaded, it turns on that GPIO pin.
The signal from the PICO GPIO pin flows over a cable to the front panel board, where a buffer chip drives the LEDs including the File Ready one. Other LEDs are responding appropriately - Unlock - while Fault may be lighting instead of File Ready. Thus the places that might be in error are PICO software, the PICO itself, a cable, of the buffer chip.
The Fault lamp is driven from the PICO in two situations - the simulated disk drive sends a Write Select Error signal via the FPGA or an error is detected in a data word being written from the IBM 1130 to the simulated disk during the writing of a sector. In addition, the fact that this lights when File Ready should go on may indicate a flaw unrelated to the real causes of a Fault.
ADDING INSTRUMENTATION TO CHECK THE ISSUES ABOVE AND DO CHECKOUT
I will add some diagnostic messages to the box so that I can tell when the Fault lamp and the File Ready lamp on the V2315CF is turned on by the code in the PICO. I will also hook up the scope to watch the signals going in and out of the V2315CF to check for correctness.
Today I expect to have an IBM 1132 line printer, an IBM 2501 card reader and an IBM 1627 plotter delivered to my show from the Infoage museum (Vintage Computer Federation museum) where I will restore them and make sure they work with the IBM 1130 I previously restored for the museum. This will minimize time available for debugging of the V2315CF.