Skip to the content
2 layers99.1 × 49.9 mmTMS9918, the printed circuit board in 3D

TMS9918A video card for RC2014

Size
99.1 × 49.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
91
Pads
310
Tracks, vias
923, 7
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
6 Feb 2018
Updated
22 Oct 2022

Overview

TMS9918 is an open-source printed circuit board by jblang, from the jblang/TMS9918A repository on GitHub. It is a 2-layer board of 99.1 × 49.9 mm with 36 parts on 91 nets, routed with 923 tracks and 7 vias.

It is built around the 74HCT574D, 74HCT04D and 74HCT32D, with the HM62256BLP-7 among its other parts. Its parts include 11 capacitors, 8 ICs, 7 connectors, 3 resistors and 1 diode. It belongs with the retro computing and games boards of this library.

Main components

4

README

README.md

TMS9918A Video Card for RC2014

This is a TMS9918A-based video card for RC2014 and SC1xx computers based on the Z80 and Z180 processors. The TMS9918A produces NTSC composite graphics and was used in the TI-99/4A, MSX, ColecoVision, and Sega SG-1000. Enhanced derivatives were used in later MSX2 computers, the Sega Master System, and the Sega Genesis.

This board is based on a circuit described by Tom LeMense for interfacing the TMS9918A with SRAM. I started with his schematics, added port address decoding and laid out the circuit on an RC2014 module.

This board can be configured to use the same ports as the MSX or ColecoVision, so it's possible to run some software from these systems, such as ColecoVision games and MSX-BASIC.

Assembly Instructions

Ready-to-Assemble Kits are available on Tindie. These are sold by Michael Kamprath with my permission. However, I offer no warranty or guarantee of support.

Gerbers for the PCB are available. I highly recommend JLCPCB for PCB fabrication. Alternatively, boards can be ordered from the shared project on OSH Park.

Refer to the schematic, the picture below, and the bill of materials below for assembly guidance.

TMS9918A PCB

Bill of Materials

ComponentDescription
PCBrc9918 PCB
U174HCT32 quad OR gate
U274HCT138 3-8 line decoder
U3TMS9918A video chip
U474HCT04 hex inverter
U5, U6, U774HCT574 octal flip-flops
U8AS6C62256-55PCN, HM62256BLP-7, UM61M256K-15, or other compatible 32KB SRAM. I have put two footprints so either a wide or narrow DIP-28 will work as long as the pin-out is the same.
R175 ohm resistor
R2130 ohm resistor*
R3470 ohm resistor
L1Ferrite bead (FBA04HA600VB-00 or similar)
Y110.73866MHz crystal (LFXTAL029962REEL or similar)
C1, C216pf ceramic or MLCC capacitor
C3-C110.1uf ceramic or MLCC capacitor
Q1NPN transistor (2N4401 or similar)
J1 & J52x40 pin right angle header, with pins from upper row removed to fit J5
J2KLPX-0848A-2-Y RCA connector
J42x8 pin straight header and 1 jumper block
J62x3 pin straight header and 1 jumper block
J71x4 pin straight header and 1 jumper block
JP11x3 pin straight header and 1 jumper block
JP21x3 pin straight header and 1 jumper block
JP41x3 pin straight header and 1 jumper block
D1REV4 only: Schottky diode (BAT81 or similar)

* R2 controls the voltage of the NTSC signal, and therefore the brightness of the picture. Tom Lemense's original circuit specified a 0 ohm resistor (i.e., wire link), but based on my measurements this will result in a voltage higher than NTSC spec. 130 ohm yields a voltage close to NTSC spec. Higher values will be dimmer and lower values will be brighter.

Aside from the board and the TMS9918A itself, all parts are available from Mouser and probably other suppliers as well.

Recommended Jumper Configurations

The following jumper configurations are recommended for compatibility with unmodified software for classic machines using the TMS9918A. The function of each jumper is described in more detail in the section following the table.

The provided example programs automatically detect the TMS9918A on any of the following ports, so no change to the example code is necessary.

ColecoVision / SG-1000MSXSord M5Tatung Einstein
PortsB0-BF*98/9910/11**08/09
J4 (A7-A5)2nd from right (101)3rd from right (100)Far left (000)Far left (000)
J6 (A4)Right (1)Right (1)Right (1)Middle (0)
JP2 (A3)Lower (X)Upper (1)Lower (X)Upper (1)
JP1 (A2-A1)Lower (XX)Upper (00)Upper (00)Upper (00)
JP4 (Interrupt)Lower (NMI)Upper (INT)Lower (NMI)Upper (INT)

* On a real ColecoVision, the entire A0-BF range is assigned to the TMS9918A, but since all known games only use ports BE and BF, address decoding can be limited to B0-BF. If you want to decode the full range A0-BF, place J6 in the left position instead.

** On a real Sord M5, only ports 10 and 11 are assigned to the TMS9918A, but since the address decoding for bit 3 can only be set to 1 or don't care, this configuration assigns both 10/11 and 18/19 to the TMS9918A.

Note: This board cannot decode the port addresses used by the MTX (not to be confused with MSX) and Spectravideo SV-3xx machines, so it not compatible with unmodified software for these machines.

Jumper Descriptions

Port Address Jumpers

