Difference between revisions of "MSX PSG"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox Hardware | {{Infobox Hardware | ||
− | | Title = MSX PSG | + | | Title = MSX PSG |
− | | Image = MSX PSG.png | + | | Image = MSX PSG.png |
− | | Developer = [[MSX Association]] | + | | Developer = [[MSX Association]] |
− | | Released = 1983-06-27 | + | | Released = 1983-06-27 |
− | | Type = Protocol | + | | Type = Protocol |
− | | Icon = MSX PSG | + | | Icon = MSX PSG |
+ | | Platforms = {{HardwarePlatform|MSX|MSX}} • {{HardwarePlatform|MSX2|MSX2}} | ||
}} | }} | ||
The '''''MSX PSG''''' (Programmable Sound Generator) is the built-in audio protocol for the various incarnations of the [[MSX]] computer. Using the MSX PSG protocol in the BIOS, programs running on the MSX can send data directly to the computer's audio chip, the joystick, and certain aspects of the keyboard. In the original MSX computer, the audio chip was an [[AY-3-8910]], but this was replaced with a [[YM2149]] for the [[MSX2]] and subsequent models. The YM2149 is backward compatible with the AY-3-8910, so all MSX music would sound identical when played on an MSX2. | The '''''MSX PSG''''' (Programmable Sound Generator) is the built-in audio protocol for the various incarnations of the [[MSX]] computer. Using the MSX PSG protocol in the BIOS, programs running on the MSX can send data directly to the computer's audio chip, the joystick, and certain aspects of the keyboard. In the original MSX computer, the audio chip was an [[AY-3-8910]], but this was replaced with a [[YM2149]] for the [[MSX2]] and subsequent models. The YM2149 is backward compatible with the AY-3-8910, so all MSX music would sound identical when played on an MSX2. | ||
+ | ==Games== | ||
+ | * [[:Category: Games That Use MSX PSG For Music|Games That Use MSX PSG For Music]]. | ||
+ | * [[:Category: Games That Use MSX PSG For Sound|Games That Use MSX PSG For Sound]]. | ||
+ | |||
+ | ==Technical== | ||
To utilize the MSX PSG, data must be read and written to ports 0xA0-0xA2 on the MSX BIOS. The necessary ports are described below. | To utilize the MSX PSG, data must be read and written to ports 0xA0-0xA2 on the MSX BIOS. The necessary ports are described below. | ||
Line 50: | Line 56: | ||
| I/O ports A & B | | I/O ports A & B | ||
|} | |} | ||
− | + | Note: Setting different values in registers 6 or 7 may cause damage on some systems. Safest approach is to just not touch them and read them first before writing a new value. | |
− | |||
− | |||
− | |||
− | |||
==See Also== | ==See Also== |
Revision as of 11:11, 23 September 2016
MSX PSG | |
Developer: | MSX Association |
Released: | 1983-06-27 |
Type: | Protocol |
Icon: | |
Platforms: | • |
The MSX PSG (Programmable Sound Generator) is the built-in audio protocol for the various incarnations of the MSX computer. Using the MSX PSG protocol in the BIOS, programs running on the MSX can send data directly to the computer's audio chip, the joystick, and certain aspects of the keyboard. In the original MSX computer, the audio chip was an AY-3-8910, but this was replaced with a YM2149 for the MSX2 and subsequent models. The YM2149 is backward compatible with the AY-3-8910, so all MSX music would sound identical when played on an MSX2.
Games
Technical
To utilize the MSX PSG, data must be read and written to ports 0xA0-0xA2 on the MSX BIOS. The necessary ports are described below.
Port | Description |
---|---|
0xA0 (write) | Register write port |
0xA1 (write) | Value write port |
0xA2 (read) | Value read port |
Each port represents 16 bits, or registers, of data to expose the underlying audio chip. The registers are explained below.
Register(s) | Description |
---|---|
0-5 | Tone generator control |
6 | Noise generator control (must be 0) |
7 | Mixer control-I/O enable (must be 1) |
8-10 | Amplitude control |
11-13 | Envelope generator control |
14-15 | I/O ports A & B |
Note: Setting different values in registers 6 or 7 may cause damage on some systems. Safest approach is to just not touch them and read them first before writing a new value.
See Also
Emulation Status
Most MSX emulators have accurate MSX PSG emulation.
Links
- map.grauw.nl/resources/msx_io_ports.php#psg - Information on the PSG.