Scratchpad

If you are new to Scratchpad, and want full access as a Scratchpad editor, create an account!
If you already have an account, log in and have fun!!

READ MORE

Scratchpad
(cleanup, remove copyright violation)
(Remove SinclairFAQ template argument)
Tags: Possible HTML sourceedit
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
{{SinclairFAQ|AY-3-8912}}
The '''AY-3-8912''' is a sound generator that is built-in on several 128 KB models of the [[ZX Spectrum technical information|ZX Spectrum]] and in the [[Timex Sinclair 2068]], but can also be found in several peripherals, such as the Fuller Box an the Melodik interface.
 
   
 
The '''AY-3-8912''' is a sound generator that is built-in on several 128 KB models of the [[ZX Spectrum technical information|ZX Spectrum]] and in the [[wikipedia:Timex Sinclair 2068|Timex Sinclair 2068]], but can also be found in several peripherals, such as the Fuller Box an the Melodik interface. ( is there a list anywhere of all the devices that had ay8912 in them - fuller, cheetah, dktronics, ram, agf & MB-02+?)
The 128K's AY chip is clocked at 1.7734&nbps;MHz (to within 0.01%). Writing to port FFFDh (65533) selects a register, and reading from port FFFDh reads that register's contents. Writing to port BFFDh (49149) writes new data to the currently selected register. The Melodik interface uses the same ports as the 128K.
 
   
 
The 128K's AY chip is clocked at 1.7734 MHz (to within 0.01%). Writing to port FFFDh (65533) selects a register, and reading from port FFFDh reads that register's contents. Writing to port BFFDh (49149) writes new data to the currently selected register. On the 128K/+2, reading from BFFDh will return the [[floating bus]] value as normal for unattached ports, but on the +2A/+3, it will return the same as reading from FFFDh. The Melodik interface uses the same ports as the 128K.
The TS2068's AY chip is clocked at 1.76475 MHz use different ports to the 128K.
 
   
  +
On Spectrum-based machines, the AY chip is normally clocked at half the CPU clock. Melodik, the TC2068 and the Pentagon have an AY clocked at 1.75 Mhz. The TS2068's AY chip is clocked at 1.764 MHz. The Timex machines use different ports to the 128K.
Various peripherals, such as the Fuller Box, use differerent ports to any other interface.
 
  +
 
Various peripherals, such as the Fuller Box, use differerent ports to any other interface. The Fuller Box is nominally clocked at 1.75 Mhz but suffers from contention problems.
   
 
The AY-3-8910 has 16 registers:
 
The AY-3-8910 has 16 registers:
   
 
0 Channel A fine pitch 8 bits
 
0 Channel A fine pitch 8 bits
1 Channel A course pitch 4 bits
+
1 Channel A coarse pitch 4 bits
 
2 Channel B fine pitch 8 bits
 
2 Channel B fine pitch 8 bits
3 Channel B course pitch 4 bits
+
3 Channel B coarse pitch 4 bits
 
4 Channel C fine pitch 8 bits
 
4 Channel C fine pitch 8 bits
5 Channel C course pitch 4 bits
+
5 Channel C coarse pitch 4 bits
 
6 Noise pitch 5 bits
 
6 Noise pitch 5 bits
 
7 Mixer 8 bits
 
7 Mixer 8 bits
Line 21: Line 23:
 
10 Channel C volume 4 bits
 
10 Channel C volume 4 bits
 
11 Envelope fine duration 8 bits
 
11 Envelope fine duration 8 bits
12 Envelope course duration 8 bits
+
12 Envelope coarse duration 8 bits
 
13 Envelope shape 4 bits
 
13 Envelope shape 4 bits
 
14 I/O port A 8 bits
 
14 I/O port A 8 bits
Line 29: Line 31:
 
== External links ==
 
== External links ==
   
* [http://en.wikipedia.org/wiki/AY-3-8912 Wikipedia page]
+
* [[wikipedia:AY-3-8912|Wikipedia page]]
 
* http://www.armory.com/~rstevew/Public/SoundSynth/Novelty/AY3-8910/start.html
 
* http://www.armory.com/~rstevew/Public/SoundSynth/Novelty/AY3-8910/start.html
 
[[Category:ZX Spectrum technical information]]
 

Latest revision as of 23:46, 22 May 2015

This article has been moved or is in the process of being moved to the Sinclair FAQ Wiki, under the "AY-3-8912" article. You may find more complete information there.


The AY-3-8912 is a sound generator that is built-in on several 128 KB models of the ZX Spectrum and in the Timex Sinclair 2068, but can also be found in several peripherals, such as the Fuller Box an the Melodik interface. ( is there a list anywhere of all the devices that had ay8912 in them - fuller, cheetah, dktronics, ram, agf & MB-02+?)

The 128K's AY chip is clocked at 1.7734 MHz (to within 0.01%). Writing to port FFFDh (65533) selects a register, and reading from port FFFDh reads that register's contents. Writing to port BFFDh (49149) writes new data to the currently selected register. On the 128K/+2, reading from BFFDh will return the floating bus value as normal for unattached ports, but on the +2A/+3, it will return the same as reading from FFFDh. The Melodik interface uses the same ports as the 128K.

On Spectrum-based machines, the AY chip is normally clocked at half the CPU clock. Melodik, the TC2068 and the Pentagon have an AY clocked at 1.75 Mhz. The TS2068's AY chip is clocked at 1.764 MHz. The Timex machines use different ports to the 128K.

Various peripherals, such as the Fuller Box, use differerent ports to any other interface. The Fuller Box is nominally clocked at 1.75 Mhz but suffers from contention problems.

The AY-3-8910 has 16 registers:

   0  Channel A fine pitch        8 bits
   1  Channel A coarse pitch      4 bits
   2  Channel B fine pitch        8 bits
   3  Channel B coarse pitch      4 bits
   4  Channel C fine pitch        8 bits
   5  Channel C coarse pitch      4 bits
   6  Noise pitch                 5 bits
   7  Mixer                       8 bits
   8  Channel A volume            4 bits
   9  Channel B volume            4 bits
  10  Channel C volume            4 bits
  11  Envelope fine duration      8 bits
  12  Envelope coarse duration    8 bits
  13  Envelope shape              4 bits
  14  I/O port A                  8 bits
  15  I/O port B                  8 bits (not used by AY-3-8912)


External links