HOME

TheInfoList



OR:

VDP TMS9918A VDP TMS9918A The TMS9918 is a
video display controller A video display controller (VDC), also called a display engine or display interface, is an integrated circuit which is the main component in a video-signal generator, a device responsible for the production of a TV video signal in a computing ...
(VDC) manufactured by
Texas Instruments Texas Instruments Incorporated (TI) is an American multinational semiconductor company headquartered in Dallas, Texas. It is one of the top 10 semiconductor companies worldwide based on sales volume. The company's focus is on developing analog ...
, in manuals referenced as "Video Display Processor" (VDP) and introduced in 1979. The TMS9918 and its variants were used in the Casio PV-2000,
Coleco Adam The Coleco Adam is a home computer and expansion device for the ColecoVision by American toy and video game manufacturer Coleco. The Adam was an attempt to follow on the success of the company's ColecoVision video game console. It was available as ...
,
ColecoVision ColecoVision is a second-generation home video-game console developed by Coleco and launched in North America in August 1982. It was released a year later in Europe by CBS Electronics as the CBS ColecoVision. The console offered a closer expe ...
, CreatiVision, Hanimex Pencil II,
MSX MSX is a standardized home computer architecture, announced by ASCII Corporation on June 16, 1983. It was initially conceived by Microsoft as a product for the Eastern sector, and jointly marketed by Kazuhiko Nishi, the director at ASCII Corpo ...
,
Memotech MTX The Memotech MTX500 and MTX512 are a range of 8-bit Zilog Z80A based home computers released by the British company Memotech in 1983 and sold mainly in the UK, France, Germany and Scandinavia. Originally a manufacturer of memory add-ons for Sin ...
, NABU Personal Computer, PECOS,
SG-1000 The is a home video game console manufactured by Sega. It was Sega's first entry into the home video game hardware business. Developed in response to a downturn in arcades starting in 1982, the SG-1000 was created on the advice of Hayao Nak ...
, SC-3000, SV-318,
SV-328 The SV-328 is an 8-bit home computer introduced by Spectravideo in June 1983. It was the business-targeted model of the Spectravideo range, sporting a compact full-travel keyboard with numeric keypad. It had 80 KB Random-access memory, RAM ( ...
, Sord M5, TI-99/4, Tatung Einstein, and Tomy Tutor. The TMS9918 generates both grid-based character graphics (used to display text or background images) and sprites used for moving foreground objects. The key features of this chip are, as highlighted in a 1980 presentation by Karl Guttag (one of the designers): *256 by 192 full color pixels per screen *15 different colors and/or shades * Non-interlaced color
composite video Composite video, also known as CVBS (composite video baseband signal or color, video, blanking and sync), is an analog video format that combines image information—such as brightness (luminance), color (chrominance), and synchronization, int ...
output *Direct wiring to RAS/CAS type dynamic RAMs *Automatic refresh of dynamic RAMs *General
8-bit In computer architecture, 8-bit integers or other data units are those that are 8 bits wide (1 octet). Also, 8-bit central processing unit (CPU) and arithmetic logic unit (ALU) architectures are those that are based on registers or data bu ...
memory mapped type CPU interface *CPU accesses RAM via VDP (no need for DMA) *32 dynamic characters per screen *Thirty-two 8×8 patterns per row, 24 rows per screen *Text mode with forty 6×8 patterns per row *Multicolor mode with 64 by 48 memory mappable color squares *External video input and control *Single supply +5 volt operation *Standard N-Channel
silicon gate In semiconductor electronics fabrication technology, a self-aligned gate is a transistor manufacturing approach whereby the gate electrode of a MOSFET (metal–oxide–semiconductor field-effect transistor) is used as a mask for the doping of the ...
technology


Product family

All of the ICs in this family are usually referred to by the TMS9918 name, sometimes with an "A" postfix. The "A" indicates a second version of the chip which added new features, most prominently the addition of a
bitmap In computing, a bitmap (also called raster) graphic is an image formed from rows of different colored pixels. A GIF is an example of a graphics image file that uses a bitmap. As a noun, the term "bitmap" is very often used to refer to a partic ...
mode (Graphic II).


TMS9918

The TMS9918 was only used in the TI-99/4; the
TI-99/4A The TI-99/4 and TI-99/4A are home computers released by Texas Instruments (TI) in 1979 and 1981, respectively. Based on TI's own TMS9900 microprocessor originally used in minicomputers, the TI-99/4 was the first 16-bit home computer. The assoc ...
and the other computers had the A version VDC.


TMS9918A, TMS9928A and TMS9929A

VDP TMS9928A The TMS9918A and TMS9928A output a 60 Hz video signal, while the TMS9929A outputs 50 Hz. The difference between "1" and the "2" in "TMS9918A" and "TMS9928A" is that the "1" version outputs composite
NTSC NTSC (from National Television System Committee) is the first American standard for analog television, published and adopted in 1941. In 1961, it was assigned the designation System M. It is also known as EIA standard 170. In 1953, a second ...
video, while the "2" versions (including the TMS9929A) outputs analog Y
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
and R-Y and B-Y colour difference signals. The need for the latter was predominant in the 50 Hz world, including Europe, due to the different video signal standards
PAL Phase Alternating Line (PAL) is a color encoding system for analog television. It was one of three major analogue colour television standards, the others being NTSC and SECAM. In most countries it was broadcast at 625 lines, 50 fields (25 ...
and
SECAM SECAM, also written SÉCAM (, ''Séquentiel de couleur à mémoire'', French for ''sequential colour memory''), is an analog color television system that was used in France, Russia and some other countries or territories of Europe and Africa. ...
. It was more cost-effective to output Y, R-Y and B-Y and encode them into PAL or SECAM in the
RF modulator An RF modulator (radio frequency modulator) is an electronic device used to convert signals from devices such as media players, VCRs and game consoles to a format that can be handled by a device designed to receive a modulated RF input, such ...
, than to try to have a different console for every different color standard. The "1" version also features an external composite video input which made it a handy chip to use in video "titlers" that could overlay text or graphics on video, while the "2" version does not. The original variants of the TMS9918 were depletion load NMOS and manufactured on a 4.5 μm process; it was one of the first depletion load NMOS chips Texas Instruments manufactured in contrast to the TMS9900 microprocessor which used the older enhancement load NMOS process that required three supply voltages. Due to the large die size and relatively high internal speed, the TMS9918 ran warm enough to necessitate a heat sink; some devices such as the Taiwanese DINA console (a hybrid Colecovision/SG-1000) neglected to install sinks and suffered from malfunctions of the chip. By 1983 Texas Instruments had shrunk the die size to 3 μm which ran cooler and no longer required a sink; MSX machines and the Sega SG-1000 used the newer 3 μm TMS9918 while most Colecovisions had the original 4.5 μm variant (the final run of the consoles produced in 1985 had the newer model TMS9918).


TMS9118, TMS9128 and TMS9129

A later variant of the TMS9918 series chips, the TMS9118, TMS9128, and TMS9129, were released in the mid-late 1980s, but were never very popular. The function of one pin is changed, and the mapping of the video memory allows two 16K×4-bit chips to be used instead of the eight 16K×1-bit chips the TMS99xx needs. Otherwise the chips are completely identical to the TMS9918A, TMS9928A and TMS9929A respectively.


External interfaces


Video RAM

The VDP has 16K × 8 bits of external video memory. This memory is outside the address space of the
CPU A central processing unit (CPU), also called a central processor, main processor, or just processor, is the primary processor in a given computer. Its electronic circuitry executes instructions of a computer program, such as arithmetic, log ...
. Having a separate address space means that the CPU has to do more work to write or read this memory, but it also means that the VDC doesn't slow the CPU down when it periodically reads this memory to generate the display. Additionally, it leaves more address space available to the CPU for other memory and memory-mapped hardware. Depending on the screen mode being used, not all of the video memory may be needed to generate the display. In these cases, the CPU may use the extra video memory for other purposes. For example, one use is as a scratch-pad for uncompressing graphics or sound data stored in cartridge ROM into. Another popular use is to create a second copy of some or all of the display data to eliminate flickering and tearing, a technique known as
double buffering In computer science, multiple buffering is the use of more than one buffer to hold a block of data, so that a " reader" will see a complete (though perhaps old) version of the data instead of a partially updated version of the data being created ...
.


CPU

The CPU communicates with the VDP through an 8-bit bus. A pin controlled by the CPU separates this bus into two "ports", a control port and a data port. To write or read a byte of video memory, the CPU first has to write two bytes on the VDP's control port to the VDC's internal address
register Register or registration may refer to: Arts, entertainment, and media Music * Register (music), the relative "height" or range of a note, melody, part, instrument, etc. * ''Register'', a 2017 album by Travis Miller * Registration (organ), ...
. Next, the CPU performs the actual write or read on the VDP's data port. As a data byte is written or read, the TMS9918 automatically increments the internal address register. This auto-increment feature accelerates writes and reads of blocks of data. The control port is also used to access various internal registers.


Graphics

The TMS9918 has two separate and distinct graphics types: characters and sprites.


Characters

Characters are typically used to create text or background images. They appear behind sprites.


Screen modes

The TMS9918 has a number of screen modes that control the characteristics of the characters.


=Documented

= There are four documented screen modes available in the TMS9918A (as mentioned before, the TMS9918 lacks mode Graphic 2): * Mode 0 (Text): 240×192 pixels total, as 40×24 characters, pulled from 1 character set of 256 6×8 pixel characters. The entire character set has a 2-color limitation. This mode doesn't support sprites. * Mode 1 (Graphic 1): 256×192 pixels total, as 32×24 characters, pulled from 1 character set of 256 8×8 pixel characters. Each group of 8 characters in the character set has a 2-color limitation. For example, the characters "0" through "7" will all have the same color attributes. * Mode 2 (Graphic 2): 256×192 pixels total, as 32×24 characters, pulled from 3 character sets of 256 8×8 pixel characters. Each 8-pixel-wide line of a character in the character sets has a 2-color limitation. This mode provides a unique character for every character location on screen, allowing for the display of bitmapped images. * Mode 3 (Multicolor): 256×192 pixels total, 64×48 changeable virtual pixels, as 32×24 " semi-graphics" characters. These semi-graphics are defined in a special character set of 256 characters defined by 2×2 "fat-pixels". There are 4×4 pixels in each fat-pixel, but the pixels within a fat-pixel cannot be individually defined, although each fat-pixel can have its own color, hence the name of this mode (Multicolor). This mode is very blocky, and rarely used.


Screen Mode 2 details

Technically, mode 2 is a character mode with a colorful character set. The screen is horizontally divided into three 256×64 pixel areas, each of which gets its own character set. By sequentially printing the characters 0 through 255 in all three areas, the program can simulate a graphics mode where each pixel can be set individually. However, the resulting
framebuffer A framebuffer (frame buffer, or sometimes framestore) is a portion of random-access memory (RAM) containing a bitmap that drives a video display. It is a memory buffer containing data representing all the pixels in a complete video frame. Mode ...
is non-linear. The program can also use three identical character sets, and then deal with the screen like a text mode with a colorful character set. Background patterns and sprites then consist of colorful characters. This was commonly used in games, because only 32×24 bytes would have to be moved to fill and scroll the entire screen. The challenge of using TMS9918 mode 2 was that every 8×1 pixel area could have only two colors, foreground and background. They could be freely picked out of the 16 color palette, but for each 8×1 area, only two colors could exist. When manipulating the screen in
BASIC Basic or BASIC may refer to: Science and technology * BASIC, a computer programming language * Basic (chemistry), having the properties of a base * Basic access authentication, in HTTP Entertainment * Basic (film), ''Basic'' (film), a 2003 film ...
with the LINE command, one easily could exceed the maximum 2 colors per 8×1 area and end up with " color spill".


=Undocumented

= Texas Instruments originally only documented the four modes listed above. However the bit that enables mode 2 is more interesting than initially let on. It is best described as a modifier bit for the other modes. Enabling it does three things: # Expands the color table size. # Divides the screen horizontally into thirds. # Changes two address bits of the pattern and color tables into mask bits, which controls whether each third of the screen has its own pattern and color table or not. With this in mind, three additional modes are possible. Note that although genuine TMS9918A chips support these modes, clones and emulators may not. * Mode 0 (Text) + Mode 2 (Graphic 2): Known as ''Bitmap Text Mode''. This mode allows for two-color bitmap images, with no color table. This saves memory, at the expense of a slightly reduced horizontal resolution (text mode has a horizontal resolution of 240 pixels instead of 256 pixels like the graphic modes do). * Mode 1 (Graphic 1) + Mode 2 (Graphic 2): Known as ''Half-Bitmap Mode''. Texas Instruments actually documented this "undocumented" screen mode in their manual titled ''"Video Display Processors Programmers Guide SPPU004"''. In section 8.4.2, "''Playing Games with VRAM Addressing"'', they discuss how this mode combines the memory savings of mode 1 with the color detail of mode 2. However, as they go on to say this mode limits the number of sprites that can be displayed to 8 instead of 32. Therefore, the term "undocumented" used to describe this mode is a misnomer. However, because this manual was not widely known, this mode is generally considered to be one of the undocumented modes. Generally, the only reason to use this mode over Mode 2 is to reduce memory consumption. * Mode 3 (Multicolor) + Mode 2 (Graphic 2): Known as Bitmap Multicolor Mode. This mode is more of a novelty, as it offers nothing beyond what the standard Multicolor mode can already do.


Scrolling

The TMS9918 does not have any
scroll A scroll (from the Old French ''escroe'' or ''escroue''), also known as a roll, is a roll of papyrus, parchment, or paper containing writing. Structure A scroll is usually partitioned into pages, which are sometimes separate sheets of papyru ...
registers, so scrolling must be done by software. Furthermore, scrolling can only be done on character boundaries, not pixel by pixel.


Sprites

Sprites are typically used to create moving foreground objects. They appear in front of characters (tiles). Modes 1, 2, and 3 can render sprites. There can be up to 32 monochrome sprites of either 8×8 or 16×16 pixels on screen, each sprite with its own, single color. The illusion of multicolor sprites can be created by stacking multiple sprites on top of each other. There can be no more than 4 sprites on a single scanline; any additional sprites' horizontal pixels are dropped. Sprites with a higher priority are drawn first. The VDP reports in a status register the number of the first dropped sprite. The CPU can get around this limitation by rotating sprite priorities so that a different set of sprites is drawn on every frame; instead of disappearing entirely, the sprites will flicker. This technique is known as sprite multiplexing. Automatic sprite movement is not handled by the VDP. Instead, in practice, the CPU will pick up on the VDP's vertical interrupt - a standard VDP output, which is triggered automatically once every 50th or 60th of a second (depending on chip variant), at the start of the VBI (
vertical blanking interval In a raster scan display, the vertical blanking interval (VBI), also known as the vertical interval or VBLANK, is the time between the end of the final visible line of a frame or field and the beginning of the first visible line of the next fra ...
). The CPU then jumps to a sprite-handling routine in the software, which in turn tells the VDP where to reposition the sprites. The sprite collision flag is set when non-zero pattern bits of two sprites coincide, even if either sprite has transparent colour. This is useful for triggering more advanced collision detection routines inside the software which can then determine the exact location of the collision and act upon it, as the VDP is itself incapable of reporting which two sprites have collided.


Colors

The TMS9918 family chips used a
composite video Composite video, also known as CVBS (composite video baseband signal or color, video, blanking and sync), is an analog video format that combines image information—such as brightness (luminance), color (chrominance), and synchronization, int ...
palette. Colors were generated based on a combination of
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
and
chrominance Chrominance (''chroma'' or ''C'' for short) is the signal used in video systems to convey the color information of the picture (see YUV color model), separately from the accompanying Luma (video), luma signal (or Y' for short). Chrominance is usu ...
values for the TMS9918A and Y, U (B-Y) and V (R-Y) values are for the TMS9928A/9929A.


Datasheet values

The TMS9918 has a fixed 16-color palette, composed of 15 displayed colors and a "transparent" color. * When "transparent" is used for sprites, it will show the graphics plane. * When "transparent" is used for the text/graphics plane, it will show the backdrop. * When "transparent" is used for the backdrop, it will show the external video signal (if enabled) otherwise black. According to "Table 2.3 - Color Assignments" on the datasheet outputs levels are the following: ''Notes: Colors are merely illustrative, and were converted from the YUV values (MS9928A/9929A) to
sRGB sRGB (standard RGB) is a colorspace, for use on monitors, printers, and the World Wide Web. It was initially proposed by HP and Microsoft in 1996 and became an official standard of the International Electrotechnical Commission (IEC) as IEC 6 ...
taking into account
Gamma correction Gamma correction or gamma is a Nonlinearity, nonlinear operation used to encode and decode Relative luminance, luminance or CIE 1931 color space#Tristimulus values, tristimulus values in video or still image systems. Gamma correction is, in the s ...
.
SMPTE C NTSC (from National Television System Committee) is the first American standard for analog television, published and adopted in 1941. In 1961, it was assigned the designation System M. It is also known as EIA standard 170. In 1953, a second ...
colorimetry was not taken into account - see the next section for alternate color conversions.''


CRT display

Converting Y, R-Y and B-Y to RGB requires considering how Y originated: Y = R * 0.30 + G * 0.59 + B * 0.11 This leads to the following formulas: R = R-Y + Y B = B-Y + Y G = (Y - 0.30 * R - 0.11 * B) / 0.59 But for all colors that have no chrominance - thus black, gray and white - R-Y and B-Y are not 0% but all have an offset of 47%. So this offset has to be subtracted from all R-Y and B-Y values at first. Due to the fact that in practice this one step will never be done alone, it's no problem that some results will be negative: Next comes the conversion to RGB. All results must be in the range from 0% to 100%: The erroneous value of 113% for R of color "light red" might seem to come from a typo within the datasheet and there R-Y must not be greater than 80%. But measuring the output signals of the chip with an
oscilloscope An oscilloscope (formerly known as an oscillograph, informally scope or O-scope) is a type of electronic test instrument that graphically displays varying voltages of one or more signals as a function of time. Their main purpose is capturing i ...
shows that all values in the table are correct. So the error is inside the chip and drives the red signal into saturation. For this reason this value is to be corrected to 100%. Up to that time only cathode ray tubes had been available for computer monitors as well as for televisions, and that these CRTs had a
gamma Gamma (; uppercase , lowercase ; ) is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter normally repr ...
. The TMS9918 series chips had been designed to work with televisions and their CRTs had a
gamma Gamma (; uppercase , lowercase ; ) is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter normally repr ...
of 1.6 (remark: CRTs of
Macintosh Mac is a brand of personal computers designed and marketed by Apple Inc., Apple since 1984. The name is short for Macintosh (its official name until 1999), a reference to the McIntosh (apple), McIntosh apple. The current product lineup inclu ...
monitors had 1.8 and the CRTs of PC monitors had 2.2). Digital flat panels do not have
gamma Gamma (; uppercase , lowercase ; ) is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter normally repr ...
. For this reason the colors of the TMS9918 look somewhat pale here as in the first table above. The below table uses the gamma-corrected values, which are (written in hexadecimal): The used steps are: Round all values to two decimal places, then raise to the power of 1.6 for
gamma correction Gamma correction or gamma is a Nonlinearity, nonlinear operation used to encode and decode Relative luminance, luminance or CIE 1931 color space#Tristimulus values, tristimulus values in video or still image systems. Gamma correction is, in the s ...
and finally transform the range of values from 0...100 to 0...255.


Specifications

* Video RAM: direct wiring to 4, 8, or 16 KB * Text modes: 40 × 24 and 32 × 24 * Resolution: 256 × 192 * Colours: 15 colours + transparent * Sprites: 32, 1 colour, max 4 per horizontal line


Legacy

Texas Instruments' TMS9918A was succeeded the
Yamaha V9938 The Yamaha V9938 is a video display processor (VDP) used on the MSX2 home computer, as well as on the Geneve 9640 enhanced TI-99/4A clone and the Tatung Einstein 256. It was also used in a few MSX1 computers, in a configuration with 16kB VRA ...
, which added additional bitmap modes, more colorful sprites, a vertical full-screen scroll register, vertical and horizontal offset registers, a hardware
blitter A blitter is a circuit, sometimes as a coprocessor or a logic block on a microprocessor, dedicated to the rapid movement and modification of data within a computer's memory. A blitter can copy large quantities of data from one memory area to a ...
and a customizable palette. The V9938 was designed for the
MSX2 MSX is a standardized home computer architecture, announced by ASCII Corporation on June 16, 1983. It was initially conceived by Microsoft as a product for the Eastern sector, and jointly marketed by Kazuhiko Nishi, the director at ASCII Cor ...
standard of computers, and later used in a third-party upgrade to the
TI-99/4A The TI-99/4 and TI-99/4A are home computers released by Texas Instruments (TI) in 1979 and 1981, respectively. Based on TI's own TMS9900 microprocessor originally used in minicomputers, the TI-99/4 was the first 16-bit home computer. The assoc ...
: the Geneve 9640 "computer-on-a-card". The V9938, in turn, was succeeded by the V9958, which added some additional high-colour modes and a horizontal two-page scroll register, these chips were used in the MSX2+/ turboR systems.
Toshiba is a Japanese multinational electronics company headquartered in Minato, Tokyo. Its diversified products and services include power, industrial and social infrastructure systems, elevators and escalators, electronic components, semiconductors ...
made a clone called the T6950 and does not support the undocumented pattern / color table masking feature in graphics 2 mode. Later, Toshiba released the T7937A MSX-Engine with a built-in VDP and fixed the masking features. Both VDPs by Toshiba feature a slightly different palette than the Texas VDPs, with more vivid colors. The VDP of the
Master System The is an 8-bit Third generation of video game consoles, third-generation home video game console manufactured and developed by Sega. It was originally a remodeled export version of the Sega Mark III, the third iteration of the SG-1000 series ...
game console is a development of the TMS9918. This was further evolved into the VDP of the Sega Genesis/Mega Drive game console, which added more capable graphics modes but eliminated all but the most capable graphics mode from the Master System VDP.


See also

*
TMS34010 The TMS34010, developed by Texas Instruments and released in 1986, was the first programmable graphics processor integrated circuit. While specialized graphics hardware existed earlier, such as blitters, the TMS34010 chip is a microprocessor ...
, a 1986 microprocessor with dedicated graphics instructions *
Atari 8-bit computers The Atari 8-bit computers, formally launched as the Atari Home Computer System, are a series of home computers introduced by Atari, Inc., in 1979 with the Atari 400 and Atari 800. The architecture is designed around the 8-bit MOS Technology 650 ...
have comparable graphics hardware introduced the same year * Motorola 6845, a display controller widely used in 8-bit computers *
Motorola 6847 The MC6847 is a Video Display Generator (VDG) first introduced by Motorola in 1978 and used in the TRS-80 Color Computer, Dragon 32/64, Laser 200, TRS-80 MC-10/ Matra Alice, NEC PC-6000 series, Acorn Atom, Gakken Compact Vision TV Boy an ...
*
Yamaha V9938 The Yamaha V9938 is a video display processor (VDP) used on the MSX2 home computer, as well as on the Geneve 9640 enhanced TI-99/4A clone and the Tatung Einstein 256. It was also used in a few MSX1 computers, in a configuration with 16kB VRA ...
*
Yamaha V9958 The Yamaha V9958 is a Video Display Processor used in the MSX2+ and MSX turbo R series of home computers, as the successor to the Yamaha V9938 used in the MSX2. The main new features are three graphical YJK modes with up to 19268 colors and hori ...
*
List of 8-bit computer hardware graphics This is a list of notable 8-bit computer palette (computing), color palettes, and graphics, which were primarily manufactured from 1975 to 1985. Although some of them use List of monochrome and RGB color formats#Regular RGB palettes, RGB palettes, ...


References

{{reflist


External links


Datasheet

Programmers Guide

F18A Modern Replacement

SRAM Replacement for TMS9x18 VRAM
Computer-related introductions in 1979 Graphics chips TI-99/4A Coleco consoles Texas Instruments hardware MSX hardware