A few months ago I was browsing aleatory looking for MSX related projects and found a very interesting Spanish website called “Vaderetro (Satanas)”… something like “go to hell, devil” in a very “colloquial” way. Strange name, but awesome content if you like retro computers and can use the Spanish translator provided by your browser… not my case as I speak fairly good (at least in my opinion 😊) Spanish.

Inside the forum, there is a group for open source hardware projects and a conversation topic about a cool project named uMSX. Here is the link if you are interested uMSX: Clon MSX2+ FPGA – Va de Retro (Satanás) — Versión 3 SSL (va-de-retro.com)

I tried to create an account on the page and give my contribution, but at the moment of this writing new user accounts are not allowed there. 🙄

The uMSX project

The uMSX is a MSX2+ FPGA implementation that basically mimics the Zemmix (one of the first FPGA based MSX2+ one chip MSX computers commercially available).

The computer PCB project was created by a user (well as the image below mentions, he as a “demon of the third order”) codenamed BCH.

The VHDL code used is the well known KDL PLD implementation for the MSX2+ used by the vast majority of the FPGA based MSX computers known. The uMSX uses the first generation of the KDL VHDL source, also known by esemsx.

Based on the already obsolete (but relatively easy to find) Altera EP1C12 FPGA (specifically the EP1C12Q240C8N), the uMSX uses SMD based components (and a few PTH) in a nice compact form factor. It uses the 4 megabit EPCS4 active serial configuration flash memory to host the firmware and configure the FPGA chip at each time the circuit turns on.

A MT48LC16M16A2 SRAM chip offers memory for the computer, which also uses a few other components to implement the clock logic (NC7WV04P6X inverter and 21.47727 basic PTH crystal oscillator) and a 953B voltage detector and reset IC.

Heavily based on 0603 SMT resistance arrays, and other 0805 SMT components, the uMSX is a compact little OCM MSX that can be used to evolve your SMD soldering skills, challenge your knowledge of modern electronics applied to retro computing, and give you a lot of fun through the journey.

I’m documenting all the steps taken to build an uMSX device in this article.

Parts and PCB

All Gerber files required for PCB manufacturing are available on the forum discussion. There are two zip files containing the main board (version 3.5 at the time of this writing) and the cartridge auxiliary board. I ordered PCBs with the default options and with the stencil, as I used a hot plate to solder most of the SMD components to the board. Copies are also available on GitHub with the rest of the files for the project here.

The following table has the list of all components required to build the main board and the cartridge extension board. Please use the links provided just as reference for the component, those are (for the vast majority) the ones I used to purchase my components.

Main Board

QtdPartValuePackageTypeLink
1uMSX main board PCBNANANAMain Board
1Custom acrylic boxNANANAAcrylic Box
3Nylon pcb standoff20mmM3BlackAliExpress
7Nylon screw10mmM3BlackAliExpress
2R106, R9610RM0805SMD ResistorAliExpress
1R11322RM0805SMD ResistorAliExpress
2R4, R6100RM0805SMD ResistorAliExpress
1R71MM0805SMD ResistorAliExpress
2R8, R1010KM0805SMD ResistorAliExpress
3R13A, R13B, R1221KM0805SMD ResistorAliExpress
26RN133, RN97-101, RN103, RN105, RN108, RN110, RN112, RN114-121, RN123, RN126-127, RN129, RN131, RN135, RN152100R0603×4 CAY16SMD Resistor ArrayAliExpress
8RN95, RN107, RN109, RN124, RN128, RN130, RN132, RN134200R0603×4 CAY16SMD Resistor ArrayAliExpress
5RN16, RN111, RN125, RN12, RN131K0603×4 CAY16SMD Resistor ArrayAliExpress
1RN9410K0603×4 CAY16SMD Resistor ArrayAliExpress
1C12.2ufC0805SMD Ceramic CapacitorAliExpress
23C3-10, C13-15, C21, C23-25, C30-33, C35-37, C134100nfC0805SMD Ceramic CapacitorAliExpress
2C18-1927pfC0805SMD Ceramic CapacitorAliExpress
8C26-28, C18-19, CI10-11, CI16220uf 10V153CLV-0605SMD Electrolytic CapacitorAliExpress
1C344.7ufC0805SMD Ceramic CapacitorAliExpress
9LED1-9Any colorCHIP-LED0805SMD LEDAliExpress
112V1×212v pin to the cartridge boardPin HeaderAliExpress
1JP12×5joystick connectorPin HeaderAliExpress
1JP21×2on/off switchPin HeaderAliExpress
1JP32×25cartridge board connectorPin HeaderAliExpress
1JP42×5 (10 pin)JTAGBox Header ConnectorAliExpress
1JP53.5mmStereoAudio JackAliExpress
1PS26Pkeyboard connectorPS2AliExpress
1Q121.47727HC49/SPTH Crystal OscillatorAliExpress
1U1EPCS4N8-pin SOICActive Serial configuration flashAliExpress
1U2953BFP8-pin SOICVoltage detector and resetAliExpress
1U$1EP1C12Q240C8N240-Pin PQFPCyclone FPGAAliExpress
1J1Micro SD SlotAliExpress
1J2DC-005Right AngleBarrel Power JackAliExpress
1IC1MT48LC16M16A2TSOP54-400SDRAMAliExpress
1IC23.3v AMS1117SOT223Voltage RegulatorAliExpress
1IC31.5v AMS1117SOT223Voltage RegulatorAliExpress
1IC5NC7WZU04P6XSOT65P210X110-6AN_SC88_SC70-6Dual Unbuffered InverterAliExpress
1RCAAV-8.4-5 RCARCA ConnectorAliExpress
1F11.1A1812PPTC FuseAliExpress
1EDG-08 (SWITCH)8 switchesAliExpress
1S1 (Button)6x6x7 Push/TactileReset ButtonAliExpress
1VGADB15FEMALE SHORTRIGHT ANGLE AliExpress
1ON/OFF switch2 pin21×15Boat switchAliExpress
2Jumper wireFemale10cmON/OFF cablesAliExpress
2Spade Crimp Terminals and SleevesFemale4.8mm(Buy the set)AliExpress
1Socket Connector Female2.54MM PitchJoystick cable connectorAliExpress
1Flat Ribbon Cable10P (10 pins)Joystick cableAliExpress
1DB9 male connector9 pinJoystick cable connectorAliExpress
1microSD/TF card4GBMemory cardAliExpress

