Nintendo 1504166 Programming Manual - Page 93

Sound 3, SOUND3CNT_L [d05] Waveform RAM Data Association Specification

Page 93 highlights

AGB Programming Manual Sound 10.5 Sound 3 The Sound 3 circuit outputs arbitrary waveforms and can automatically read waveform patterns (1 cycle) in waveform RAM and output them while modifying their length, frequency, and level. The capacity of the waveform RAM of Sound 3 in AGB (total of 64 steps) is twice that in CGB, and can be used as 2 banks of 32 steps or as 64 steps. In addition, a new output level of 3/4 output can now be selected. The contents of NR30, NR31, NR32, NR33, NR34 for Sound 3, add the functionalities listed above to those of CGB. Address Register 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Attributes Initial Value 070h SOUND3 NR30 R/W 0000h CNT_L Waveform RAM Data Association Spec. 0: 32 Steps 1: 64 Steps Waveform RAM Bank Specification 0: Bank 0 1: Bank 1 Sound Output Flag 0: Stop Output 1: Output SOUND3CNT_L [d07] Sound Output Flag Sound output stops when 0; sound output occurs when 1. SOUND3CNT_L [d06] Waveform RAM Bank Specification Two banks of waveform RAM are provided, banks 0 and 1. The Sound 3 circuit plays the waveform data in the specified bank. When waveform RAM is accessed by the user, the bank not specified is accessed. SOUND3CNT_L [d05] Waveform RAM Data Association Specification When 0 is specified, 32-step waveform pattern is constructed under normal operation. With a setting of 1, the data in the bank specified by NR30 [d06] (waveform RAM bank specification) is played, followed immediately by the data in the back bank. The front bank 32 steps and the back bank 32 steps combine to form a waveform pattern with a total of 64 steps. ©1999 - 2001 Nintendo of America Inc. 93 D.C.N. AGB-06-0001-002B4

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

AGB Programming Manual
Sound
©1999 - 2001 Nintendo of America Inc.
93
D.C.N. AGB-06-0001-002B4
10.5 Sound 3
The Sound 3 circuit outputs arbitrary waveforms and can automatically read waveform
patterns (1 cycle) in waveform RAM and output them while modifying their length,
frequency, and level.
The capacity of the waveform RAM of Sound 3 in AGB (total of 64 steps) is twice that
in CGB, and can be used as 2 banks of 32 steps or as 64 steps.
In addition, a new output level of 3/4 output can now be selected.
The contents of NR30, NR31, NR32, NR33, NR34 for Sound 3, add the functionalities
listed above to those of CGB.
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
SOUND3
CNT_L
070h
0000h
R/W
NR30
Waveform RAM Data Association Spec.
0: 32 Steps
1: 64 Steps
Waveform RAM Bank Specification
0: Bank 0
1: Bank 1
Sound Output Flag
0: Stop Output
1: Output
Attributes
Initial Value
Address
Register
SOUND3CNT_L [d07] Sound Output Flag
Sound output stops when 0; sound output occurs when 1.
SOUND3CNT_L [d06] Waveform RAM Bank Specification
Two banks of waveform RAM are provided, banks 0 and 1.
The Sound 3
circuit plays the waveform data in the specified bank.
When waveform RAM is accessed by the user, the bank not specified is
accessed.
SOUND3CNT_L [d05] Waveform RAM Data Association Specification
When 0 is specified, 32-step waveform pattern is constructed under
normal operation.
With a setting of 1, the data in the bank specified by NR30 [d06] (waveform
RAM bank specification) is played, followed immediately by the data in the
back bank.
The front bank 32 steps and the back bank 32 steps combine to form a
waveform pattern with a total of 64 steps.