TMP92CF30
2009-06-12
92CF30-398
(a-2) Receiving bulk mode
Below is the transaction format for receiving bulk transfer type.
•
Token: OUT
•
Data: DATA0/DATA1
•
Handshake: ACK, NAK, STALL
Control flow
Below is the control-flow when the UDC receive an IN token.
1. The token packet is received and the address endpoint number error is
confirmed, and it checks whether the relevant endpoint transfer mode
corresponds with the OUT token. If it does not correspond, the state returns to
IDLE.
2. Condition of status register is confirmed.
•
INVALID condition: State returns to IDLE.
•
STALL condition: When dataphase finishes, stall handshake is returned,
the state returns to IDLE, and data is canceled.
FIFO condition is confirmed, if data number of 1 packet is not prepared, present
transferred data is canceled, NAK handshake is returned after dataphase, and
the state returns to IDLE.
3. Data packet is received.
Data is transferred from SIE of internal UDC to FIFO. At this point, it
confirms transferred data number and if there is more than the maximum
payload size of each endpoint, STATUS becomes to STALL and the state
returns to IDLE. ACK handshake does not return.
4. After last data is transferred, the counted CRC is compared with the transferred
CRC. If they do not correspond, STATUS is set to RX_ERR and the state
returns to IDLE. At this point ACK is not returned.
After retry, when next data is received normally, STATUS changes to DATIN.
If the data toggle does not correspond, it is judged not to have taken ACK in
the last loading the current loading is regarded as a retry of the last loading
and data is canceled. Set STATUS as RX_ERR, return to host and return to
IDLE. FIFO address pointer returns and the next data can be received.
5. If CRC is compared with toggle and it finishes normally, ACK handshake is
returned.
Below is the process in the UDC.
•
Set transfer data number to DATASIZE register.
•
Set DATASET register.
•
Renew toggle bit, and prepare for next.
•
Set STATUS to READY.
UDC finishes normally.
This flow is shown in Figure 3.16.4.
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...