Nintendo 1504166 Programming Manual - Page 152

JOY Bus Communication Operations, Device Reset] CommandFFh Received

Page 152 highlights

AGB Programming Manual Communication Functions JOYSTAT [d03] Send Status Flag When an AGB write data signal is received, this is set. If a word read is done with the JOY_RECV Register it is reset. JOYSTAT [d01] Receive Status Flag When a word write is done with the JOY_TRANS Register, this is set. If an AGB read data signal is received it is reset. JOY Bus Communication Operations AGB JOY Bus communication recognizes four commands sent from the host (DOL, etc.): [Device Reset], [Type/Status Data Request], [AGB Data Write], and [AGB Data Read]. AGB operates based on the particular signal received. The transfer of the bit data for JOY Bus communication is done in units of bytes and in the order of MSB first. § [Device Reset] Command(FFh) Received The device reset signal receive flag for Register JOYCNT is set. If the interrupt request enable flag for the same register is also set, a JOY Bus interrupt request is generated. Direction Order d7 Receive 1 1 1 0 Send 2 0 3 d6 d5 d4 d3 d2 d1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 Lower 8 bits of Register JOYSTAT d0 Remarks 1 Command 255(FFh) 0 Type Number 0 0400h Communication Status § [Type/Status Data Request] Command(00h) Received Returns 2 byte type number(0004h) and 1 byte communication status. Direction Order d7 Receive 1 0 1 0 Send 2 0 3 d6 d5 d4 d3 d2 d1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 Lower 8 bits of Register JOYSTAT d0 Remarks 0 Command 0(00h) 0 Type Number 0 0400h Communication Status ©1999 - 2001 Nintendo of America Inc. 152 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
Communication Functions
©1999 - 2001 Nintendo of America Inc.
152
D.C.N. AGB-06-0001-002B4
JOYSTAT [d03] Send Status Flag
When
an AGB write data signal is received, this is set.
If a word read is
done with the JOY_RECV Register it is reset.
JOYSTAT [d01] Receive Status Flag
When a word write is done with the JOY_TRANS Register, this is set.
If an
AGB read data signal is received it is reset.
JOY Bus Communication Operations
AGB JOY Bus communication recognizes four commands sent from the
host (DOL, etc.):
[Device Reset], [Type/Status Data Request], [AGB Data
Write], and [AGB Data Read].
AGB operates based on the particular signal
received.
The transfer of the bit data for JOY Bus communication is done in units of
bytes and in the order of MSB first.
§
[Device Reset] Command(FFh) Received
The device reset signal receive flag for Register JOYCNT is set.
If the interrupt request enable flag for the same register is also set, a JOY
Bus interrupt request is generated.
Direction
Order
d7
d6
d5
d4
d3
d2
d1
d0
Remarks
Receive
1
1
1
1
1
1
1
1
1
Command 255(FFh)
1
0
0
0
0
0
0
0
0
2
0
0
0
0
0
1
0
0
Type Number
0400h
Send
3
Lower 8 bits of Register JOYSTAT
Communication Status
§
[Type/Status Data Request] Command(00h) Received
Returns 2 byte type number(0004h) and 1 byte communication status.
Direction
Order
d7
d6
d5
d4
d3
d2
d1
d0
Remarks
Receive
1
0
0
0
0
0
0
0
0
Command 0(00h)
1
0
0
0
0
0
0
0
0
2
0
0
0
0
0
1
0
0
Type Number
0400h
Send
3
Lower 8 bits of
Register JOYSTAT
Communication Status