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