Skip to the content
4 layers292.1 × 88.3 mmSnark barker mca, the printed circuit board in 3D

A Sound Blaster compatible sound card for Micro Channel bus computers

Size
292.1 × 88.3 mm
Copper layers
4
Thickness
1.6 mm
Parts
177
Nets
215
Pads
1,020
Tracks, vias
4,504, 397
Pours
5
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
29 Nov 2020
Updated
30 Apr 2022

Overview

Snark barker mca is an open-source printed circuit board by schlae, from the schlae/snark-barker-mca repository on GitHub. It is a 4-layer board of 292.1 × 88.3 mm with 177 parts on 215 nets, routed with 4,504 tracks and 397 vias.

It is built around the 74HCT125PW, 74HCT244D and 74HCT245, with the LM324, NJM3403AD and 74HCT74D among its other parts. Its parts include 79 capacitors, 42 resistors, 27 ICs, 7 connectors and 3 inductors. It belongs with the audio and music boards and the FPGA and CPLD boards of this library.

Main components

12

README

README.md

Snark Barker MCA - A Sound Blaster Compatible for Micro Channel Computers!

Do you desperately want a sound card for playing games on your Micro Channel-based IBM PS/2 computer--a system designed for serious business purposes? Do you not want to pay the ludicrous auction prices for the rare Sound Blaster MCV cards? Well, despair no longer: the Snark Barker MCA has arrived!

Snark Barker MCA Photo

The Snark Barker MCA is a Sound Blaster-compatible sound card designed specifically for computers that use the Micro Channel bus. It supports Ad Lib synthesis, digital sound playback and recording, a standard PC joystick, and SB MIDI.

All of the components are readily available. In the bill of materials, Mouser part numbers are listed where available. The Yamaha synthesis chips may be obtained from a variety of sources in China, but they are not guaranteed to work, so I recommend getting 1 or 2 extras just in case. The same goes for the NE558. Note: A user reports that a Signetics NE558 with a date code of 8825VI that seems to be commonly available from China does not actually work. If you can't find any working 558 chips, try building my replacement that uses four 555 chips.

Schematic

Bill of Materials

Please note that the 0.1" header pins are not listed on the BOM. They are standard breakaway headers. Headers J2, J4, J5, and J6 are optional and only useful for people who want to connect a logic analyzer to the bus for CPLD debugging.

The CMS chips U14 and U15 should not be installed since CMS functionality is not implemented at this time. Other devices listed as "DNI" are to be left empty with no component soldered in place.

Logic chips are all specified as AHCT, but ALS or ACT may also be used. Do not use LS or HCT devices, particularly for U2, since Micro Channel is a much faster bus than ISA and this logic is not quite fast enough to meet the timing margins. Bipolar families like F or S devices use excessive amounts of power but can be used in a pinch.

Fab Files

Fabrication Notes

This is a 4-layer board. The order of the two inner layers does not matter, but typically it goes F_Cu, In1_Cu, In2_Cu, and B_Cu. The board dimensions are 11.5 inches (292.1mm) by 3.475 inches (88.265mm).

When ordering the board, you must specify a card edge bevel of 20 degrees (details of the bevel are included in the Dwgs.User layer). This is not optional! The contacts in the Micro Channel socket are easily bent if you attempt to insert a card with no bevel. Don't believe me? See this page.

Ideally you should use selective gold plating (hard gold) for the edge fingers, but this can get expensive for small orders. ENIG will work but the gold will rub off fairly quickly.

For the soldermask color, pick whatever you want!

Assembly Notes

I recommend soldering the CPLD (U31), the voltage regulator (U32), and the associated surface mount capacitors before you solder in the remaining components. You can do this by hand with a pencil iron or you can use a reflow process, but be aware that the board is too long to fit in the small hobbyist reflow ovens.

Photo showing pin 1 alignment of CPLD

Be sure the CPLD is soldered in the right way around! Compare it with my photo of the card to be sure you have it right!

Inspect the CPLD's solder joints carefully with a microscope to make sure you don't have any bad connections or solder bridges. This can save you a lot of grief later on.

