Preliminary
Registers
www.ti.com
20.9.6.2.3 Control Status Register for Endpoint 0 in Host Mode (USBn_HOST_CSR0)
The control status register for endpoint 0 in host mode (USBn_HOST_CSR0) is a 16-bit register that
provides control and status bits for endpoint 0 when USB controller assumes the role of a host. This
register is shown in
and described in
Figure 20-158. Control Status Register for Endpoint 0 in Host Mode (USBn_HOST_CSR0)
15
12
11
10
9
8
Reserved
DSPING
DATATOGWREN
DATATOG
FLUSHFIFO
R-0h
R/W-0-1h
W-0-1h
R/W-0-1h
W-0-1h
7
6
5
4
3
2
1
0
NAK_TIMEOUT
STATUSPKT
REQPKT
ERROR
SETUPPKT
RXSTALL
TXPKTRDY
RXPKTRDY
W-0-1h
R/W-0-1h
R/W-0-1h
W-0-1h
R/W-0-1h
R/W-0-1h
R/W-0-1h
R/W-0-1h
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 20-175. Control Status Register for Endpoint 0 in Host Mode (USBn_HOST_CSR0) Field
Descriptions
Bits
Field Name
Description
15-12
Reserved
Reserved
11
DSPING
The CPU writes a 1 to the DSPING bit to instruct the core not to issue PING tokens in the
data and status phases of a high-speed control transfer (for use with devices that do not
respond to PING).
10
DATATOGWREN
Write 1 to this bit to enable the DATATOG bit to be written. This bit is automatically cleared
once the new value is written to DATATOG.
9
DATATOG
When read, this bit indicates the current state of the EP0 data toggle. If DATATOGWREN
is high, this bit can be written with the required setting of the data toggle. If
DATATOGWREN is low, any value written to this bit is ignored.
8
FLUSHFIFO
Write 1 to this bit to flush the next packet to be transmitted/read from the Endpoint 0 FIFO.
The FIFO pointer is reset and the TXPKTRDY/RXPKTRDY bit is cleared. Note:
FLUSHFIFO has no effect unless TXPKTRDY/RXPKTRDY is set.
7
NAK_TIMEOUT
This bit will be set when endpoint 0 is halted following the receipt of NAK responses for
longer than the time set by the NAKLIMIT0 register. This bit should be cleared to allow the
endpoint to continue.
6
STATUSPKT
Set this bit at the same time as the TXPKTRDY or REQPKT bit is set, to perform a status
stage transaction. Setting this bit ensures that the data toggle is set so that a DATA1
packet is used for the Status Stage transaction.
5
REQPKT
Set this bit to request an IN transaction. It is cleared when RXPKTRDY is set.
4
ERROR
This bit is set when three attempts have been made to perform a transaction with no
response from the peripheral. You should clear this bit. An interrupt is generated when this
bit is set.
3
SETUPPKT
Set this bit, at the same time as the TXPKTRDY bit is set, to send a SETUP token instead
of an OUT token for the transaction.
2
RXSTALL
This bit is set when a STALL handshake is received. You should clear this bit.
1
TXPKTRDY
Set this bit after loading a data packet into the FIFO. It is cleared automatically when the
data packet has been transmitted. An interrupt is generated (if enabled) when the bit is
cleared.
0
RXPKTRDY
This bit is set when a data packet has been received. An interrupt is generated when this
bit is set. Clear this bit by setting the SERV_RXPKTRDY bit.
1954
Universal Serial Bus (USB)
SPRUGX9 – 15 April 2011
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...