Difference between revisions of "YM2612"

From Sega Retro

(wow there's a lot of bullshit here... OPN preceding OPL?! poor text... ugh the task of ... oh forget it)
Line 1: Line 1:
{{rewrite}}
+
[[Image:Ym2612.png|frame|right|Yamaha YM2612 chip]]The '''Yamaha YM2612''' (also incorrectly called YM-2612) is a sound synthesizer integrated circuit by [[Yamaha]] [http://www.vorc.org/text/column/hally/ymxxxx.html known to have first appeared in the late 1980s]. The chip implements Yamaha Operator Type-N (OPN) frequency modulation synthesis, and is given the designation '''OPN2''', however it is not the second OPN chip — the YM2203 (OPN) and YM2608 (OPNA) are known to precede it, with possible others as well. A CMOS version, the '''YM3438'''/'''OPN2C''', was also manufactured by Yamaha.
[[Image:Ym2612.png|frame|right|Yamaha YM-2612 chip]]'''YM2612''' is a 6 channel FM synthesis (Frequency Modulation) sound synthesizer integrated circuit produced by [[Yamaha]]. It belongs to a family of Yamaha FM synthesizer chips, and can be considered an ancestor to the OPL2 (YM3812) and OPL (YMF262) FM ICs that were used in the popular AdLib and Creative Labs SoundBlaster PC soundcards.
 
  
The Yamaha YM 2612 FM Synthesis Chip is based on the Yamaha 2151 (which was used in earlier Sega Arcade Games). Ironically, it's of a higher quality then the OPL2/3 FM Synthesis chips produced by Yamaha and used in Creative Labs PC sound cards such as the popular "Sound Blaster" line.
+
By default, the chip can generate six simultaneous tones, each with their own configuration of FM operators. As with all OPN chips, the third channel can be modified to have each operator run at a different frequency — this is often called "special" or "multifrequency" mode. The sixth channel can be swapped out for a software-controlled 8-bit PCM channel mixed directly into the output waveform. Finally, there is a single LFO which acts on all FM channels, but each channel can be set to be affected by it differently.
  
The YM2612 was notably used in the [[Sega Genesis]] game console and has the following features:
+
The YM2612 was only notably used on the [[Sega Mega Drive]] game console and the Fujitsu FM Towns computer. However, its use on the Mega Drive meant it was also used on hardware derived from it — including arcade boards, where the YM3438 was used. Several Mega Drive 2s also used the YM3438 core.
  
*Six concurrent FM channels (or voices)
+
==Details==
*The sixth channel can be used as an FM or DAC channel (but not both)
+
{{stub}}
*Four operators per channel
+
OPN FM synthesis is similar to other forms of Yamaha FM synthesis, in that it consists of a number of operators connected in a variety of ways, each operator consisting of a modified ADSR envelope, rate scaling, frequency multiplication, detuning, and a SSG envelope generator (the YM2612 does not include the YM2149 [AY-3-8910 clone] core found in other OPN chips, but the envelope generator remains).
*Two timers
 
*A low frequency oscillator
 
*Stereo output
 
  
Each channel may be assigned to either left, right or both (centre) of the stereo output.
+
Communication with the YM2612 is serial. Each parameter the chip provides is accessed by first sending a register number to the chip, then the register's value. Because Yamaha's register layout only allows four channels on a single register map, the YM2612 uses two ports to access each group of three channels.
  
The special sixth channel can act as a DAC (Digital to Analogue Converter) by means of the 'DAC Enable' register, this allows the chip to play 8-bit PCM sound samples. Enabling the DAC disables the FM for that channel.  Data is written to the DAC via an 8-bit register.  The YM2612 does not provide any timing or buffering of the PCM samples, so all frequency control and buffering must be done in software by the host processor.
+
The YM2612 also contains two timers — the high frequency Timer A and lower frequency Timer B. While the YM2612 can be set to interrupt a CPU when a timer reaches zero, sadly Sega did not make this connection on the Mega Drive, requiring timers to be set in software.
  
The synth patches used by the YM2612 in Mega Drive games are compatible with certain members of the Yamaha DX/TX synthesizers, such as the DX100.
 
 
==External Links==
 
==External Links==
*[http://www.smspower.org/maxim/docs/ym2612/ YM-2612 Documentation based on the sega2.doc file]
+
*[http://www7.plala.or.jp/kikekike/fm/ YM3438 information, including official manuals (Japanese)]
 +
*[http://www.smspower.org/maxim/docs/ym2612/ Sega's incomplete, sometimes incorrect YM2612 documentation based on the sega2.doc file]
 
[[Category:Mega Drive Hardware]]
 
[[Category:Mega Drive Hardware]]

Revision as of 07:11, 18 May 2011

File:Ym2612.png
Yamaha YM2612 chip

The Yamaha YM2612 (also incorrectly called YM-2612) is a sound synthesizer integrated circuit by Yamaha known to have first appeared in the late 1980s. The chip implements Yamaha Operator Type-N (OPN) frequency modulation synthesis, and is given the designation OPN2, however it is not the second OPN chip — the YM2203 (OPN) and YM2608 (OPNA) are known to precede it, with possible others as well. A CMOS version, the YM3438/OPN2C, was also manufactured by Yamaha.

By default, the chip can generate six simultaneous tones, each with their own configuration of FM operators. As with all OPN chips, the third channel can be modified to have each operator run at a different frequency — this is often called "special" or "multifrequency" mode. The sixth channel can be swapped out for a software-controlled 8-bit PCM channel mixed directly into the output waveform. Finally, there is a single LFO which acts on all FM channels, but each channel can be set to be affected by it differently.

The YM2612 was only notably used on the Sega Mega Drive game console and the Fujitsu FM Towns computer. However, its use on the Mega Drive meant it was also used on hardware derived from it — including arcade boards, where the YM3438 was used. Several Mega Drive 2s also used the YM3438 core.

Details


This short article is in need of work. You can help Sega Retro by adding to it.


OPN FM synthesis is similar to other forms of Yamaha FM synthesis, in that it consists of a number of operators connected in a variety of ways, each operator consisting of a modified ADSR envelope, rate scaling, frequency multiplication, detuning, and a SSG envelope generator (the YM2612 does not include the YM2149 [AY-3-8910 clone] core found in other OPN chips, but the envelope generator remains).

Communication with the YM2612 is serial. Each parameter the chip provides is accessed by first sending a register number to the chip, then the register's value. Because Yamaha's register layout only allows four channels on a single register map, the YM2612 uses two ports to access each group of three channels.

The YM2612 also contains two timers — the high frequency Timer A and lower frequency Timer B. While the YM2612 can be set to interrupt a CPU when a timer reaches zero, sadly Sega did not make this connection on the Mega Drive, requiring timers to be set in software.

External Links