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.



![TMS9918: TMS9918A pinout diagram[2]](https://thumb.wikimedia.org/wikipedia/commons/thumb/8/8a/TMS9918A.svg/500px-TMS9918A.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)

