After finding and studying the original IBM XT designs I decided that I would try to design and build my own version of an XT PC, which I found should be possible using "off the shelf" parts, no chipset or custom chips are used on the PC core of the system. I guess you could call this a homebrew design since I made it myself at home, though it was also my goal to produce a professional, fully functional, stable and reliable end result. Basically a modern recreation of the original XT PC system. The only original parts from the 80s era are basically the CPU, DMA controller, bus control, intel clock generator, IRQ controller and timer chip. There are no modern equivalents of course, so I sourced these parts from Chinese chip sellers who sell original recycled parts. I ordered more parts than I needed to make sure I would have at least some functional ICs.
Why would I want to create my own version an XT design? After all, it would not be terribly capable in processing power. There is no practical application for this PC, it's a pure hobby project. However for a combination of several important reasons this is also a meaningful endeavor to me:
- I never owned or operated an XT PC before
- historical and nostalgic reasons
- trying old software
- to experience what the limits of an XT PC system would be
- to gain more insight and understanding into the foundation of PC design and start of the industry PC standard
- to be able to easily mount an XT mainboard in any full size ATX PC case
After extensive verification of my CAD schematic, I decided to make a few changes to the original IBM circuits which I felt would be an improvement.
- merging some buffer ICs
- changing the dip switch circuit
- adding "Turbo" CPU clock and control logic
- fixing the DMA clock to 4,77 Mhz 50% duty cycle with my own clock divider circuits
- deriving all XT device clocks (DMA, Timer, Keyboard) from 14,31818 Mhz fixed OSC clock on XT oscillator
- removing the refresh and multiplexing logic of the DRAMs and replacing the entire RAM range with 1MB of SRAM memory chips, using jumpers to enable the D and E blocks of upper memory RAM, supporting to load drivers in UMB areas and free up conventional RAM memory
- double ROM memory space(128K) in a single ROM chip with a jumper or switch to select the active page
- changing various logic on the CPU/DMA WAIT control and CPU/DMA switching of the bus
- adding the 16 bit extension part on the ISA bus connectors, mostly to accommodate larger adapter cards fully into a slot
I spent some work into double checking all circuits and partially developed certain circuits using paper notes. Totally I drafted 38 pages of A4 size design notes and logic tables to verify and reach the first revision stage XT design, which functioned right away when first powering it up.
When looking at PCs there are usually a number of typical devices you would wish to include in your PC computer, such as:
- Keyboard interface (real and original XT keyboard function)
- Serial port for mouse functions
- Parallel port for printing and interlink connection to other PCs
- HD floppy drive interface
- IDE harddisk interface(compatible to work with XT-IDE BIOS)
- LAN adapter
- ATX power control and (power-on) reset logic
- SCSI adapter supported by existing DOS drivers
- simplified power on and reset circuits
For the LAN adapter I decided to choose the widely used Realtek RTL8019AS chip. This chip contains all decoding logic and uses a serial EEPROM for part of the configuration. Though I would have preferred to simply add the decoding to my own logic circuits, since it's included inside the Realtek chip, I used the Realtek decoding logic.
The SCSI adapter required some more experimenting and testing, since I needed a working device driver for implementing the SCSI ASPI control and another two drivers for adding a SCSI harddisk volume to DOS and for supporting a SCSI CD-ROM drive. After extensive testing with the Rev 2 prototype of this mainboard using a Zilog 5380 clone chip, I decided to choose the NCR 53C400 chip instead. The main reason is simplicity of design, despite the disadvantage of the chip being physically larger in size. The 5380, though setting a standard, is unfortunately not a straightforwardly used chip on adapter cards. None I have seen used the straightforward connection. Except one, but that card only offers windows 95 device drivers. Since this XT PC is a low performance 8-bit 8088 system to begin with, and as I am integrating the SCSI on my mainboard for which I want to allocate as little board space as possible, I finally chose the NCR 53C400. This chip provides a compact SCSI interface which is known to be correctly supported by DOS drivers on an 8-bit XT PC. The drivers I used are flexible, stable, small and load quickly on an XT with a 8088 CPU. (I actually tested with a NEC V20) I have tested this SCSI chip with several harddisks and SCSI CD-ROM drives and the results were very satisfactory.
Since my XT doesn't include USB capability, the SCSI interface is a really useful alternative for file copy and transfer to the PC using an external SCSI harddisk. This was the main reason for me to want to include SCSI on this mainboard.
The ATX power on and reset logic I first made included a few extra circuits such as power good verification and auto-shutdown circuits, however I found later that under certain conditions these circuits proved to be a bit unreliable in not always powering on. After several tries to solve this, I decided it would be better to remove the auto-shutdown parts and simply implement power on logic and reset control and timing circuits. On this 3rd revision things work under all conditions of external connections to the PC which to me now is more important than elaborate power-good checking.
Basically, everything I would want to have is included on this integrated design, except:
- VGA adapter
- Sound card
I don't want to include these on the mainboard because these cards are really something one would want to add separately according to preference and experience while trying the computer out. All the VGA cards I have here which support 8 bit BIOS operation are fully functional on this mainboard design. Maybe later if I would decide to make a fully integrated PC in a so-called "pizza box" format, I may choose to integrate the VGA and sound as well to reduce the total size of the PCBs used. I may even entirely leave out the expansion bus in that case, or just keep one slot for optional testing and diagnostic purposes. The pizza box case would house the entire PC on one PCB in the bottom of the case and above it only house a power supply and the disk/disc drives.
Functionality of the XT PC today
This XT PC is not capable of much if you only regard the processing power or the fact that it's an 8 bit PC. On the other hand, slow or not, the XT PC is able to perform more tasks than you would expect. It's all a matter of perspective, how you look at the system. This PC is capable of managing and copying gigabytes of disk storage, it can run DOS, Windows 3.0, a simple form of linux(ELKS), play music, create and print text files, display photos in 256 colors, and play various games. The system can read CD-ROM media and copy from them. Though slow, it is fun to explore the limits of this simple 8 bit system and sometimes it can surprise you to be able to do more than expected. It's fun to use DOS and remember how mainstream computing was back in the 80s and 90s. What I also love is the reliability of this system after I completed it. The "old" components I used are a tribute to the quality of the 80s era chips, they are real survivors, probably the manufacturers are still proud of what they accomplished when they still see their chips alive and working today.
Some people like the original IBM XT systems, which I agree have their own charm, they look nice and cool. However when using them you will likely encounter problems and limitations very soon. That's why I personally like a more expanded system more than original XTs, simply because we do have this technology available such as larger IDE drives, SCSI, VGA, CDROM, etc. So why keep the limitations and problems? I enjoy the experience of making a system live up to its full potential.
When you see what people have recently created for XT PCs you can see that they are still popular amongst enthousiasts. Not for the processing power but for the historical value of the XT computer. There are various communities where you can find enthousiastic classic computing fans. Often they are people who experienced those days in the 80s and 90s. Though at the time I never saw a PC until the late 80s myself. The first PC I used was actually a 80286 system.
Using the LAN connection this XT PC can accurately set the date and time via an NTP server, which I have included into my startup. I was able to use NFS to some degree, with mixed results due to software bugs in the NFS client software on the XT side. The XT can view web pages on a text based browser, it is possible to read the website text content.
About the SCSI bus, I will make a custom cable to run from the slot bracket in the back to the SCSI bus on the mainboard, and running it through to the top to connect the CD-ROM drive. I will probably make a terminator which can plug into the rear 25 pin SCSI connection at times when I am not using an external SCSI harddisk. That way, the termination on the mainboard will not be necessary anymore.
Quirky DMA timing
I experienced some difficulty with the 8237 DMA controller at various stages of my 3 design revisions of this XT mainboard. This time when I found the same occurance, I decided to dive into the problem in more depth to determine the reasons why I was observing the problems. What happened sometimes would be that I was able to read floppy disks, copy from them. However to format a floppy disk proved to be a more elaborate function because sometimes I was not able to format a floppy disk at all. After extensive testing I found that the reason for the system not being able to format floppies under certain conditions was due to DMA control timing. The DMA handover and bus control is done by various logic circuits, where I found the difference in operation was due to subtle timing differences. I have experienced this kind of delicate timing problems with other circuits and systems, however the DMA control is definately more sensitive compared to other things I experienced before. After choosing the right logic family ICs for the DMA control circuits I found that I could format floppy disks successfully with the most DMA controllers I have tested. Of 10 recycled DMA controllers I tested, around 9 of them are able to boot up the PC, however only 3 of them are able to format floppy diskettes. I have tested extensively however that's the current result I arrived at. I thought about the problem and it's my theory that if I can find even faster logic chips, I may be able to successfully format diskettes using all of the DMA controllers which are functional at least. One possibility would be to use faster logic such as PAL or GAL chips for example. For now I don't plan to actually do this due to the amount of work needed weighed against the results of such a work.
In the photo above you can see the different DMA controllers I have tested. I received 10 DMA controllers from China, most are NEC branded ICs, two of them are from Intel. It's a funny fact that the 8237 DMA controller is actually made by Intel in license from AMD. So the design of the industry standard setting DMA controller is made by AMD.
I must admit, the DMA controller complicates the computer design somewhat. Also I noticed that the chips are very sensitive, when you lay your finger on them, the PC may freeze or not release the DMA cycle if active. Additionally I found that the timing shifts somewhat when the DMA controller heats up. There is actually one "marginal" DMA controller in my collection which can format floppies in the present circuits if you keep cooling it, for example by blowing air onto the chip, it can complete to format a floppy disk. Really a funny experience. When I stop blowing air, a few seconds later it will start to fail, until I cool it some more.
Anyway, if I ever do decide to get started on CPLDs, I may test one to replace my DMA control logic circuits, to see how much the DMA timing would be improved when accessing floppy disks. I believe a CPLD can pull the timing within spec to operate reliably with all these DMA controllers in the picture. Though one of the Intel chips appears to be dead since the XT cannot initialize with this Intel DMA chip so it must be defective.
Final remarks / conclusions
This 3rd revision design is now fully tested so I consider this project finished. At the moment I don't see any big reason to produce a revision 4 PCB.
It was a great experience to test and use this PC, it has turned out to be a very comfortable and functional system with comforts of use such as for example easy power control using the ATX power supply with a modern front panel switch, unlike the AT systems of the era which use bulky mains power switches, sometimes located at the back of the case. I use a Cherry G80-1000 XT/AT keyboard which is really a pleasure to type on.
Next Project: 80286 Turbo AT ATX PC design
Next in this series of PC mainboard design projects is the 80286 Turbo AT ATX PC project.
I have finally taken the step to work on this project, I have found some suitable reference example mainboards for testing and evaluation. The work is looking very promising and I am getting more and more enthousiastic the more I dive into the schematics of the IBM 5170. As far as I'm concerned, time permitting, the AT project will become a reality!
I created a page here: continue reading on my new project page at this website...