X68000 External MIDI Interface Using a Serial Port

Building an external MIDI interface for the X68000 using a serial port turns an overlooked RS-232C connection into a bridge for keyboards, controllers and vintage sequencing software. It suits the machine because the X68000 already has a UART, serial drivers and a hardware enthusiast culture. The result speaks ordinary MIDI DIN-5 without requiring a USB host or modern PCI card.

MIDI and RS-232 are not interchangeable. RS-232 uses bipolar voltage signalling, while MIDI relies on a 5 mA current loop and DIN-5 connector. The X68000 serial port can carry asynchronous bytes at MIDI’s 31,250-baud rate, but it needs level conversion, polarity correction and opto-isolation before meeting a keyboard or drum machine.

A sensible first build uses the serial connector in both directions, a MAX232-family transceiver, a 74HC04 inverter, a small transistor and a phototransistor optocoupler. The board runs from a regulated 5 V supply, leaving the computer’s power system untouched. That separation simplifies servicing and prevents RS-232 voltage from reaching a MIDI-only port.

Australian builders can source small quantities from Jaycar stores in Melbourne and Sydney, distributors such as RS Components and element14, or Australian eBay sellers. Plan around GST-inclusive pricing, counterfeited ICs and stock gaps; buying two MAX232 and 74HC04 devices may cost less than another delivery. Swap meets around Brisbane and Adelaide are useful for tracing leads and locating obsolete DIN sockets.

Build route X68000 connection Additional hardware Best fit
Direct serial MIDI RS-232C serial port MAX232, inverter, optocoupler and DIN sockets Lowest-cost DIY option using the native UART
Ready-made serial MIDI box RS-232C serial port Commercial RS-232/MIDI converter Fastest build with less circuit work
USB MIDI adapter USB host or software bridge USB MIDI interface Useful with modern DAWs, but not a direct serial solution
Expansion-specific MIDI Matching expansion hardware Purpose-built MIDI board Suitable only where the required expansion exists

Match MIDI Electrical Levels and Pinouts

MIDI uses a 5 mA current loop rather than RS-232 voltage signalling. On a standard DIN-5 socket, MIDI OUT uses pins 5 and 4, while MIDI IN uses pins 3 and 2. A normal MIDI cable crosses the conductors: OUT pin 5 reaches IN pin 3, and OUT pin 4 reaches IN pin 2. Pin 1 is normally shield or unused, so it must not be treated as data.

In the arrangement used here, current-on represents serial logic zero and current-off represents logic one. That matches the UART start pulse and lets the optocoupler feed the receiver directly. Check the socket from the solder side, because drawings often show the mating face and an apparent mirror image can reverse every connection.

Do not rely on socket labels to guarantee polarity. Some clone equipment reverses the loop, and older Japanese instruments may use unusual wiring. A multimeter and MIDI analyser will reveal whether idle current, start pulses and byte polarity agree with the attached device. Record those results beside the schematic for later testing.

Choose and Verify the X68000 Serial Path

The X68000 model and board revision matter when identifying the usable port. Consult the manual and continuity traces rather than assuming a connector label, then verify the transmit, receive and signal-ground pins belonging to the selected RS-232C channel. A multimeter probe is often faster than hunting for an old driver disk, but the result should still agree with the service diagram.

A MAX232 or equivalent converts the computer’s bipolar levels to and from TTL UART levels. One receive channel takes X68000 TXD into the MIDI output circuit; the transmit channel returns the MIDI input optocoupler to X68000 RXD. It is not a galvanic isolator, but it keeps the RS-232 voltage away from the DIN connector.

Before choosing another route, users considering additional cards should review the Nereid-X expansion details. If it provides a suitable serial resource, wiring may be simpler; if not, the compact UART-to-MIDI circuit still works. Keep the MIDI converter outside the expansion system and base the design on a known, stable UART.

Source Parts and Plan the Prototype

The core parts are one MAX232, one 74HC04, one 2N3904 or BC547, one PC817 or equivalent phototransistor optocoupler, 560-ohm and 220-ohm quarter-watt resistors, a 4.7-kilohm base resistor, a 100-kilohm base bias resistor and a 10-kilohm pull-up. Add the MAX232 charge-pump capacitors, a DIN-5 socket, terminal block, hookup wire and shielded enclosure. Any activity LED should sit on the UART side.

Australian electronic shops stock many of these items, although transceiver and optocoupler grades vary. Use a reliable source for the ICs, since a poor MAX232 can fail at the supply rails despite passing a logic probe. A bench supply, continuity tester and oscilloscope or logic analyser are more valuable than a collection of indicator LEDs. Old leads found at a Sydney swap meet are useful only after every pin is identified.

Prototype the receiver, transmitter and connector on separate perfboard areas. Draw the signal flow, then add power, inversion, conversion and isolation one stage at a time. Keep local copies of the schematic and datasheets; a generic APK reference link can sit with other mobile bench bookmarks, but it cannot replace the component values and X68000 pinout recorded beside the build.

Construct the Receive and Transmit Circuits

For MIDI OUT, connect +5 V through 560 ohms to DIN pin 5 and connect DIN pin 4 to the collector of the 2N3904, with its emitter at ground. Drive the base through 4.7 kilohms from the inverted TTL transmit signal, and add the 100-kilohm base-to-emitter resistor so the output stays off during reset. The receiving device’s 220-ohm resistor completes the loop and limits current to roughly 5 mA.

