| 1 |
|
| 2 |
# Konami VRC VI |
| 3 |
|
| 4 |
## Summary |
| 5 |
|
| 6 |
- 2 voice pulse wave |
| 7 |
- 8 level duty or volume only mode |
| 8 |
- 1 voice sawtooth wave |
| 9 |
- Internal mapper and timer |
| 10 |
|
| 11 |
## Source code |
| 12 |
|
| 13 |
- vrcvi.hpp: Base header |
| 14 |
- vrcvi.cpp: Source emulation core |
| 15 |
|
| 16 |
## Description |
| 17 |
|
| 18 |
It's one of NES mapper with built-in sound chip, and also one of 2 Konami VRCs with this feature. (rest one has OPLL derivatives.) |
| 19 |
|
| 20 |
It's also DACless like other sound chip and mapper-with-sound manufactured by konami, the Chips 6 bit digital sound output is needs converted to analog sound output when you it want to make some sounds, or send to sound mixer. |
| 21 |
|
| 22 |
Its are used for Akumajou Densetsu (Japan release of Castlevania III), Madara, Esper Dream 2. |
| 23 |
|
| 24 |
The chip is installed in 351951 PCB and 351949A PCB. |
| 25 |
|
| 26 |
351951 PCB is used exclusivly for Akumajou Densetsu, Small board has VRC VI, PRG and CHR ROM. |
| 27 |
|
| 28 |
- It's configuration also calls VRC6a, iNES mapper 024. |
| 29 |
|
| 30 |
351949A PCB is for Last 2 titles with VRC VI, Bigger board has VRC VI, PRG and CHR ROM, and Battery Backed 8K x 8 bit SRAM. |
| 31 |
|
| 32 |
- Additionally, It's PRG A0 and A1 bit to VRC VI input is swapped, compare to above. |
| 33 |
- It's configuration also calls VRC6b, iNES mapper 026. |
| 34 |
|
| 35 |
The chip itself has 053328, 053329, 053330 Revision, but Its difference between revision is unknown. |
| 36 |
|
| 37 |
Like other mappers for NES, It has internal timer - Its timer can be sync with scanline like other Konami mapper in this era. |
| 38 |
|
| 39 |
## Register layout |
| 40 |
|
| 41 |
- Sound and Timer only; 351951 PCB case, 351949A swaps xxx1 and xxx2 |
| 42 |
|
| 43 |
``` |
| 44 |
Address Bits Description |
| 45 |
7654 3210 |
| 46 |
|
| 47 |
9000-9002 Pulse 1 |
| 48 |
|
| 49 |
9000 x--- ---- Pulse 1 Duty ignore |
| 50 |
-xxx ---- Pulse 1 Duty cycle |
| 51 |
---- xxxx Pulse 1 Volume |
| 52 |
9001 xxxx xxxx Pulse 1 Pitch bit 0-7 |
| 53 |
9002 x--- ---- Pulse 1 Enable |
| 54 |
---- xxxx Pulse 1 Pitch bit 8-11 |
| 55 |
|
| 56 |
9003 Sound control |
| 57 |
|
| 58 |
9003 ---- -x-- 4 bit Frequency mode |
| 59 |
---- -0x- 8 bit Frequency mode |
| 60 |
---- ---x Halt |
| 61 |
|
| 62 |
a000-a002 Pulse 2 |
| 63 |
|
| 64 |
a000 x--- ---- Pulse 2 Duty ignore |
| 65 |
-xxx ---- Pulse 2 Duty cycle |
| 66 |
---- xxxx Pulse 2 Volume |
| 67 |
a001 xxxx xxxx Pulse 2 Pitch bit 0-7 |
| 68 |
a002 x--- ---- Pulse 2 Enable |
| 69 |
---- xxxx Pulse 2 Pitch bit 8-11 |
| 70 |
|
| 71 |
b000-b002 Sawtooth |
| 72 |
|
| 73 |
b000 --xx xxxx Sawtooth Accumulate Rate |
| 74 |
b001 xxxx xxxx Sawtooth Pitch bit 0-7 |
| 75 |
b002 x--- ---- Sawtooth Enable |
| 76 |
---- xxxx Sawtooth Pitch bit 8-11 |
| 77 |
|
| 78 |
f000-f002 IRQ Timer |
| 79 |
|
| 80 |
f000 xxxx xxxx IRQ Timer latch |
| 81 |
f001 ---- -0-- Sync with scanline |
| 82 |
---- --x- Enable timer |
| 83 |
---- ---x Enable timer after IRQ Acknowledge |
| 84 |
f002 ---- ---- IRQ Acknowledge |
| 85 |
``` |
| 86 |
|
| 87 |
# Frequency calculation |
| 88 |
|
| 89 |
``` |
| 90 |
if 4 bit Frequency Mode then |
| 91 |
Frequency: Input clock / (bit 8 to 11 of Pitch + 1) |
| 92 |
end else if 8 bit Frequency Mode then |
| 93 |
Frequency: Input clock / (bit 4 to 11 of Pitch + 1) |
| 94 |
end else then |
| 95 |
Frequency: Input clock / (Pitch + 1) |
| 96 |
end |
| 97 |
``` |