SPRUHM9H October 2014 – May 2024 TMS320F28075 , TMS320F28075-Q1 , TMS320F28076
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 22-36 and described in Table 22-38.
| 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 22-37 and described in Table 22-39.
| 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. |