ArticleslgStudy

computer science

TMS9918

TMS9918 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TMS9918 rather than just read about it. In short: The TMS9918 is a video display controller (VDC) manufactured by Texas Instruments and introduced in 1979. In TI's manuals it's called a "Video Display Processor", or VDP.

TMS9918 — main illustration
TMS9918 — illustration

Key takeaways

  • TMS9918 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TMS9918 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TMS9918 from memory before moving on to harder problems.

Reference excerpt

The TMS9918 is a video display controller (VDC) manufactured by Texas Instruments and introduced in 1979. In TI's manuals it's called a "Video Display Processor", or VDP. The Yamaha V9938 is an enhanced version of the TMS9918. The TMS9918 is an advanced design for the era. It has four graphics modes based on an underlying 256 wide by 192 high pixel layout, which can be used as a 40 ×  24 character display, a 256 × 192 pixel display, or a 64 × 48 pixel display which uses less memory. It has a fixed color palette: 15 colors plus transparent. It also supports 32 single-color 8 × 8 or 16 × 16 pixel sprites, numbered 0 to 31, with lower-numbered sprites appearing on top of higher-numbered ones. This allows for layering and perspective effects. It also has a video input and sync pin, so video from another source can appear under the graphics created by the chip. This can be used to layer the output from multiple 9918's, or to use the 9918 as a system for titling and overlays on other video sources. To support this advanced feature set, the 9918 requires fast access to memory. It requires a dedicated pool of RAM separate from the main memory of the computer, up to 16 KB depending on what modes are being used. TI referred to this as VRAM. This means that the CPU can only update the video display over a separate 8-bit data bus with the VDP moving data on the bus to and from its dedicated RAM. This limited the speed at which the CPU and 9918 can communicate. It also means that the common solution of using the video chip to refresh memory cannot be used and has to be implemented in separate hardware. While these represent minor complications compared to systems that shared memory in a single pool, the result was a display that was more colorful and closer to arcade video game displays, albeit at the cost of having to include more RAM. The TMS9918 and its variants are used in the Casio PV-2000, Coleco Adam, ColecoVision, CreatiVision, Hanimex Pencil II, MSX, Memotech MTX, NABU Personal Computer, PECOS, SG-1000, SC-3000, SV-318, SV-328, Sord M5, TI-99/4, Tatung Einstein, Tomy Tutor, Nichibutsu My Vision, Bit Corp. Bit 90, Frael Bruc 100, Dina 2 in 1, Asiel Sistemas PECOS, Zemmix CPC/CPG series, and MFJ-1480B. It was also used in add-ons for the Samsung SPC-1000, BBC Micro, COSMAC Elf, and Apple II.

Description

Physical and bus details

The TMS9918 was packaged in a 40-pin dual in-line package (DIP). Power was provided as +5V on pin 33, VCC, and ground on pin 12, VSS. A quartz crystal running at 10.7386 MHz, three times the NTSC color burst frequency, was connected across pins 40, XT1, and 39, XT2. Video output was on pin 36, COMVID, and input, if used, on pin 35, EXTV, with their connector's shield connection connected to ground. In order to achieve the memory performance needed to support full-color operation, the system used a dedicated area of DRAM they referred to as VRAM. To operate this memory, the system included a separate set of pins forming an 8-bit address bus on pins 3 (AD7) through 10 (AD0) and an 8-bit data bus on pins 25 (RD7) through 32 (RD0), supported by a read/write control on pin 11, and RAS and CAS on pins 1 and 2. Communications with the host computer were through a separate 8-bit data bus on pins 17 through 24, D7 to D0. Pin 13, MODE, controls whether the data on that bus is an address or data. To write data to the TMS9918, the CPU first sets the bus mode to address and puts the address on the bus, which the TMS9918 stores in an internal address register. The CPU then changes the bus mode to data and puts the data on the bus, which the TMS9918 then reads or writes to the register's address. In order to improve performance, and due to the fact that graphics often write to many consecutive addresses, after every data transfer the TMS9918 internally increments the address, and the CPU can then be read or write the next value without having to send in the address again.

Graphics The TMS9918 logically arranges graphics in a number of layers, 32 sprite layers on top, a graphics or text layer, a "backdrop" with a single solid color filling the screen, and finally an external video layer. The backdrop plane is slightly larger than the others, so it completely fills the screen. The other layers are smaller so they remain entirely within the visible area on most screens. The system uses a 15-color palette, along with color 0 which is transparent. When drawing a particular pixel, the system examines each layer from top to bottom looking for non-0 colors. If one is found, it draws that color and then moves on to the next pixel. If a particular layer is set to transparent, the default value, it checks the next layer and so on until it reaches the external video layer (which is often not used). The following descriptions are ordered in this same fashion.

… excerpt ends here. Continue reading the full article.

Illustrations

TMS9918 illustration
TMS9918: VDP TMS9918A
VDP TMS9918A
TMS9918: TMS9918A pinout diagram[2]
TMS9918A pinout diagram[2]
TMS9918: VDP TMS9928A
VDP TMS9928A
TMS9918: VDP TMP9118NL prototype
VDP TMP9118NL prototype

Worked examples

Example 1 — a first encounter with TMS9918

Start with the simplest possible case. Write down what TMS9918 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TMS9918 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TMS9918 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TMS9918

In research
TMS9918 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TMS9918 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TMS9918 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Coleco consoles, Computer-related introductions in 1979, Graphics chips, so understanding it makes those chapters shorter.
In everyday life
Look for TMS9918 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TMS9918” →

How to study TMS9918 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TMS9918 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TMS9918 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TMS9918 in simple terms?

The TMS9918 is a video display controller (VDC) manufactured by Texas Instruments and introduced in 1979. In TI's manuals it's called a "Video Display Processor", or VDP.

Why does TMS9918 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TMS9918?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TMS9918.

Tags

  • Coleco consoles
  • Computer-related introductions in 1979
  • Graphics chips
  • MSX hardware
  • TI-99/4A
  • Texas Instruments hardware

Keep exploring