Nintendo 1504166 Programming Manual - Page 22

Game Pak RAM Wait Control, PHI Terminal Output Control

Page 22 highlights

AGB Programming Manual AGB Memory If the Prefetch Buffer Flag is disabled, the fetch is done from the Game Pak ROM. There is a wait based on the wait state associated with the fetch instruction to the Game Pak ROM in respect to the CPU. WAITCNT [d12 - 11] PHI Terminal Output Control Controls the output from the PHI terminal. This should always be set to 00(No Output). WAITCNT [d10 - 08],[d07 - 05],[d04 - 02] Wait State Wait Control Individual wait cycles for each of the three areas(Wait States 0-2) that occur in Game Pak ROM can be set. The relation between the wait control settings and wait cycles is as follows. Use the appropriate settings for the device you are using. Wait Control Value 000 001 010 011 100 101 110 111 1st Access 4 3 2 8 4 3 2 8 Wait Cycles 2nd Access Wait State Wait State 0 1 2 4 2 4 2 4 2 4 1 1 1 1 1 1 1 1 Wait State 2 8 8 8 8 1 1 1 1 After executing the System ROM (when the User Program is started) the Wait Control Value is 000. In the Game Pak Mask ROM used with the actual manufactured product, the specifications are 1st Access/3 Wait, 2nd Access/1 Wait. In this case, set the Wait Control Value to 101. WAITCNT [d01 - 00] Game Pak RAM Wait Control Wait cycles for the Game Pak RAM can be set. The relation between the wait control settings and wait cycles is as follows. Use the appropriate settings for the device you are using. Wait Control Value 00 01 10 11 Wait Cycles 4 3 2 8 ©1999 - 2001 Nintendo of America Inc. 22 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
AGB Memory
©1999 - 2001 Nintendo of America Inc.
22
D.C.N. AGB-06-0001-002B4
If the Prefetch Buffer Flag is disabled, the fetch is done from the Game Pak
ROM.
There is a wait based on the wait state associated with the fetch
instruction to the Game Pak ROM in respect to the CPU.
WAITCNT [d12 - 11]
PHI Terminal Output Control
Controls the output from the PHI terminal.
This should always be set to
00(No Output).
WAITCNT [d10 - 08],[d07 - 05],[d04 - 02] Wait State Wait Control
Individual wait cycles for each of the three areas(Wait States 0-2) that
occur in Game Pak ROM can be set.
The relation between the wait control
settings and wait cycles is as follows.
Use the appropriate settings for the
device you are using.
Wait Cycles
2
nd
Access
Wait Control Value
1
st
Access
Wait State
0
Wait State
1
Wait State
2
000
4
2
4
8
001
3
2
4
8
010
2
2
4
8
011
8
2
4
8
100
4
1
1
1
101
3
1
1
1
110
2
1
1
1
111
8
1
1
1
After executing the System ROM (when the User Program is started) the Wait
Control Value is 000.
In the Game Pak Mask ROM used with the actual
manufactured product, the specifications are 1
st
Access/3 Wait, 2
nd
Access/1 Wait.
In this case, set the Wait Control Value to 101.
WAITCNT [d01 - 00]
Game Pak RAM Wait Control
Wait cycles for the Game Pak RAM can be set.
The relation between the
wait control settings and wait cycles is as follows. Use the appropriate
settings for the device you are using.
Wait Control Value
Wait Cycles
00
4
01
3
10
2
11
8