Install sockets for the Yamaha chips U9 and U10 in case you get one that doesn't work and need to replace it.

Bracket

MCA brackets are no longer available. You have a few options:

  • Remove the brackets from an existing card, like a token ring card or something common
  • 3D print the bracket
  • Use the card without a bracket at all

If you want to print your own brackets, here are STL files of the front panel bracket and the rear bracket.

Front bracket

Rear bracket

For best results, use high quality filament and a layer height of 0.16mm or better. If you print using blue filament, the color will match the original IBM brackets.

The front bracket should be oriented so that the front face of the bracket is facing towards the bed of the printer. The rear bracket should be oriented so its large flat spot (parallel to the card) faces the bed.

To secure the bracket to the card, you need two screws, and you have several options:

  • 2-56 pan-head screws, 3/16" long, McMaster Carr 91772A076 or similar. These work but aren't the strongest.
  • Number 2 thread forming screws, 3/16" long, McMaster Carr 99461A710 or similar. These should grip the plastic tightly (TODO: untested).
  • There may be equivalent metric options but this requires experimentation. Please let me know if you find a fastener that works well.

The Firmware

There are two ways to get a programmed 80C51 chip for the Snark Barker MCA. One is to purchase a SB 2.0 DSP chip from China and put it in a 44-PLCC to 40-DIP adapter. This works fine and provides the largest feature set.

Another option is to buy a blank Atmel 89S51 (as listed in the BOM) and program it with this HEX file.

CPLD Notes

The Snark Barker MCA uses a CPLD (Complex Programmable Logic Device) to interface between the Micro Channel bus and the rest of the card's digital logic. This CPLD implements port IO, interrupts, DMA, and the card setup and POS (Programmable Option Select) systems.

The CPLD must be programmed with the bitstream before you can use the card. You can find the bitstream here.

I've had good luck using the Linux command line program 'xc3sprog' with a FTDI FT2232H Mini Module datasheet here.

Wiring for the FT2232H mini module:

Point 1Point 2Description
CN2 pin 1CN2 pin 11V3V3 to VIO strap
CN3 pin 1CN3 pin 3VBUS to VCC strap
CN2 pin 3CN3 pin 12V3V3 to VIO strap (2)
CN2 pin 5JTAG cable pin 6V3V3 to Snark Barker (optional)
CN2 pin 2JTAG cable pin 5GND
CN2 pin 7JTAG cable pin 4AD0, aka TCK
CN2 pin 9JTAG cable pin 3AD2, aka TDO
CN2 pin 10JTAG cable pin 2AD1, aka TDI
CN2 pin 12JTAG cable pin 1AD3, aka TMS

You need to provide external power to the Snark Barker through the 3.3V wire on the programming header. The optional wire does this, or you can use a bench supply.

I obtained xc3sprog here. You can compile and run this program on a Raspberry Pi to use the Pi GPIO lines instead of the FTDI mini module. In my case, I chose to patch it (TBD) to remove references to the Pi GPIO library and ran it on a regular Linux PC.

Using the FTDI mini module, programming is quite simple. Connect the cable to the assembled Snark Barker board, then run the following command. You can do this with just the CPLD, programming header, and surface mount capacitors--there's no need to have any of the other components soldered in place for this step.

xc3sprog -c ftdi -v mcadlib.jed

If you run into issues with the cable not being detected, check your udev rules. In theory you could run xc3sprog as root, but that's bad practice. ;)

Building the CPLD Project

If you're feeling particularly masochistic, you can try building the CPLD project using the Xilinx ISE Webpack tools. Because the ISE Webpack only supports Ubuntu 14.7, it's simplest to run the program from a Docker container. I use docker-xilinx.

How the CPLD Works

This isn't meant to be an exhaustive tutorial on how Micro Channel works (you can find a tutorial here). Functions provided by the CPLD include:

  • Card setup and POS
  • Address decoding logic
  • Bus logic interface to the YM3812
  • Wait state logic for the YM3812 interface
  • Interrupt logic
  • DMA state machine including arbitration logic

