| 1 |
# Microchip AY8930 |
| 2 |
|
| 3 |
a backwards-compatible successor to the AY-3-8910, with increased volume resolution, duty cycle control, three envelopes and highly configurable noise generator. |
| 4 |
|
| 5 |
sadly, this soundchip has only ever observed minimal success, and has remained rather obscure since. |
| 6 |
it is known for being used in the Covox Sound Master, which didn't sell well either. |
| 7 |
|
| 8 |
emulation of this chip in Furnace is now complete thanks to community efforts and hardware testing, which an MSX board called Darky has permitted. |
| 9 |
|
| 10 |
Furnace is able to do software PCM on AY8930, where all 3 channels can play 5-bit PCM samples (at the cost of a very high CPU usage). |
| 11 |
|
| 12 |
## effects |
| 13 |
|
| 14 |
- `12xx`: **set channel duty cycle.** |
| 15 |
- `0`: 3.125% |
| 16 |
- `1`: 6.25% |
| 17 |
- `2`: 12.5% |
| 18 |
- `3`: 25% |
| 19 |
- `4`: 50% |
| 20 |
- `5`: 75% |
| 21 |
- `6`: 87.5% |
| 22 |
- `7`: 93.75% |
| 23 |
- `8`: 96.875% |
| 24 |
- `20xx`: **set channel mode.** `xx` may be one of the following: |
| 25 |
- `0`: square |
| 26 |
- `1`: noise |
| 27 |
- `2`: square and noise |
| 28 |
- `3`: envelope |
| 29 |
- `4`: envelope and square |
| 30 |
- `5`: envelope and noise |
| 31 |
- `6`: envelope and square and noise |
| 32 |
- `7`: nothing |
| 33 |
- `21xx`: **set noise frequency.** `xx` is a value between `00` and `FF`. |
| 34 |
- `22xy`: **set envelope mode.** |
| 35 |
- `x` sets the envelope shape, which may be one of the following: |
| 36 |
- `0`: `\___` decay |
| 37 |
- `4`: `/___` attack once |
| 38 |
- `8`: `\\\\` saw |
| 39 |
- `9`: `\___` decay |
| 40 |
- `A`: `\/\/` inverse obelisco |
| 41 |
- `B`: `\¯¯¯` decay once |
| 42 |
- `C`: `////` inverse saw |
| 43 |
- `D`: `/¯¯¯` attack |
| 44 |
- `E`: `/\/\` obelisco |
| 45 |
- `F`: `/___` attack once |
| 46 |
- if `y` is 1 then the envelope will affect this channel. |
| 47 |
- `23xx`: **set envelope period low byte.** |
| 48 |
- `24xx`: **set envelope period high byte.** |
| 49 |
- `25xx`: **slide envelope period up.** |
| 50 |
- `26xx`: **slide envelope period down.** |
| 51 |
- `27xx`: **set noise AND mask.** |
| 52 |
- `28xx`: **set noise OR mask.** |
| 53 |
- `29xy`: **enable auto-envelope mode.** |
| 54 |
- in this mode the envelope period is set to the channel's notes, multiplied by a fraction. |
| 55 |
- `x` is the numerator. |
| 56 |
- `y` is the denominator. |
| 57 |
- if `x` or `y` are 0 this will disable auto-envelope mode. |
| 58 |
- `2Cxx`: **automatic noise frequency.** |
| 59 |
- `x` sets the mode: |
| 60 |
- `0`: disabled |
| 61 |
- `1`: alter frequency |
| 62 |
- `2`: alter frequency and OR mask |
| 63 |
- `y` sets the offset. |
| 64 |
- this can be used to make a pulse-width modulation (PWM) effect. |
| 65 |
- `2Exx`: **write to I/O port A.** |
| 66 |
- this changes the port's mode to "write". make sure you have connected something to it. |
| 67 |
- `2Fxx`: **write to I/O port B.** |
| 68 |
- this changes the port's mode to "write". make sure you have connected something to it. |
| 69 |
|
| 70 |
## info |
| 71 |
|
| 72 |
this chip uses the [AY8930](../4-instrument/ay8930.md) instrument editor. |
| 73 |
|
| 74 |
## chip config |
| 75 |
|
| 76 |
the following options are available in the Chip Manager window: |
| 77 |
|
| 78 |
- **Clock rate**: sets the rate at which the chip will run. |
| 79 |
- **Stereo**: enable stereo output. channel 1 is output left, channel 2 is output center and channel 3 is output right. |
| 80 |
- **Separation**: allows you to set left/right separation. |
| 81 |
- **Half Clock divider**: pulls the half clock pin, running the chip at half the speed. |