Cartridge Board

QtdPartValuePackageTypeLink
1uMSX cartridge board PCBNANANACartridge Board
1TMA_0512D12VAliExpress
2Inductor100ufPTHAliExpress
2Electrolytic Capacitor10uf/25V153CLV-0605SMD AliExpress
1Electrolytic Capacitor100uf/16V153CLV-0605SMDAliExpress
3Ceramic Capacitor100nfC0805SMD AliExpress
2Ceramic Capacitor4.7ufC0805SMD AliExpress
2Resistor2KM0805SMDAliExpress
1Main board connector2×25Pin HeaderAliExpress
2Edge card connector50PCartridgeAliExpress
4PCB metal standoff15-20mmM3StandoffAliExpress
4Silicone cap13mmM3Sleeve/capAliExpress
4NutM3NutAliExpress
1Main board cable20cm50P 2x25PFlat cableAliExpress

From the whole list of parts the only challenge is the NC7WV04P6X inverter. Due to the chip shortages caused by the COVID-19 pandemic, multiple orders I placed for that component were cancelled. The vendor which the link I included on the table was the only one actually able to fulfill the order.

Besides the list of components you will also need a PS/2 keyboard, a VGA cable (and possibly a VGA to HDMI adapter), and a 5V 2A power supply.

Soldering SMD components

As the uMSX main PCB has most of the SMD components in just one of the sides, I strongly recommend the use of the stencil and a hot table (or oven) to bond the components to the PCB pads. You will need to use solder paste, flux and patience to position all the components and then carefully check on the microscope or with magnifying lenses to be sure there are no bridges. Specially on the FPGA and with the large amount of really small resistor arrays.

If you are adventurous and want to manually solder, start by the FPGA and make sure there are no shorts/bridges before moving to the other components. It is a lot easier to find solder problems when you have just the FPGA soldered to the board.

As a tip if you are soldering manually, just after finishing with the FPGA chip, check if each leg is fixed to its respective pad. Then look for bridges and remove them. When you are sure that the FPGA chip is correctly soldered to the board, use a multimeter to measure the resistance between the ground and 3.3V on the AMS1117 3.3V regulator (the two legs on the left – check the image below). You should get something from 1.6K to 2K ohms. If you get low resistance (something close to 100 ohms), check again if you have your FPGA correctly soldered.

NEVER turn your board if you have low resistance between the two first legs of the AMS1117 3.3V. Usually the AMS1117 1.5V has much lower resistance, but in the 3.3V line resistance is high.

The heat gun can also be used for the soldering job, just make sure you use the appropriate configuration for the air flow, otherwise you will have SMD components flying around your workbench.

The back side of the main PCB needs to be manually soldered, but there will be just a small number of capacitors a few resistors.

Connectors, slots and PTH components

That is the easiest part. After spending time soldering (or verifying) SMD components, PTHs are a breeze.

Firmware

The firmware for the uMSX is based on the first generation esemsx VHDL/Verilog code. You can download the latest packages from KDL page here, or get the latest development versions directly from his GitHub here.

If you are downloading from the page, you will need the OCM PLD Pack file. Download it and unzip its content in a local file on your PC. If you decide to use GitHub, clone the repository to your PC.

