Texas Instruments TMS320DM357 Flushfifo, Servsetupend, Servrxpktrdy, Sendstall, Setupend, Dataend

Models: TMS320DM357

1 144
Download 144 pages 62.56 Kb
Page 120
Image 120

Registers

www.ti.com

4.57 Control Status Register for Endpoint 0 in Peripheral Mode (PERI_CSR0)

The Control Status Register for Endpoint 0 in Peripheral Mode (PERI_CSR0) is shown in Figure 72 and described in Table 73.

Figure 72. Control Status Register for Endpoint 0 in Peripheral Mode (PERI_CSR0)

15

 

 

 

 

 

9

8

 

 

 

Reserved

 

 

 

FLUSHFIFO

 

 

 

R-0

 

 

 

W-0

7

6

5

4

3

2

1

0

SERV_SETUPEND

SERV_RXPKTRDY

SENDSTALL

SETUPEND

DATAEND

SENTSTALL

TXPKTRDY

RXPKTRDY

W-0

W-0

W-0

R-0

W-0

R/W-0

R/W-0

R-0

LEGEND: R/W = Read/Write; R = Read only; W = Write only; -n= value after reset

Table 73. Control Status Register for Endpoint 0 in Peripheral Mode (PERI_CSR0)

Field Descriptions

Bit

Field

Value

Description

15-9

Reserved

0

Reserved

8

FLUSHFIFO

0-1

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

0-1

Set this bit to clear the SETUPEND bit. It is cleared automatically.

6

SERV_RXPKTRDY

0-1

Set this bit to clear the RXPKTRDY bit. It is cleared automatically.

5

SENDSTALL

0-1

Set this bit to terminate the current transaction. The STALL handshake will be transmitted and

 

 

 

then this bit will be cleared automatically.

4

SETUPEND

0-1

This bit will be set when a control transaction ends before the DATAEND bit has been set. An

 

 

 

interrupt will be 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

0-1

Set this bit to:

 

 

 

1 - When setting TXPKTRDY for the last data packet

 

 

 

2 - When clearing RXPKTRDY after unloading the last data packet

 

 

 

3 - When setting TXPKTRDY for a zero length data packet. It is cleared automatically.

2

SENTSTALL

0-1

This bit is set when a STALL handshake is transmitted. This bit should be cleared.

1

TXPKTRDY

0-1

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

0-1

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.

120

Universal Serial Bus (USB) Controller

SPRUGH3–November 2008

Submit Documentation Feedback

Page 120
Image 120
Texas Instruments TMS320DM357 Flushfifo, Servsetupend, Servrxpktrdy, Sendstall, Setupend, Dataend, Sentstall, Txpktrdy