The Z80 uses 8 bit I/O addresses. Four jumpers on this board control which I/O addresses the TMS9918A is assigned to. Each jumper controls one or more bits within the address:

  • J4 configures A7-A5 which lets you select a block of 32 addresses from 00-1F (left) to E0-FF (right).
  • J6 configures A4. There are 3 options: don't care (left), 0 (middle), or 1 (right). This lets you choose the entire 32 address range selected by J4, the lower half, or the upper half, respectively.
  • JP2 configures A3. In the upper position, it must be 1. In the lower position, it is don't care.
  • JP1 configures A2 and A1. In the upper position, they must both be 0. In the lower position, they are don't care.
  • There is no jumper for A0. When A0 is low (0) the VRAM is addressed, when it is high (1), the VDP control register is addressed.

Interrupt Configuration Jumper

The jumper JP4 is used to determine whether to send the TMS9918A interrupt signal to either INT (upper position) or NMI (lower position) on the RC2014 bus.

Warning: The TMS9918A does not have an open collector interrupt output. If you have other cards that make use of the /INT line, such as the SIO card that comes with the RC2014, it's possible the TMS9918A will fight with other chips for control of the interrupt line, which will prevent proper operation and could potentially damage both chips. For safety, it is recommended to use NMI instead of INT in this case. REV4 of the board adds a diode to prevent hardware damage; however, if multiple peripherals are generating interrupts, it could still lead to unpredictable software behavior.

Clock Header

The optional J7 header has pins (from left to right) for RC2014 CLK1 (REV4 only), CPUCLK, GROMCLK, EXTVDP, and GND. No jumper block should normally be placed on this header.

These pins can be used as follows:

  • CPUCLK and GROMCLK provide 3.58MHz and 447 kHz clock signals, respectively. A jumper block can be placed on the RC2014 CLK1 and CPUCLK pins to use the TMS9918A's clock output as the RC2014's system clock (be sure to remove other clock sources if you do this). The clock signals could also be used by other boards via jumper cables.

  • It should also be possible to daisy-chain multiple TMS9918A chips using the EXTVDP signal, or to genlock an external video source. The extra GND pin can be used with an external video source if needed.

Resources

Other Boards

License

Copyright 2018-2020 J.B. Langston

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Parts

36
QtyValueFootprintReferences
90.1ufCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC3, C4, C5, C6, C7, C8, C9, C10, C11
374HCT574Package_DIP:DIP-20_W7.62mm_SocketU5, U6, U7
216pfCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1, C2
10Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
110.738635MHzCrystal:Crystal_HC49-4H_VerticalY1
11N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1
12N4401Package_TO_SOT_THT:TO-92Q1
1470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3
174HCT04Package_DIP:DIP-14_W7.62mm_SocketU4
174HCT32Package_DIP:DIP-14_W7.62mm_SocketU1
174LS138Package_DIP:DIP-16_W7.62mm_SocketU2
175Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1A1/A2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP1
1A3Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP2
1A4Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ6
1Conn_01x10Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ5
1Conn_01x14Connector_PinHeader_2.54mm:PinHeader_1x14_P2.54mm_VerticalJ3
1Conn_01x39Connector_PinHeader_2.54mm:PinHeader_1x39_P2.54mm_VerticalJ1
1Conn_02x08_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x08_P2.54mm_VerticalJ4
1Conn_Coaxialw_conn_av:KLPX-0848AJ2
1ExtConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1Ferrite_BeadResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalL1
1HM62256BLP-7Package_DIP:DIP-28_W15.24mm_SocketU8
1Jumper_NC_DualConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP4
1TMS9918APackage_DIP:DIP-40_W15.24mm_SocketU3

Similar boards

  • 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 layers63.6 × 85.7 mmTMS9918, the printed circuit board in 3D

    TMS9918

    MarkJelic/TEC-1G

    The new incarnation of the 40 year old Z80 trainer computer - Now with Fulisik LEDs!

    31 parts45GPL-3.0
  • 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
  • 2 layers150 × 90 mmTMS9918A YM2149, the printed circuit board in 3D

    TMS9918A YM2149

    daveho/DIY8bit

    Files and resources for DIY 8 bit computer video series

    46 parts19
  • 4 layers209.5 × 108 mmALU, the printed circuit board in 3D

    ALU

    89Mods/LVDC

    Replica of the Launch Vehicle Digital Computer using 74-series logic

    83 parts2MIT
  • 2 layers72.8 × 75.6 mmTMS9918, the printed circuit board in 3D

    TMS9918

    michalin/TMS9918_Arduino

    8-bit retro graphic card with TMS9918 and Arduino library

    22 parts53GPL-3.0
  • 2 layers100 × 100 mmTMS9918, the printed circuit board in 3D

    TMS9918

    michalin/ZX2022

    Another DIY Z80 Computer With CP/M

    20 parts41GPL-3.0
  • 2 layers235 × 158.8 mmGigatron, the printed circuit board in 3D

    Gigatron

    flypie/Gigatron

    This is a version of the files from https://gigatron.io/ altered to work on a vanilla KiCAD 5.1.6. Changes are minimal in the schematic and PCB, layout has only been changed where dimensions or orientations changed as a…

    151 parts2

Questions

How big is the TMS9918 PCB?

It measures 99.1 × 49.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the TMS9918 use?

36 parts, built around the 74HCT574D, 74HCT04D, 74HCT32D and HM62256BLP-7. 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 TMS9918 KiCad files?

From the jblang/TMS9918A repository on GitHub, at the commit this page was made from: the board is TMS9918.kicad_pcb and its schematic TMS9918.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the TMS9918 design in my own project?

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