Debian Codegraph @

android/app/jni/doc/7-systems/ay8910.md

raw
1 # General Instrument AY-3-8910
2
3 this chip was used in many home computers (ZX Spectrum, MSX, Amstrad CPC, Atari ST, etc.), video game consoles (Intellivision and Vectrex), arcade boards and even slot machines!
4
5 it is a 3-channel square/noise/envelope sound generator. the chip's powerful sound comes from the envelope...
6
7 the AY-3-8914 variant was used in Intellivision, which is pretty much an AY with 4 level envelope volume per channel and different register format.
8
9 Furnace is capable of doing software sample playback on AY-3-8910, where all 3 channels can play 4-bit PCM samples (at the cost of a very high CPU usage) and utilize CPU timer effects, providing all kinds of modulation (PWM and envelope distortion) effects, again at the cost of a higher CPU usage. Songs utilizing timer effects may not sound as intended after VGM export.
10
11 ## effects
12
13 - `20xx`: **set channel mode.**
14 - `0`: square
15 - `1`: noise
16 - `2`: square and noise
17 - `3`: envelope
18 - `4`: envelope and square
19 - `5`: envelope and noise
20 - `6`: envelope and square and noise
21 - `7`: nothing
22 - `21xx`: **set noise frequency.** range is `0` to `1F`.
23 - `22xy`: **set envelope mode.**
24 - `x` sets the envelope shape:
25 - `0`: `\___` decay
26 - `4`: `/___` attack once
27 - `8`: `\\\\` saw
28 - `9`: `\___` decay
29 - `A`: `\/\/` inverse obelisco
30 - `B`: `\¯¯¯` decay once
31 - `C`: `////` inverse saw
32 - `D`: `/¯¯¯` attack
33 - `E`: `/\/\` obelisco
34 - `F`: `/___` attack once
35 - if `y` is 1 then the envelope will affect this channel.
36 - `23xx`: **set envelope period low byte.**
37 - `24xx`: **set envelope period high byte.**
38 - `25xx`: **slide envelope period up.**
39 - `26xx`: **slide envelope period down.**
40 - `29xy`: **enable auto-envelope mode.**
41 - in this mode the envelope period is set to the channel's notes, multiplied by a fraction.
42 - `x` is the numerator.
43 - `y` is the denominator.
44 - if `x` or `y` are 0 this will disable auto-envelope mode.
45 - `2Cxx`: **set timer period offset.**
46 - bit 7 is the sign.
47 - `2Exx`: **write to I/O port A.**
48 - this changes the port's mode to "write". make sure you have connected something to it.
49 - `2Fxx`: **write to I/O port B.**
50 - this changes the port's mode to "write". make sure you have connected something to it.
51
52 ## what is obelisco
53
54 it's a name I use for a spiky waveform that starts low.
55
56 its origin is a wavetable that comes in DefleMask that happens to be called Obelisco.
57
58 ## AY derivative modes
59
60 AY-3-810 was an absurdly popular chip that was blessed with many third-party clones, licensed or not.
61
62 - the AY-3-8914 variant was used in Intellivision, which is pretty much an 8910 with 4 level envelope volume per channel and different register format.
63 - Yamaha YM2149 was an AY-3-8910 clone released in 1983. it's almost identical to AY with minor differences being: higher hardware envelope step resolution (16 vs 32), half-clock mode when voltage level is low, much stronger DC offset and cleaner, but softer output.
64 - Sunsoft 5B is YM2149 clone with half-clock mode forced on.
65
66 ## info
67
68 this chip uses the [AY-3-8910](../4-instrument/ay8910.md) instrument editor.
69
70 ## chip config
71
72 the following options are available in the Chip Manager window:
73
74 - **Clock rate**: sets the rate at which the chip will run.
75 - **Chip type**: changes the chip model.
76 - AY-3-8910: the original model.
77 - YM2149(F): Yamaha clone with higher envelope resolution and a different volume curve.
78 - Sunsoft 5B: a special model found in one of Sunsoft's Famicom cartridges.
79 - AY-3-8914: scrambled registers. has envelope volume control.
80 - **Stereo**: enable stereo output. channel 1 is output left, channel 2 is output center and channel 3 is output right.
81 - **Separation**: allows you to set left/right separation.
82 - **Half Clock divider**: pulls the half clock pin, running the chip at half the speed.
83 - only available in YM2149.