Each card implements several 8-bit registers (POS registers). Two of these registers are fixed and implement the 16-bit card ID value, which is how the BIOS and the reference disk software identify the card. The remaining POS registers can be used for any configuration-related function and are designed to replace configuration jumpers. The meanings of each register bit are up to the card designer, with the exception of a reserved bit that is used by the BIOS to enable or disable a card; this way, the BIOS can resolve conflicts automatically. Typically POS register bits control IO and memory address assignments, IRQ lines, and so forth.

The CPLD implements the two required ID registers as well as two additional POS registers. The first contains only a single bit -- the card enable signal. The second register controls the IO port setting, the IRQ and DMA channel settings, and the joystick port enable bit.

When you add a new card to a MCA bus system, the BIOS detects the new card and requires you to run the reference disk configuration program. This program searches for an ADF file associated with the new card. The ADF file is human-readable text that tells the BIOS which I/O address, IRQ, etc match up with each POS register bit. The reference disk program uses this information to find a configuration for all the cards in the computer so that none of them conflict with each other. When it's done, it writes the raw POS register values along with the card ID values to the battery-backed SRAM on the motherboard.

Compatibility

The Snark Barker MCA has been tested on some models of PS/2. More to be added as people provide test reports.

ComputerModelCPUCompatible ?
IBM PS/2 Model 50Z8550-03180286-10Yes
IBM PS/2 Model 55SX8555-X31486SXLC2Yes
IBM PS/2 Model 569556-KB680486SLC2-50Partial(1)
IBM PS/2 Model 708570-E2180386DX-16Yes
IBM PS/2 Model 708570-B2180486DX2-50Yes(1)
IBM PS/2 Model P708573-06180386DX-20Yes
IBM PS/2 Model P758573-401486DX2-66Yes(5)
IBM PS/2 Model 808580-07180386DX-16Yes(4)
IBM PS/2 Model 958595486DX2-50Yes(1)
IBM PS/2 Model 959595Pentium-90Yes(3)
NCR System 34003433486DX2-66Yes
NCR System 34003421386SX-20Issues(2)

Note 1: See the Machine Specific Notes section below for more details about this configuration.

Note 2: Some problems reported with the NCR 3421 possibly due to a conflict with the onboard SCSI. Further investigation is needed.

Note 3: The Ad Lib detection routine used by some games is reported not to work

Note 4: There is one report of the Plaid Bib (the ancestor to this card) behaving erratically in this model of PS/2. However I have not observed any issues with the Snark Barker MCA.

Note 5: Machine has LAN Adapter/A installed.

If you build the card and try it out, please let me know how it went. Be sure to give me the full part number of your computer along with any installed options (3rd-party planar, memory cards, etc). If you're located in Silicon Valley, you could also loan me (or even give me!) a computer not on this list and I will test for compatibility myself.

Machine Specific Notes

IBM PS/2 Model 56 486SLC2 (9556-KB6)

Configuration: No cards installed.

The joystick port conflicts with the SCSI host that is built into the planar and must be disabled.

IBM PS/2 Model 70 486 (8570-B21)

The configuration tested included

  • 8MB RAM (on the planar)
  • ESDI hard drive with DOS 6.22 and Windows 3.11 installed
  • Buslogic BT640A SCSI card
  • IBM XGA-2 video card

Although not fully understood, this configuration experiences what appear to be IRQ conflicts. The Micro Channel bus allows IRQ sharing, but not all software supports this correctly, so it may be related to that. "Doom" only works when using IRQ2. A workaround is to replace the default DOS4GW DOS extender with the DOS32A extender; this allows IRQ5 and IRQ7 to work correctly.

The Windows Sound Blaster driver crashes unless it is replaced with the driver recommended by Creative Labs for the SB Pro MCV. "VDMAD.386" is in the SB Pro MCV driver pack.

text
Some PS/2 machines experience a "Bus timeout error" when running Windows
3.1 in enhanced mode.  If you have this problem, Copy VDMAD.386 to your 
WINDOWS\SYSTEM sub-directory and change the following line under the [386Enh]
section in your SYSTEM.INI file.
[386Enh]
;change this line
DEVICE=*VDMAD
;to this line
DEVICE=VDMAD.386

