MOS Technology VIC

Pinout diagram of the 6560 version of the MOS VIC chip. This circuit was packaged in a standard 40-pin DIP casing.

The VIC (Video Interface Chip), specifically known as the MOS Technology 6560 (NTSC version) / 6561 (PAL version), is the integrated circuit chip responsible for generating video graphics and sound in the Commodore VIC-20 home computer. It was originally designed for applications such as low cost CRT terminals, biomedical monitors, control system displays and arcade or home video game consoles.

The chip was designed by Al Charpentier in 1977 but Commodore could not find a market for the chip. In 1979 MOS Technology began work on a video chip named MOS Technology 6564 intended for the TOI computer and had also made some work on another chip, MOS 6562 intended for a color version of the Commodore PET. Both of these chips failed due to memory timing constraints (both required very fast and thus expensive SRAM, making them unsuitable for mass production). Before finally starting to use the VIC in the VIC-20, chip designer Robert Yannes fed features from the 6562 (a better sound generator) and 6564 (more colors) back to the 6560, so before beginning mass production for the VIC-20 it had been thoroughly revised.

Its features include:

Unlike many other video circuits of the era, it does not offer dynamic RAM refresh capabilities. Thus the VIC-20 employed the more expensive static RAM chips; but with the low RAM capacity of that machine, just 5 KB in the main box, that didn't matter too much. Memory expansions for the VIC-20 either used SRAM as well or implemented their own refresh circuit.

The VIC was programmed by manipulating its 16 control registers, memory mapped to the range $9000$900F in the VIC-20 address space. The on-chip A/D converters were used for dual paddle position readings by the VIC-20, which also used the VIC's light pen facility. The VIC preceded the much more advanced VIC-II, used by the VIC-20's successors, the C64 and C128.

VIC-20s with expansion RAM have their video memory (550 bytes) at $1000 and when it is not present, $1E00. User-defined character sets must be placed within the first 5k of system RAM. The default PETSCII character ROM is at $8000 and each character takes 8 bytes to store. Up to 128 characters may be used at any one time. While the PET had a backslash (\) in its character set, this was replaced on the VIC-20 (and all subsequent Commodore machines) with a British pound sign (£).

Programmable characters are the only way of creating graphics and animation on the VIC as the chip does not have sprites or an all-points-addressable bitmap mode. Of the 16 colors in the palette, eight may be used for the foreground (per the color RAM at $9400) and border while the others are limited to the background and auxiliary multicolors. The MSB of the color RAM is a flag used to indicate if that character is multicolor or high resolution. Due to the extreme blockiness of the former, most VIC-20 games use hires characters.

The VIC does not support scrolling or raster interrupts like on the VIC-II, but the scanline counters could be polled for a specific point on the screen to produce raster effects. This feature was rarely used in games except for a few titles like iMagic's Demon Attack.

Sound programming on the VIC is done by placing a frequency value in one of the four registers at $900A-$900D (they are turned off by writing a zero to them). The first three are square wave generators pitched half an octave from each other and the fourth is for white noise.

Registers

The VIC has 16 read/write registers listed below:

Register Hexadecimal Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
9000
Interlace
Horizontal origin
1
9001
Vertical origin
2
9002
VA9
Number of columns
3
9003
R0
Number of rows
8/16
4
9004
Raster line (bits 8-1)
5
9005
Video addr (bits 13-10)
Char addr (bits 13-10)
6
9006
Light pen horizontal
7
9007
Light pen vertical
8
9008
Paddle X
9
9009
Paddle Y
10
900A
enable
Oscillator 1 frequency
11
900B
enable
Oscillator 2 frequency
12
900C
enable
Oscillator 3 frequency
13
900D
enable
White noise frequency
14
900E
Aux color
Volume
15
900F
Background
RV
Border

VIC IC list

References

See also

External links

This article is issued from Wikipedia - version of the Sunday, September 06, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.