MOS Technology SID

From Wikipedia, the free encyclopedia

MOS Technology SIDs: The right image shows a 6581 from MOS Technology, at the time they were known as the Commodore Semiconductor Group (CSG) and the left image shows an 8580 from MOS Technology. The numbers 0488 and 3290 are in WWYY form, i.e. the chips were produced week 4 1988 and week 32 1990. The last number is probably a batch number.
MOS Technology SIDs: The right image shows a 6581 from MOS Technology, at the time they were known as the Commodore Semiconductor Group (CSG) and the left image shows an 8580 from MOS Technology. The numbers 0488 and 3290 are in WWYY form, i.e. the chips were produced week 4 1988 and week 32 1990. The last number is probably a batch number.

The MOS Technology 6581/8580 SID (Sound Interface Device) was the built-in Programmable Sound Generator chip of Commodore's CBM-II, Commodore 64, Commodore 128 and Commodore MAX Machine home computers. It was one of the first sound chips of its kind to be included in a home computer prior to the digital sound revolution.

Together with the VIC-II graphics chip, the SID was instrumental in making the C64 the best-selling computer in history, and is partly credited for initiating the demoscene.

The SID has U.S. Patent 4,677,890 , which was filed on February 27, 1983 and issued on July 7, 1987. The patent expired on July 7, 2004.

Contents

[edit] Design process

The SID was devised by engineer Robert "Bob" Yannes, who later co-founded the Ensoniq digital synthesizer company. Yannes headed a team that included Yannes, two technicians and a CAD operator running Applicon (now a part of the UGS Corp.), who designed and completed the chip in five months' time in the latter half of 1981. Yannes was inspired by previous work in the synthesizer industry and was not impressed by the current state of computer sound chips. Instead, he wanted a high-quality instrument chip, which is the reason why the SID has features like the envelope generator, previously not found in home computer sound chips.

I thought the sound chips on the market, including those in the Atari computers, were primitive and obviously had been designed by people who knew nothing about music.

Robert Yannes, On the Edge: The Spectacular Rise and Fall of Commodore

Emphasis during chip design was on high-precision frequency control, and the SID was originally designed to have 32 independent voices, sharing a common oscillator. However these features could not be finished in time, so instead the mask work for a certain working oscillator was simply replicated three times across the chip surface, creating three voices with a unique oscillator for each voice. Another feature that was not incorporated in the final design was a frequency look-up table for the most common musical notes, a feature that was dropped because of space limitations. The support for an audio input pin was a feature Yannes added without asking, even though this had no practical use in a computer, although it enabled the chip to be used as a simple effect processor. The masks were produced in 7-micrometer technology in order to gain a high yield: the current state-of-the-art at the time was 6-micrometer technologies.

The chip, like the first product using it (the Commodore 64), was finished in time for the Consumer Electronics Show in the first weekend of January 1982. Even though Yannes was partly displeased with the result, his colleague Charles Winterble said: "This thing is already 10 times better than anything out there and 20 times better than it needs to be."

The specifications for the chip were not used as a blueprint. Rather, they were written as the development work progressed, and not all planned features made it into the final product. Yannes claims he had a feature-list of which three quarters made it into the final design. This is the reason why some of the specifications for the first version (6581) were accidentally incorrect. The later revision (8580) was revised to match the specification. For example, the 8580 expanded on the ability to perform a logical AND between two waveforms, something that the 6581 could only do in a somewhat limited and unintuitive manner. Another feature that differs between the two revisions is the filter: the 6581 version is far away from the specification.

[edit] Features

[edit] Technical details

6581 Pin configuration
6581 Pin configuration

The SID is a mixed-signal integrated circuit, featuring both digital and analog circuitry. All control ports are digital, while the output ports are analog. The SID features three-voice synthesis, where each voice may use one of at least five different waveforms: square wave (with variable duty cycle), triangle wave, sawtooth wave, pseudo-random (but not white) noise, and certain complex/combined waveforms. Each voice may be ring-modulated with one of the other voices, i.e. the frequency spectrum is convolved and output. The ring modulation, filter, and programming techniques for switching between different waveforms at high speed make up the characteristic sound of the SID.

Each voice may be passed through a common, digitally controlled analog filter with variable cut-off frequency and resonance, which is constructed with the aid of capacitors external to the circuit. An external audio in port enables external audio to be passed through the filter.

