Nintendo 1504166 Programming Manual - Page 146

SIOCNT [d05] Receive Data Flag

Page 146 highlights

AGB Programming Manual Communication Functions SIOCNT [d06] Error Flag By referring to this error flag, the status of communication errors can be determined. When it is 0, no errors have occurred. When it is set to 1, an error has occurred. By reading Register SIOCNT, this error flag is reset. Additionally, when there has been an error, the data from the Receive Shift Register is not written to the Receive Data Register. The conditions associated with each error are described below. ERROR NAME Framing Error Parity Error Overrun Error CONDITION The receive data stop bit is not 0 When parity is enabled, there is an error in the parity for the receive data When FIFO is invalid, if the receive data is not empty (SIOCNT[d05]=0) and next receive has ended (detect stop bit). Or when FIFO is valid, if receive FIFO is full and next communication has ended (detect stop bit). SIOCNT [d05] Receive Data Flag When set to 0, there is still data present. When set to 1, it is empty. SIOCNT [d04] Send Data Flag When set to 0, it is not full. After one send operation ends this is reset. When set to 1, it is full. Set during a write of data to the lower 8 bits of the Send Data Register SIODATA8 SIOCNT [d03] Parity Control Switches between even parity and odd parity. SIOCNT [d02] CTS Flag The SD terminal of the other machine (receive enable/disable) is input to the SC terminal. When set to 0, a send is always possible independent of the SC Terminal. When set to 1, a send is only possible when a LO is being input to the SC Terminal. ©1999 - 2001 Nintendo of America Inc. 146 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.
146
D.C.N. AGB-06-0001-002B4
SIOCNT [d06] Error Flag
By referring to this error flag, the status of communication errors can be
determined.
When it is 0, no errors have occurred.
When it is set to 1, an error has
occurred.
By reading Register SIOCNT, this error flag is reset.
Additionally, when there has been an error, the data from the Receive Shift
Register is not written to the Receive Data Register.
The conditions
associated with each error are described below.
ERROR NAME
CONDITION
Framing Error
The receive data stop bit is not 0
Parity Error
When parity is enabled, there is an error in the parity for the receive data
Overrun Error
When FIFO is invalid, if the receive data is not empty (SIOCNT[d05]=0)
and next receive has ended (detect stop bit).
Or when FIFO is valid, if
receive FIFO is full and next communication has ended (detect stop bit).
SIOCNT [d05] Receive Data Flag
When set to 0, there is still data present.
When set to 1, it is empty.
SIOCNT [d04] Send Data Flag
When set to 0, it is not full.
After one send operation ends this is reset.
When set to 1, it is full.
Set during a write of data to the lower 8 bits of the Send Data Register
SIODATA8
SIOCNT [d03] Parity Control
Switches between even parity and odd parity.
SIOCNT [d02] CTS Flag
The SD terminal of the other machine (receive enable/disable) is input to
the SC terminal.
When set to 0, a send is always possible independent of the SC Terminal.
When set to 1, a send is only possible when a LO is being input to the SC
Terminal.