You can also fix it by first starting Windows in standard mode, win /s, exit, and then start Windows in enhanced mode win as you normally would.

IBM PS/2 Model 95 486DX2-50 (8595)

The joystick seems to conflict with something else and the setup program turns it off.

Getting Doom to run is slightly tricky and requires a hack. It only worked when IRQ was set to 5 and DOS4GW was replaced with DOS32A, but this version doesn't properly initialize the sound card. The hack is this:

  • Make a copy of DOOM.EXE: copy doom.exe doom_p.exe
  • Apply the DOS32A patch: sb /r doom_p.exe
  • Run the original first: doom and let it crash back to the DOS prompt.
  • Run the patched executable: doom_p

Installation

You will need the ADF (adapter description file) in order to set up the Snark Barker MCA on your Micro Channel computer.

Snark Barker MCA ADF

Place the file on a 3 1/2" floppy disk. After you install the card and boot the computer, it will detect that a new card has been installed and prompt you to insert the reference disk. Do this and follow the prompts. When the setup utility asks you to insert the option disk, use the one that contains the ADF file. After the setup utility configures the card, it will prompt you to reboot the machine.

Plug your line-level audio amplifier input into the card's 3mm audio jack nearest the joystick port. The other audio jack above that one is for the microphone input.

Once that's finished, try out the Snark Barker MCA with your favorite game!

Troubleshooting

Hoo boy, this one is a doozie. Someone once told me

At Creative Labs tech support we would always get a sinking feeling whenever someone said they had a SoundBlaster MCA. Guaranteed at least a 45 minute call. Weekly average call time blown straight to hell.

Keep in mind that Micro Channel systems can be difficult to troubleshoot due to the large number of possible configurations and the varied implementations of the bus. Not all games will even work on some PS/2 systems even without a sound card!

Here are a few things to try out first before you starting really digging in:

  • Is the CPLD soldered in correctly, with no solder bridges? Did you program it?
  • Are there potentially bad or fake chips? Some users have reported issues with fake NE555s or fake 74ALS245 chips.
  • Did you program and install the 8051 (DSP)?
  • If the BIOS detects and installs the card, but you have issues with the audio, try removing all the expansion cards except for the Snark Barker
  • Try running SBDIAG

Symptom-by-Symptom

Computer will not boot at all, Computer boots but does not detect the card

Suspect the CPLD. Check for bad solder joints. Is pin 1 oriented correctly? Compare it with the photo.

Did you use something other than a 74HCT245 or 74ALS245 for U2? Slower logic families can "crash the bus" and prevent the system from booting.

Joystick doesn't function

Is the joystick enabled? Run the setup program and navigate to "Change Configuration" and see if the joystick is on or off. The setup program may have turned it off due to a conflict with another card (Ethernet cards often like to use the joystick port location).

No digitized sound. Digitized sounds play but are cut off

It is possible that you have an IRQ conflict. Micro Channel allows for IRQ sharing and not all games support this correctly. Try changing the IRQ using the setup program's "Change Configuration" menu and see if that helps.

Since games implement Sound Blaster support in different ways, some programs may work and others may not!

The card causes random errors with the hard disk, or other cards

Do you have a legitimate 74ALS245, or is it fake? A user reported that swapping this part out with a legitimate one solved the problem for him.

Troubleshooting for Engineers

If you have an HP logic analyzer, like a 1670 or 16700 series, you can connect three cables to the Snark Barker MCA using standard HP 01650-63203 termination adapters. The pin assignments are as follows:

PinJ2J4J5
CLKCMDADLPREEMPT
D0BUSRESETA0DS16RTN
D1M_IOA1CHRDYRTN
D2S0_WRITEA2MADE24
D3S1_READA3CD_DS16
D4CD_SETUPA4TC
D5REFRESHA5ARB/GNT
D6CD_SFDBKA6CHCK
D7CD_CHRDYA7IRQ7
D8DB0A8IRQ5
D9DB1A9IRQ3
D10DB2A10IRQ2
D11DB3A11ARB3
D12DB4A12ARB2
D13DB5A13ARB1
D14DB6A14ARB0
D15DB7A15BURST

