FOR
FOR
enCoRe™ USB CY7C63722/23
CY7C63743
Table 22-2. Decode table for Table 22-3: “Details of Modes for Differing Traffic Conditions”
Endpoint Mode
Properties of incoming Changes to the internal register made by the SIE as a result of
Interrupt?
Encoding
packet
the incoming token
End Point
Mode
3
2
1
0
Token count
buffer
dval
DTOG
DVAL
COUNT
Setup
In
Out
ACK
3
2
1
0
Response Int
SIE’s Response
Bit[3:0], Figure 14-4
Data Valid (Bit 6, Figure 14-4)
Data 0/1 (Bit 7, Figure 14-4)
The validity of the received data
The quality status of the DMA buffer
The number of received bytes
Endpoint Mode changed
by the SIE.
Acknowledgetransactioncompleted
Received Token
(SETUP, IN,OUT)
(Bit4,Figure 14-2/3)
PID Status Bits
(Bit[7:5], Figure 14-2)
Legend:
UC: unchanged
x: don’t care
TX: transmit
RX: receive
TX0: transmit 0-length packet
available for Control endpoint only
The response of the SIE can be summarized as follows:
1. The SIE will only respond to valid transactions, and will ignore non-valid ones.
2. The SIE will generate an interrupt when a valid transaction is completed or when the FIFO is corrupted. FIFO corruption occurs
during an OUT or SETUP transaction to a valid internal address, that ends with a non-valid CRC.
3. An incoming Data packet is valid if the count is < Endpoint Size + 2 (includes CRC) and passes all error checking;
4. An IN will be ignored by an OUT configured endpoint and visa versa.
5. The IN and OUT PID status is updated at the end of a transaction.
6. The SETUP PID status is updated at the beginning of the Data packet phase.
7. The entire Endpoint 0 mode register and the Count register are locked to CPU writes at the end of any transaction to that
endpoint in which an ACK is transferred. These registers are only unlocked by a CPU read of these registers, and only if that
read happens after the transaction completes. This represents about a 1-µs window in which the CPU is locked from register
writes to these USB registers. Normally the firmware should perform a register read at the beginning of the Endpoint ISRs to
unlock and get the mode register information. The interlock on the Mode and Count registers ensures that the firmware
recognizes the changes that the SIE might have made during the previous transaction.
Document #: 38-08022 Rev. **
Page 44 of 58