Upon setting the main output volume/gain on the 6581's 4 bit volume control, a click noise would be produced on the output. This was proportional to the volume difference, both positive and negative, and giving an opportunity to play 4-bit digitized sounds on the commodore 64 (The digitalization/sampling had to be done using external means, typically a simple 8 bit sampler circuit attached to the 8 bit parallel part of the parallel/serial communications port). This flaw was used in several games (probably first on Ghostbusters, whereby pressing the space key everything would stop, but the theme-word "Ghostbusters!" would be played) and in many demos. The sounds produced was typically some words, but most often percussion instruments like drums and the like - the amount of sound possible to store on a fraction of 64 kilobytes was very limited. Also, it was hugely CPU intensive - one had to output the samples very fast (in comparison to the extreme slowness of the 6510 CPU), and one could not do much other activity while a sample was playing. This "defect" was partially corrected in the 8580 used in the Commodore 64C and the Commodore 128DCR. This made digitized sound (samples) very quiet. Fortunately, the volume level could be mostly restored with either a hardware modification, or a software trick involving the Pulse waveform. The software trick generally renders one voice temporarily unusable, although clever musical compositions can make this problem less noticeable.

The 6581 and 8580 differ from each other in several ways. The original 6581 was manufactured using the older NMOS process, which used 12V DC to operate. The 8580 was made using the HMOS-II process, which required less power (9V DC), and therefore made the IC run cooler. The 8580 was thus far more durable than the 6581. Additionally, a better separation between the analog and the digital circuits made the 8580 chip's output less noisy and distorted. A simple hardware modification can be added to 6581-based computers to remove most of the noise, but this involves disabling the Audio-In function.

A HMOS-II version of the 6581 was produced, the 6582. Like the 8580, this chip used 5 volts and 9 volts for its power supplies. It was never shipped in new Commodore 64s, however due to its lower voltage requirement, Creative Micro Designs later used it in their SID Symphony expansion cartridge.

The original manual for the SID mentions that if several waveforms are enabled at the same time, the result will be a logical AND between them. In reality, the final output isn't exactly a logical AND of the selected waveforms. On the 6581, one notable exception is that all 6581 revisions appear to be capable of using the Sawtooth + Pulse waveform combination, the output from which is actually a logical AND of the Sawtooth and Triangle waveform oscillator values, resulting in a very complex final waveform, even though the Triangle waveform was not explicitly requested. The filter is also different between the two models, with the 8580 being closer to the designers' actual specification.

Despite its documented shortcomings, many SID musicians prefer the flawed 6581 chip over the corrected 8580 chip. The main reason for this is that the filter produces strong distortion that is sometimes used to produce simulation of instruments such as a distorted electric guitar. Also, the highpass component of the filter was mixed in 3 dB attenuated compared to the other outputs, making the sound more bassy. In addition to nonlinearities in filter, the D/A circuitry used in the waveform generators produced yet more additional distortion that made its sound softer and smoother.

[edit] Revisions

No instances reading "6581 R1" ever reached the market. In fact, Yannes has stated that "[the] SID chip came out pretty well the first time, it made sound. Everything we needed for the show was working after the second pass." High-resolution photos of Charles Winterble's prototype C64 show the markings "MOS 6581 2082", the last number being a date code indicating that his prototype SID chip was produced during the 20th week of 1982, which would be within 6 days of May 14, 1982.

These are the known revisions of the various SID chips:

  • 6581 R2 - Will say "6581" only on the package
  • 6581 R3 - Will say "6581 R3" or "6581 CBM" on the package. Produced until early 1986
  • 6581 R4 - Will say "6581 R4" on the package. Produced from early to mid 1986
  • 6581 R4 AR - Will say "6581 R4 AR" on the package. Produced from mid 1986 until at least 1990
  • 6582 A - Will say "6582 A" on the package. Typically produced around 1992
  • 8580 R5 - Will say "8580R5" on the package. Produced from 1987 to 1992

Some of these chips are marked "CSG" ("Commodore Semiconductor Group") and the Commodore Logo, while others are marked with "MOS". This includes chips produced during the same week (and thus, receiving the same date code), indicating that at least two different factory lines were in operation during that week. Generally, chips produced through the middle of 1989 were marked "MOS", while those produced after that point may show either marking.

[edit] Game audio

The majority of games produced for the Commodore 64 made use of the SID chip, with sounds ranging from simply clicks and beeps to complex musical extravaganzas or even entire digital audio tracks.

Well known composers of game music for this chip are Martin Galway, known for many titles, including Wizball, and Rob Hubbard, known for titles such as ACE 2, Delta, International Karate, IK+, and Monty on the Run. Other noteworthies include Jeroen Tel (Cybernoid and Myth) and Chris Hülsbeck, whose composition career started with the SID but has spanned nearly every kind of computer music and other synthesizers since.

[edit] Conventional music

