Kjetil's Information Center: A Blog About My Projects

NEC PC-9801N Repair

Warning: Be careful when working with power supplies, they can contain dangerous voltages even when in powered off state.


After removing all the batteries inside, I brought a NEC PC-9801N that I got from some friends with me in my luggage from Japan. The PC-9800 series of computers are mostly only found in Japan and feature an altered architecture that differs slightly from standard IBM compatible PCs. One of the internal batteries had leaked and started to cause some heavy corrosion, but luckily only on a bracket and not on any of the circuit boards inside. However, this unit had problems with both the power supply brick and the floppy disk drive that needed repair.

Inside the power supply unit, two electrolytic capacitors had started leaking:

Bad capacitors in the NEC PC-9801N PSU


One of them 120uF/25V and the other 27uF/35V which looked like this on the underside:

Bad capacitor C7


I had no 27uF capacitor in storage, so I used a 33uF instead which worked fine. With the power supply fixed the PC would turn on, but when accessing the floppy disk drive some strange sounds would appear. When opening the drive for inspection I discovered that the belt had turned to mush and coiled itself around the motor:

Broken belt in floppy disk drive


But that is not all, the floppy disk drive (which is a "Citizen U1DB-05A" by the way) also contains some known leaking SMD electrolytic capacitors. The larger ones of these had indeed started leaking and caused some minor corrosion. I replaced these with modern MLCC replacements of same values:

New MLCC capacitors in floppy disk drive.


For replacing the floppy drive belt, I found some information online regarding a specific one with dimensions of 57x0.4x2.2 to buy. The new belt is installed like so:

New belt in floppy disk drive


The PC-98 series of computers use their own unusual floppy disk formats which differs from the standard IBM PC ones. One of these formats is known as "1232" and is supported by the PC-9801N floppy drive. By using a old IBM branded USB floppy drive (showing up as "Y-E Data, Inc. FlashBuster-U Floppy" in lsusb) I was able to create floppy disks with that format.

First use ufiformat to low-level format the floppy disk:

sudo modprobe sg
sudo ufiformat -f 1232 /dev/sdX
          


It is then possible to dd images over or use Mtools to do high-level formatting and copy files:

mformat -t77 -h2 -s8 -S3 -c1 -m0xfe -r6 a:
mcopy *.* a:
          

For Mtools to work, the "a:" must be configured to the USB floppy disk drive in "/etc/mtools.conf" first. I noticed that many PC-98 floppy disk images come in a "FDI" format. To be able to "dd" these over, remove the 4096 byte header first.

Here is the repaired computer running the PC-98 version of Puyo Puyo:

PC-9801N running Puyo Puyo


Topic: Repair, by Kjetil @ 08/09-2023, Article Link