Or, you can load this configuration file onto your HP analyzer and save a bunch of manual data entry. J2 goes to pod 1, J4 goes to pod 2, and J5 goes to pod 3.

An additional debug header, J6, brings out a few additional signals:

PinJ6
1DBG1 (CPLD unassigned)
2CLK_14M318 (MCA bus clock)
3DBG3 (CPLD unassigned)
4DBG4 (CPLD unassigned)
5DBG5 (CPLD unassigned)
6DBG6 (CPLD unassigned)
7DBG7 (CPLD unassigned)
8SBHE (MCA bus signal)
9GND

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.

Parts

177
QtyValueFootprintReferences
240.1uSoundBlaster:SB_C_AXIAL_275C33, C34, C47, C48, C50, C53, C56, C69, C70, C71, C72, C73, C74, C75, C76, C77 +8
1110uF 16VSoundBlaster:SB_C_RADIAL_75_150C30, C38, C39, C42, C43, C44, C45, C46, C55, C87, C88
100.01uSoundBlaster:SB_C_DISC_200C20, C21, C22, C23, C24, C25, C26, C27, C28, C29
910KSoundBlaster:SB_R_AXIAL_400R3, R4, R8, R23, R24, R34, R36, R37, R40
91uPassive:CAPC2012X55C90, C91, C92, C93, C94, C95, C96, C97, C98
71000pSoundBlaster:SB_C_DISC_200C31, C36, C37, C49, C54, C63, C78
5330pSoundBlaster:SB_C_DISC_200C32, C35, C52, C64, C79
474HCT74SoundBlaster:SB_DIP14_300U20, U22, U23, U26
32200pSoundBlaster:SB_C_DISC_200C51, C58, C60
327KSoundBlaster:SB_R_AXIAL_400R22, R25, R27
3390SoundBlaster:SB_R_AXIAL_400R19, R20, R21
34.7KSoundBlaster:SB_R_AXIAL_400R26, R39, R41
3470KSoundBlaster:SB_R_AXIAL_400R5, R9, R12
35.1VSoundBlaster:SB_D_AXIAL_400_ALTZD1, ZD2, ZD3
368KSoundBlaster:SB_R_AXIAL_400R6, R7, R11
374HCT32SoundBlaster:SB_DIP14_300U24, U27, U30
3BEADSoundBlaster:SB_L_AXIAL_500L1, L2, L3
3HPLA_PORTPin_Headers:Pin_Header_Straight_2x10_Pitch2.54mmJ2, J4, J5
21.5KSoundBlaster:SB_R_AXIAL_400R32, R33
2100SoundBlaster:SB_R_AXIAL_400R1, R2
215KSoundBlaster:SB_R_AXIAL_400R28, R31
21KSoundBlaster:SB_RP_4CRP2, RP3
21N4148SoundBlaster:SB_D_AXIAL_400D1, D2
2270pSoundBlaster:SB_C_DISC_200C65, C68
22N3904SoundBlaster:SB_TO92T1, T2
230pSoundBlaster:SB_C_DISC_200C61, C62
2470SoundBlaster:SB_R_AXIAL_400R15, R16
247KSoundBlaster:SB_R_AXIAL_400R29, R30
247pSoundBlaster:SB_C_DISC_200C41, C59
274HCT374SoundBlaster:SB_DIP20_300U18, U19
2Bracket MountConn:MH_125_200TP1, TP2
2Rear bracket mountConn:MH_125TP3, TP4
2SAA1099SoundBlaster:SB_DIP18_300U14, U15
2SJ1-3553NGSoundBlaster:SB_SJ1-3553MIC1, S1
2logo1SoundBlasterMCA:Snark_BarkerMCAG1, G2
11.5K 1%SoundBlaster:SB_R_AXIAL_400R18
1100.0K 1%SoundBlaster:SB_R_AXIAL_400R14
1100uF 16VSoundBlaster:SB_C_RADIAL_100_320C40
112MHzSoundBlaster:SB_XTAL_HC49U_RAXTL1
11KSoundBlaster:SB_R_AXIAL_400R43
12.2KSoundBlaster:SB_RP_4BRP1
12.2KSoundBlaster:SB_R_AXIAL_400R35
12.70K 1%SoundBlaster:SB_R_AXIAL_400R38
133KSoundBlaster:SB_R_AXIAL_400R17
139.0K 1%SoundBlaster:SB_R_AXIAL_400R13
139KSoundBlaster:SB_R_AXIAL_400R10
14700pSoundBlaster:SB_C_DISC_200C57
1470pSoundBlaster:SB_C_DISC_200C67
1680pSoundBlaster:SB_C_DISC_200C66
174HCT08SoundBlaster:SB_DIP14_300U28
174HCT125SoundBlaster:SB_DIP14_300U21
174HCT14SoundBlaster:SB_DIP14_300U29
174HCT244SoundBlaster:SB_DIP20_300U3
174HCT245SoundBlaster:SB_DIP20_300U2
1805XSoundBlaster:SB_DIP40_600U13
1BUS_MCAConn:BUS_MCAJ1
1Conn_01x06Pin_Headers:Pin_Header_Straight_1x06_Pitch2.54mmJ3
1DEBUGPin_Headers:Pin_Header_Straight_1x09_Pitch2.54mmJ6
1Joystick/MIDISoundBlaster:SB_DB15_152-3415P1
1LM324SoundBlaster:SB_DIP14_300U5
1LM393SoundBlaster:SB_DIP8_300U6
1MC1408_DIPSoundBlaster:SB_DIP16_300U12
1NE558SoundBlaster:SB_DIP16_300U1
1NJM3403ASoundBlaster:SB_DIP14_300U11
1SPARESoundBlaster:SB_DIP14_300U25
1TC1262-3.3VActive:SOT230P700X170-3U32
1XC9572XL-TQ100Active:TQFP50P1600X1600X140-100U31
1YM3014BSoundBlaster:SB_DIP8_300U10
1YM3812SoundBlaster:SB_DIP24_600U9