After the unzip, go to the latest version folder and navigate to esemsx3 folder. Check the README file, you will see that you need a pretty old Quartus II version (v11.0 SP1). That is because you are using an obsolete Altera FPGA chip that cannot be programmed by recent versions of the software.

Scrolling down on KDL page you will see a link to download the right version of Quartus. Download and install it.

Note: I had issues with driver certificated for the USB blaster after installing this old version of Quartus. My USB blaster stopped working as the certificates for the driver in v11 are already expired. I reinstalled Quartus 20.1 after and everything worked fine.

Follow the instructions on the README file to compile the VHDL files and program your FPGA. Make sure to follow the instruction to convert the programming file and incorporate the emsx_top_304k.cof file, that way you will have an MSX computer with the EPBIOS. Those steps ensure that you will have the basic BIOS together with the programming file stored on the EPCS4, that will be useful in case you have any issues with the microSD card slot.

Connect your USB Blaster cable and use the Quartus programmer tool to upload the programming file to the EPCS4 flash.

When you turn on your uMSX after assembling the PCB, all LEDs should lit. During programming they will flash, turn off and after boot, the uMSX will flash the last LED indicating it is loading the program to the FPGA chip, then it will lit only the LEDs that are correspondent to the configuration on the DIP switch bank.

Turn on 2 and 3 to have a 30Khz video and the last one (8) so you enable the SD card. If you need to understand what each dip switch does, check those files: DIP-SW User Manual or Zemmix Manual.

The microSD card

The micro SD card can be created using an additional package that is also available on KDL webpage. You will need the file named OCM-SDBIOS Pack. To get it, you will need to click the link and send an email to KDL. He will reply back providing the URL from where you download the file.

Unzip its content and follow instructions on the README file to create your microSD card. If you need additional help, check the below video where I’m showing how to create a microSD card to boot Nextor and use multiple partitions created on the card.

Power Source and Cables

The power supply is a standard 5V 2A center positive.

The joystick cable converts the 2×5 pin header connector of the PCB into a male DB9 connector so you can connect a standard MSX joystick. You can build your own cable using appropriate connectors for both sides and a 10pin flat cable.

The following pictures have the joystick connector pinout on the main board and the pinout for the MSX joystick.

The cartridge board cable is a standard 50P 2x25P flat cable. I used 30cm cables, but found smaller ones could be better. We don’t need such long cables. I ended up folding the cable in order to keep the cartridge PCB closer to the main board.

Case options

There are multiple case options for the uMSX. BCH and others on the forum have published STL files with designs that can be 3D printed. I opted for an acrylic case that can be manufactured in 3mm acrylic. It is a simple box design with the MSX logo and a few indications for the multiple connectors for the board.

I’ve collected all the cases I found on the Github repo for the uMSX.

Troubleshooting

The electronic schematics for the main board is available on the forum, but for specific parts you should also use the Zemmix schematics. Both are available on the GitHub repo I created for the project under the schema folder.

Another thing that was very useful was the Kicad 6 Gerber editor. I used it to find out specific trails and follow how they were connected. You can load the Gerber zip package into the viewer and select the “Show in Differentiation Mode” under view. That way you will be able to better see the layers and understand more about the boards.

Black Screen when booting

Two places to look for problems. The SRAM can have soldering problems or you may have the 200R/100R resistor arrays located closer to the electrolytic capacitors with bridges or even disconnected. Use a microscope or magnifying lenses to check for issues.

The cartridge board doesn’t work

Check the 100R resistor arrays located closer to the cartridge board connector. Bridges or disconnected pads can cause issues with cartridges not recognized. You can also use the carttest.bas tool to check on signals related to cartridges.

Using an oscilloscope you can also check for signals on the cartridge connector. Good thing is all signals are active in low and the initial status is usually high for all signals. You should see 3.3V in most of them and consistent activity 0/3.3 in data and address signals.

The image is missing red, blue or green colors

Check the 200R and 100R resistor arrays located closer to the electrolytic capacitors. They are in the RGB lines and if one or two are disconnected, the color signals are affected. Bridges on those arrays can also cause color problems or even the lack of image.

References

uMSX: Clon MSX2+ FPGA – Va de Retro (Satanás) — Versión 3 SSL (va-de-retro.com)

cristianoag/uMSX: Files to build, program and test the uMSX FPGA MSX2+ clone (github.com)

KdL Index! (gnogni.altervista.org)

The Retro Hacker – YouTube

Use of the CMOS Unbuffered Inverter in Oscillator Circuits (ti.com)

2 thoughts on “Yet another FPGA based MSX (The uMSX)”
  1. Olá,
    Estou criando coragem para montar também esse projeto, apesar de já ter um MSX 1 Expert. Esse partlist ainda é valido em 2023? O que foi montado nesta página é o mesmo que aparece no vídeo do youtube?
    Obrigado

Leave a Reply

Your email address will not be published. Required fields are marked *