For MIDI IN, feed DIN pin 3 through 220 ohms into the optocoupler LED and return the LED’s other side to DIN pin 2. Connect the phototransistor emitter to logic ground, its collector to the MAX232 transmit input, and the 10-kilohm pull-up from collector to +5 V. With this polarity, incoming logic zero pulls the collector low, while the MIDI side remains separated from receiver logic.

Join the MAX232 receive output to the 74HC04 input and use an inverter output for the MIDI OUT transistor. Route the optocoupler collector into the MAX232 transmit input and return that channel to X68000 RXD. Tie logic ground to the X68000 and RS-232 ground to the serial socket’s signal ground. Fit all MAX232 charge-pump capacitors as specified, place the 100 nF ceramic beside the device and keep DIN wiring away from the serial lead.

Configure the UART and Test Both Directions

Configure the selected channel for 31,250 baud, eight data bits, no parity and one stop bit. Disable RTS/CTS or software flow control unless the chosen X68000 program requests it, because conventional MIDI does not use handshaking. The test program and later music software must use the same 8N1 format; a mismatch can resemble a dead interface.

Test before fitting a DIN plug. The TTL transmit line should idle high and show a low start pulse for each byte. After inversion, current should be absent while idle and flow during the start bit and logic-zero data bits. On the receiver, the optocoupler collector should idle high and show matching low pulses. A scope clip or logic analyser will expose a stuck inverter or transistor.

Then cross-connect MIDI OUT to MIDI IN with a proper DIN cable and observe the received bytes. A hardware MIDI monitor, sequencer or another X68000 program can display note-on and note-off events. If activity appears only with the cable removed, suspect reversed polarity or a socket viewed from the wrong side. If bytes arrive but note timing is wrong, check for stream inversion.

Finish the Enclosure and Supply Safely

Mount the sockets so their shields meet the metal enclosure rather than a long logic-ground wire. Keep DIN returns separate from signal wiring, and avoid running the MIDI cable beside an RS-232 lead. A short board-to-computer lead reduces hum pickup, while ferrite beads or a small common-mode choke can tame remaining interference. Leave access to the UART controls and replaceable parts.

A separate regulated 5 V adaptor is the simplest supply. In Australia, mains power is 230 V at 50 Hz, so use a certified external supply with an appropriate Type I plug and confirm its polarity before connection. Do not open or rewire the X68000’s internal supply for this project. If a mains adaptor is sold to others as electrical equipment, it must meet applicable Australian RCM and state or territory electrical-safety requirements, including correct markings and documentation.

Label the supply, sockets and serial lead, then record the X68000 model, UART settings, connector view, resistor values and measured waveforms in a service note. Photographs and a downloadable schematic are as valuable as the hardware: another owner can reproduce the interface, diagnose a failed capacitor and keep a piece of X68000 history working.

Use, Troubleshoot, and Share the Interface

Once installed, the interface can sit between the X68000 and a keyboard, drum machine, MIDI controller or another computer. MIDI OUT sends note and controller events, MIDI IN receives them, and a MIDI Thru connection can pass data onward in a daisy chain. DIN-5 carries signals but not device power, so every powered instrument still needs its own supply. Use separate Thru and Out sockets to avoid feedback.

For no events, check 31,250 baud, 8N1 framing, TX-to-RX orientation and the X68000 serial pin assignments first. For one-way operation, measure both sides of the MAX232 and inspect the 74HC04; a failed RS-232 channel often resembles a MIDI fault. For erratic timing, move the interface away from CRT wiring, check the common 5 V supply and shorten its ground return. A MIDI monitor turns these checks into a repeatable fault-finding sequence.

Document the completed unit with a clear schematic and operating note, then share it with the wider X68000 hobbyist community through X68K.NET. Build the receiver and transmitter on separate prototype sections, verify current polarity and both data directions with a scope or MIDI monitor, then move the proven circuit into a shielded enclosure and record every connector and UART setting. That sequence turns a spare serial port into a durable external MIDI interface ready for the next X68000 session.

Nereid-X Expansion Board

A personally-produced LAN+USB+Memory expansion board for Sharp X68000 series computers. Multiple production runs were offered, including a final batch and a later revival reproduction run.

Power Supply Repair

X68 power supply repair and modification services were offered by the site owner, with documentation shared through diary entries spanning 2001–2006.

Server & Networking

Notes on FreeBSD administration, ISP changes, server migration, and networking topics. The site itself ran on FreeBSD with the hns diary system and Namazu search integration.

A two-ink risograph print in muted slate-blue and charcoal on off-white paper, showing a stylized desktop computer monitor beside a circuit board with soft geometric trace lines, conveying a calm retro-computing workshop atmosphere. A two-ink risograph print in deep purple and dark grey on cream stock, depicting a compact expansion card with connector ports and subtle Japanese technical annotations, evoking a hobbyist electronics bench. A two-ink risograph print in teal and charcoal on warm white paper, showing a server rack silhouette with soft network-line motifs and a small weather icon, suggesting a personal server room corner.

Get in touch

X68K.NET connects Sharp X68000 enthusiasts through community links and shared projects. Reach out with questions about the Nereid project or X68 resources.