Nintendo 1504166 Programming Manual - Page 153

AGB Data Write] Command15h Received, them in Register JOY_RECV.

Page 153 highlights

AGB Programming Manual Communication Functions § [AGB Data Write] Command(15h) Received Receives the 4 bytes of data sent following this command, and stores them in Register JOY_RECV. Once the receive is completed a 1 byte communication status is returned, and the receive complete flag for Register JOYCNT is set. Also, if the interrupt request enable flag for the same register is set, a JOY Bus interrupt request is generated. Direction Receive Receive Send Order 1 2 3 4 5 6 d7 d6 d5 d4 d3 d2 d1 d0 0 0 0 1 0 1 0 1 Lower 8 bits of receive data Register JOY_RECV_L Upper 8 bits of receive data Register JOY_RECV_L Lower 8 bits of receive data Register JOY_RECV_H Upper 8 bits of receive data Register JOY_RECV_H Lower 8 bits of Register JOYSTAT Remarks Command 21(15h) Receive Data Communication Status § [AGB Data Read] Command(14h) Received 4 bytes of data stored in Register JOY_TRANS and the 1 byte communication status are sent, and the send complete flag for Register JOYCNT is set. Also, if the interrupt request enable flag for the same register is set, a JOY Bus interrupt request is generated. Direction Receive Send Order 1 2 3 4 5 6 d7 d6 d5 d4 d3 d2 d1 d0 0 0 0 1 0 1 0 0 Lower 8 bits of send data Register JOY_TRANS_L Upper 8 bits of send data Register JOY_TRANS_L Lower 8 bits of send data Register JOY_TRANS_H Upper 8 bits of send data Register JOY_TRANS_H Lower 8 bits of Register JOYSTAT Remarks Command 20(14h) Send Data Communication Status ©1999 - 2001 Nintendo of America Inc. 153 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.
153
D.C.N. AGB-06-0001-002B4
§
[AGB Data Write] Command(15h) Received
Receives the 4 bytes of data sent following this command, and stores
them in Register JOY_RECV.
Once the receive is completed a 1 byte
communication status is returned, and the receive complete flag for
Register JOYCNT is set.
Also, if the interrupt request enable flag for the
same register is set, a JOY Bus interrupt request is generated.
Direction
Order
d7
d6
d5
d4
d3
d2
d1
d0
Remarks
Receive
1
0
0
0
1
0
1
0
1
Command 21(15h)
2
Lower 8 bits of receive data Register JOY_RECV_L
3
Upper 8 bits of receive data Register JOY_RECV_L
4
Lower 8 bits of receive data Register JOY_RECV_H
Receive
5
Upper 8 bits of receive data Register JOY_RECV_H
Receive Data
Send
6
Lower 8 bits of Register JOYSTAT
Communication Status
§
[AGB Data Read] Command(14h) Received
4 bytes of data stored in Register JOY_TRANS and the 1 byte
communication status are sent, and the send complete flag for Register
JOYCNT is set.
Also, if the interrupt request enable flag for the same register is set, a JOY
Bus interrupt request is generated.
Direction
Order
d7
d6
d5
d4
d3
d2
d1
d0
Remarks
Receive
1
0
0
0
1
0
1
0
0
Command 20(14h)
2
Lower 8 bits of send data Register JOY_TRANS_L
3
Upper 8 bits of send data Register JOY_TRANS_L
4
Lower 8 bits of send data Register JOY_TRANS_H
5
Upper 8 bits of send data Register JOY_TRANS_H
Send Data
Send
6
Lower 8 bits of Register JOYSTAT
Communication Status