Similar boards

  • 4 layers280 × 140 mmP8x control card, the printed circuit board in 3D

    P8x control card

    ksr/p8x

    Generated by generators/genkicad.py from the canonical geneagle netlist (CARDS["peripheral-card"]), same standard as the memory card: 4-layer (F/B signals, In1=GND, In2=VCC planes), a bypass cap above each IC, a…

    58 parts
  • 2 layers368.3 × 215.9 mmTTL 6510 Computer fab, the printed circuit board in 3D

    TTL 6510 Computer fab

    StefansAI/TTL-6510-Computer

    Yet another CPU made from TTL chips

    330 parts1
  • 4 layers218.4 × 114 mmVideo v2.0, the printed circuit board in 3D

    Video v2.0

    ksr/YACC1-D

    YACC1 (Yet Another Custom CPU) - definitive tree: hardware, firmware, software, tools and docs for the hand-built TTL computer. Supersedes ksr/YACC1-2020.

    121 parts
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers218 × 125 mmEVA1 v2, the printed circuit board in 3D

    EVA1 v2

    roberto314/EVA-1_Reproduction

    Recreation of the very rare K-K Systems EVA-1 Display Adapter for the Epson HX-20 Computer

    160 parts
  • 2 layers133.3 × 85.2 mmUart, the printed circuit board in 3D

    Uart

    nojan1/project-wrass

    The purpose of Project Wrass is to develop the Wrass 1.

    54 parts
  • 2 layers100 × 100 mmPi Board, the printed circuit board in 3D

    Pi Board

    ab0tj/MiniSys

    Homebrew computer with an ISA-like bus

    47 parts7

Questions

How big is the Snark barker mca PCB?

It measures 292.1 × 88.3 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Snark barker mca use?

177 parts, built around the 74HCT125PW, 74HCT244D, 74HCT245 and LM324. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Snark barker mca KiCad files?

From the schlae/snark-barker-mca repository on GitHub, at the commit this page was made from: the board is SnarkBarkerMCA.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Snark barker mca design in my own project?

Its repository states no licence, so its author keeps all rights: ask schlae before reusing the design.