SID sounds and snippets of SID music has been introduced into mainstream music at several occasions:

[edit] Modern developments

  • In 1989 on the Amiga computer, the demo "The 100 Most Remembered C64 Tunes" and later the PlaySID application was released, developed by Per Håkan Sundell and Ron Birk. This was one of the first attempts to emulate the SID in software only, and also introduced a fileformat for representing songs made on the C64 using the SID chip. This later spawned the creation of similar applications for other platforms as well as the creation of a community of people fascinated by SID music.
  • In 1997, an electronic musical instrument utilizing the SID chip as its synthesis engine was released. It is called the SidStation, and it's produced by Swedish company Elektron. As the SID chip had been discontinued for years, Elektron allegedly bought up almost all of the remaining stock. In 2004, Elektron released the Monomachine pattern-based sequencer with optional keyboard. The Monomachine contains several synthesis engines, including an emulated 6581 oscillator using a DSP.
  • In June 1998, a cycle-based SID emulator engine called reSID became available. The all-software emulator, available with C++ source code, is licensed under the GPL by the author, Dag Lem.
  • In 1999, a sound card for IBM PC compatibles called HardSID was released. The card uses from one to four SID chips and allows a PC to utilize the sound capabilities of the chip directly, instead of by emulation via generic sound cards (e.g. SoundBlaster).
  • The MIDIbox SID is a MIDI-controlled synthesizer which can contain up to eight SID chips. It is a free open source project using a PIC microcontroller. Control of the synthesizer is realized with software or via a control panel with knobs, LEDs, LCD, etc., which may optionally be mounted on a keyboardless Commodore 64 body.
  • The Prophet64 is a newly developed cartridge for the Commodore 64. It features four separate music applications, mimicking everything from modern sequencers to the Roland 303/909 series. With an optional User Port peripheral, the Prophet64 may synchronized to other equipment using DIN Sync standard (SYNC 24).
  • Artist/Hacker Paul Slocum developed the Cynthcart cartridge that enables you to turn your C64 into an analogue synthesizer. The Cynthcart is available through atariage.com.
  • The Parallel Port SID Interface allows those with very slim budgets to connect the SID chip to a PC.
  • The SwinSID emulation of SID on the Atmel AVR processor and real SID player using Atmel AVR processor.
  • The V-SID 1.0 project (code name SID 6581D, 'D' for digital) from David Amoros was born in 2005. This project is a hardware emulation of the SID chip from the Bob Yannes's interview, datasheets. The V-SID 1.0 engine had been implemented in a FPGA EP1C12 Cyclone from ALTERA, on an ALTIUM development board, and emulates all the characteristics of the original SID, except the filter which is a digital version (IIR filter controlled by a CPU).
  • The PhoenixSID 65X81 project (2006) aims to faithfully create the SID sound using modern hardware. The workings of a SID chip are recreated on an FPGA, based on interviews with the SID's creator, original datasheets, and comparisons with real SID chips. It is distinguished from similar attempts by its use of real analog circuitry instead of emulation for the legendary SID filter.
  • In 2007 the JSidplay2 project is released, a pure Java based SID player developed by Ken Händel.
  • In 2008 the HyperSID project is released. HyperSID is a VSTi which acts like a MIDI controller for HyperSID hardware unit(synthesizer based on SID chip) and it developed by HyperSynth company.

[edit] SID file format

A .SID file, colloquially known as "a SID" and also referred to as a PSID file, is a sound data file not only containing the note patterns, but also the 6502 program code - often called a "player" - needed to replay the music on the SID. All actual sound is produced by the SID chip, or a software emulator that emulates the SID chip. The High Voltage SID Collection contains over 30,000 SID tunes. The SID files have the MIME media type audio/prs.sid

The SID file format is not a native format used on the Commodore 64 or 128, but a format specifically created for emulator-assisted music players such as PlaySID , Sidplay and JSidplay2. However, there are loaders like RealSIDPlay and converters such as PSID64 that make it possible to play a substantial portion of SID files on original Commodore computers.

[edit] References

  • Appendix O, "6581 Sound Interface Device (SID) Chip Specifications", of the Commodore 64 Programmer's Reference Guide (see the C64 article).
  • Bagnall, Brian. On The Edge: The Spectacular Rise and Fall of Commodore, pp.231–238,370–371. ISBN 0-9738649-0-7.

[edit] See also

[edit] External links

SID information

Hardware


Software / emulators

Music


Video/sound chips from MOS Technology and second source/clone vendors

6545 CRTC6560 VIC6567 VIC-II6581 SID7360 TED8563 VDC8568 VDC