SPRUHM8K December 2013 – May 2024 F28377D-SEP , TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
The USB control and status endpoint 0 high 8-bit register (USBCSRH0) provides control and status bits for endpoint 0.
| Mode(s): | Host | Device |
USBCSRH0 in Host mode is shown in Figure 23-35 and described in Table 23-37.
| 7 | 3 | 2 | 1 | 0 |
| Reserved | DTWE | DT | FLUSH | ||||
| R-0 | R/W-0 | R/W-0 | R/W-0 | ||||
| LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
| Bit | Field | Value | Description |
|---|---|---|---|
| 7-3 | Reserved | 0 | Reserved |
| 2 | DTWE | Data Toggle Write Enable. This bit is automatically cleared once the new value is written. | |
| 0 | The DT bit cannot be written. | ||
| 1 | Enables the current state of the endpoint 0 data toggle to be written (see DT bit). | ||
| 1 | DT | Data Toggle. When read, this bit indicates the current state of the endpoint 0 data toggle. | |
| If DTWE is set, this bit may be written with the required setting of the data toggle. If DTWE is Low, this bit cannot be written. Care should be taken when writing to this bit as it should only be changed to RESET USB endpoint 0. | |||
| 0 | FLUSH | Flush FIFO. This bit is automatically cleared after the flush is performed. | |
| 0 | No effect | ||
| 1 | Flushes the next packet to be transmitted/read from the endpoint 0 FIFO. The FIFO pointer is reset and the TXRDY/RXRDY bit is cleared. | ||
| Note: This bit should only be set when TXRDY/RXRDY is set. At other times, it may cause data to be corrupted. |
USBCSRH0 in Device mode is shown in Figure 23-36 and described in Table 23-38.
| 7 | 1 | 0 |
| Reserved | FLUSH | ||||||
| R-0 | R/W-0 |
| LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
| Bit | Field | Value | Description |
|---|---|---|---|
| 7-1 | Reserved | 0 | Reserved |
| 0 | FLUSH | Flush FIFO. This bit is automatically cleared after the flush is performed. | |
| 0 | No effect | ||
| 1 | Flushes the next packet to be transmitted/read from the endpoint 0 FIFO. The FIFO pointer is reset and the TXRDY/RXRDY bit is cleared. | ||
| Note: This bit should only be set when TXRDY/RXRDY is set. At other times, it may cause data to be corrupted. |