TMP92CF30
2009-06-12
92CF30-365
STATUS [2:0]
(Bit4 to bit2)
These bits show status of UDC endpoint.
The status shows whether transfer is possible or not, and the
result of the transfer. These depend on transfer type.
(For the Isochronous transfer type, refer to 3.16.9.)
000: READY
Receiving:
Device can be received.
In endpoints 1 to 7, this register is initialized to “READY” by setting transfer type at
SET_CONFIGURATION.
In endpoint 0, this register is initialized to “READY” by detecting USB reset from the
host.
This is initialized to “READY” by terminating the status stage without error.
Transmitting:
Basically, the same as with “Receiving”.
But in transmitting, when data for transmission is set to FIFO and answer to token
from host and transfer data to host collect and received ACK, status register does not
change, and it remains “READY”. In this case, EPx_Empty_A or EPx_Empty_B
interrupt terminates the transfer correctly.
001: DATAIN
UDC set to DATAIN and generates EPx_FULL_A or EPx_FULL_B interrupt when
data is received from the host without error.
010: FULL
Refer to 3.16.8 (2) Details for the STATUS register.
011: TX_ERR
After transfer of data to IN token from host, UDC sets TX-ER to status register when
“ACK” is not received from host. In this case, an interrupt is not generated. The hosts
re-try IN token transfer.
100: RX_ERR
UDC sets RX_ERR to status register without transmitting “ACK” to host when an
error (such as a CRC-error) is detected in data of received token. In this case, an
interrupt is not generated. The hosts re-try and IN token transfer. In case of toggle
error with normal data, UDC returns ACK and set RX_ERR of STATUS register.
101: BUSY
This status is used only for the control transfer type and it is set when a status-stage
token is received from the host after a terminated data-stage.
When status-stage can be finished, terminates correctly and returns to READY. This
is not used in the Bulk and interrupts transfer type.
110: STALL
This status shows that the corresponding endpoint is in STALL status.
In this status, STALL-handshake returns, except for SETUP-token. The control
endpoint returns to READY from stall condition when SETUP-token is received.
Other endpoints return to READY when initialization command of FIFO is received.
111: INVALID
This status shows that the corresponding endpoint is in UNCONFIGURED status.
In this status, the UDC has no effect when a token is received from the host.
On reset, all endpoints are set to INVALID status. Only endpoint 0 returns to READY
on receiving USB-reset. Corresponding endpoints return to READY by according to
configuration.
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...