Preliminary
www.ti.com
Registers
20.9.6.2.2 Control Status Register for Endpoint 0 in Peripheral Mode (USBn_PERI_CSR0)
The control status register for endpoint 0 in peripheral mode (USBn_PERI_CSR0) is a 16-bit register
that provides control and status bits for endpoint 0 when USB controller assumes the role of a
peripheral. This register is shown in
and described in
.
Figure 20-157. Control Status Register for Endpoint 0 in Peripheral Mode (USBn_PERI_CSR0)
15
9
8
Reserved
FLUSHFIFO
R-0h
W-0-1h
7
6
5
4
3
2
1
0
SERV_
SERV_
SENDSTALL
SETUPEND
DATAEND
SENTSTALL
TXPKTRDY
RXPKTRDY
SETUPEND
RXPKTRDY
W-0-1h
W-0-1h
W-0-1h
R-0-1h
W-0-1h
R/W-0-1h
R/W-0-1h
R-0h
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 20-174. Control Status Register for Endpoint 0 in Peripheral Mode (USBn_PERI_CSR0)
Field Descriptions
Bits
Field Name
Description
15-9
Reserved
Reserved
8
FLUSHFIFO
Set 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
SERV_SETUPEND
Set this bit to clear the SETUPEND bit. It is cleared automatically.
6
SERV_RXPKTRDY
Set this bit to clear the RXPKTRDY bit. It is cleared automatically.
5
SENDSTALL
Set this bit to terminate the current transaction. The STALL handshake will be transmitted
and then this bit will be cleared automatically.
4
SETUPEND
This bit will be set when a control transaction ends before the DATAEND bit has been set.
An interrupt is generated, and the FIFO will be flushed at this time. The bit is cleared by the
writing a 1 to the SERV_SETUPEND bit.
3
DATAEND
Set this bit to 1:
• When setting TXPKTRDY for the last data packet.
• When clearing RXPKTRDY after unloading the last data packet.
• When setting TXPKTRDY for a zero length data packet. It is cleared automatically.
2
SENTSTALL
This bit is set when a STALL handshake is transmitted. This bit should be cleared.
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. This bit is cleared by setting the SERV_RXPKTRDY bit.
1953
SPRUGX9 – 15 April 2011
Universal Serial Bus (USB)
© 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...