
CYRF69213
Document #: 001-07552 Rev. *B
Page 53 of 85
USB Mode Tables
Mode Column
The 'Mode' column contains the mnemonic names given to the
modes of the endpoint. The mode of the endpoint is deter-
mined by the four-bit binaries in the 'Encoding' column as
discussed in the following section. The Status IN and Status
OUT represent the status IN or OUT stage of the control
transfer.
Encoding Column
The contents of the 'Encoding' column represent the Mode
Bits [3:0] of the Endpoint Mode Registers (
Table 78
and
Table 79
). The endpoint modes determine how the SIE
responds to different tokens that the host sends to the
endpoints. For example, if the Mode Bits [3:0] of the Endpoint
0 Mode Register are set to '0001', which is NAK IN/OUT mode,
the SIE will send an ACK handshake in response to SETUP
tokens and NAK any IN or OUT tokens.
SETUP, IN, and OUT Columns
Depending on the mode specified in the 'Encoding' column,
the 'SETUP', 'IN', and 'OUT' columns contain the SIE's
responses when the endpoint receives SETUP, IN, and OUT
tokens, respectively.
A 'Check' in the Out column means that upon receiving an
OUT token the SIE checks to see whether the OUT is of zero
length and has a Data Toggle (Data1/0) of 1. If these condi-
tions are true, the SIE responds with an ACK. If any of the
above conditions is not met, the SIE will respond with either a
STALL or Ignore.
A 'TX Count' entry in the IN column means that the SIE will
transmit the number of bytes specified in the Byte Count Bit
[3:0] of the Endpoint Count Register (
Table 77
) in response to
any IN token.
Table 82.Endpoint 2 Data (EP2DATA) [0x60-0x67] [R/W]
Bit #
Field
Read/Write
Default
The Endpoint 2 buffer is comprised of 8 bytes located at address 0x60 to 0x67
7
6
5
4
3
2
1
0
Endpoint 2 Data Buffer [7:0]
R/W
Unknown
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Unknown
Unknown
Unknown
Unknown
Unknown
Unknown
Unknown
Mode
Encoding
SETUP
IN
OUT
Comments
DISABLE
0000
Ignore
Ignore
Ignore
Ignore all USB traffic to this endpoint. Used by Data and Control
endpoints
NAK IN/OUT
0001
Accept
NAK
NAK
NAK IN and OUT token. Control endpoint only
STATUS OUT ONLY
0010
Accept
STALL
Check
STALL IN and ACK zero byte OUT. Control endpoint only
STALL IN/OUT
0011
Accept
STALL
STALL
STALL IN and OUT token. Control endpoint only
STATUS IN ONLY
0110
Accept
TX0 byte
STALL
STALL OUT and send zero byte data for IN token. Control end-
point only
ACK OUT –
STATUS IN
1011
Accept
TX0 byte
ACK
ACK the OUT token or send zero byte data for IN token. Control
endpoint only
ACK IN –
STATUS OUT
1111
Accept
TX Count
Check
Respond to IN data or Status OUT. Control endpoint only
NAK OUT
1000
Ignore
Ignore
NAK
Send NAK handshake to OUT token. Data endpoint only
ACK OUT (STALL = 0)
1001
Ignore
Ignore
ACK
This mode is changed by the SIE to mode 1000 on issuance of
ACK handshake to an OUT. Data endpoint only
ACK OUT (STALL = 1)
1001
Ignore
Ignore
STALL
STALL the OUT transfer
NAK IN
1100
Ignore
NAK
Ignore
Send NAK handshake for IN token. Data endpoint only
ACK IN (STALL = 0)
1101
Ignore
TX Count
Ignore
This mode is changed by the SIE to mode 1100 after receiving
ACK handshake to an IN data. Data endpoint only
ACK IN (STALL = 1)
1101
Ignore
STALL
Ignore
STALL the IN transfer. Data endpoint only
Reserved
0101
Ignore
Ignore
Ignore
These modes are not supported by SIE. Firmware should not use
this mode in Control and Data endpoints
Reserved
0111
Ignore
Ignore
Ignore
Reserved
1010
Ignore
Ignore
Ignore
Reserved
0100
Ignore
Ignore
Ignore
Reserved
1110
Ignore
Ignore
Ignore
[+] Feedback