| 1 |
|
| 2 |
# Seta/Allumer X1-010 |
| 3 |
|
| 4 |
## Summary |
| 5 |
|
| 6 |
- 16 voice wavetable or PCM |
| 7 |
- 8 bit signed for both wavetable and PCM |
| 8 |
- 128 width long waveform |
| 9 |
- wavetable playback must be paired with envelope |
| 10 |
- envelope shape is 4 bit stereo, 128 width long waveform |
| 11 |
- waveform and envelope shape stored at each half area on RAM space |
| 12 |
- total accessible memory for PCM: 1 MByte |
| 13 |
|
| 14 |
## Source code |
| 15 |
|
| 16 |
- x1_010.hpp: Base header |
| 17 |
- x1_010.cpp: Source emulation core |
| 18 |
|
| 19 |
## Description |
| 20 |
|
| 21 |
the chip has 16 voices, all voices can be switchable to Wavetable or PCM sample playback mode. It has also 2 output channels, but no known hardware using this feature for stereo sound. |
| 22 |
|
| 23 |
Wavetable needs to paired with envelope, it's always enabled and similar as AY PSG's one but its shape is stored at RAM. |
| 24 |
|
| 25 |
PCM volume is stored by each register. |
| 26 |
|
| 27 |
Both volume is 4bit per output. |
| 28 |
|
| 29 |
Everything except PCM sample is stored at paired 8 bit RAM. |
| 30 |
|
| 31 |
## RAM layout |
| 32 |
|
| 33 |
common case: Address bit 12 is swapped when RAM is shared with CPU |
| 34 |
|
| 35 |
### Voice registers (0000...007f) |
| 36 |
|
| 37 |
0000...0007 Voice #0 Register |
| 38 |
|
| 39 |
``` |
| 40 |
Address Bits Description |
| 41 |
7654 3210 |
| 42 |
0 x--- ---- Frequency divider* |
| 43 |
---- -x-- Envelope one-shot mode |
| 44 |
---- --x- Sound format |
| 45 |
---- --0- PCM |
| 46 |
---- --1- Wavetable |
| 47 |
---- ---x Keyon/off |
| 48 |
PCM case: |
| 49 |
1 xxxx xxxx Volume (Each nibble is for each output) |
| 50 |
|
| 51 |
2 xxxx xxxx Frequency |
| 52 |
|
| 53 |
4 xxxx xxxx Start address / 4096 |
| 54 |
|
| 55 |
5 xxxx xxxx 0x100 - (End address / 4096) |
| 56 |
Wavetable case: |
| 57 |
1 ---x xxxx Wavetable data select |
| 58 |
|
| 59 |
2 xxxx xxxx Frequency LSB |
| 60 |
3 xxxx xxxx "" MSB |
| 61 |
|
| 62 |
4 xxxx xxxx Envelope period |
| 63 |
|
| 64 |
5 ---x xxxx Envelope shape select (!= 0 : Reserved for Voice registers) |
| 65 |
``` |
| 66 |
|
| 67 |
0008...000f Voice #1 Register |
| 68 |
... |
| 69 |
0078...007f Voice #15 Register |
| 70 |
|
| 71 |
### Envelope shape data (0080...0fff) |
| 72 |
|
| 73 |
Same format as volume; Each nibble is for each output |
| 74 |
|
| 75 |
0080...00ff Envelope shape #1 data |
| 76 |
0100...017f Envelope shape #2 data |
| 77 |
... |
| 78 |
0f80...0fff Envelope shape #31 data |
| 79 |
|
| 80 |
### Waveform data (1000...1fff) |
| 81 |
|
| 82 |
1000...107f Waveform #0 data |
| 83 |
1080...10ff Waveform #1 data |
| 84 |
... |
| 85 |
1f80...1fff Waveform #31 data |
| 86 |
|
| 87 |
## Frequency calculation |
| 88 |
|
| 89 |
``` |
| 90 |
Wavetable, Divider Clear: Frequency value * (Input clock / 524288) |
| 91 |
Wavetable, Divider Set: Frequency value * (Input clock / 1048576) |
| 92 |
PCM, Divider Clear: Frequency value * (Input clock / 8192) |
| 93 |
PCM, Divider Set: Frequency value * (Input clock / 16384) |
| 94 |
Envelope: Envelope period * (Input clock / 524288) - Frequency divider not affected? |
| 95 |
``` |
| 96 |
|
| 97 |
Frequency divider is higher precision or just right shift? needs verification. |