SPRUHM9H October 2014 – May 2024 TMS320F28075 , TMS320F28075-Q1 , TMS320F28076
The USB transmit control and status endpoint n high 8-bit registers (USBTXCSRH[n]) provide additional control for transfers through the currently selected transmit endpoint.
| Mode(s): | Host | Device |
The USBTXCSRH[n] registers in Host Mode are shown in Figure 22-43 and described in Table 22-45.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| AUTOSET | Reserved | MODE | DMAEN | FDT | DMAMOD | DTWE | DT |
| R/W-0 | R-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 |
| LEGEND: R/W = Read/Write; -n = value after reset |
| Bit | Field | Value | Description |
|---|---|---|---|
| 7 | AUTOSET | Auto Set | |
| 0 | The TXRDY bit must be set manually. | ||
| 1 | Enables the TXRDY bit to be automatically set when data of the maximum packet size (value in USBTXMAXP[n]) is loaded into the transmit FIFO. If a packet of less than the maximum packet size is loaded, then the TXRDY bit must be set manually. | ||
| 6 | Reserved | 0 | Reserved. Any writes to these bit(s) must always have a value of 0. |
| 5 | MODE | Mode Note: This bit only has an effect when the same endpoint FIFO is used for both transmit and receive transactions. | |
| 0 | Enables the endpoint direction as RX. | ||
| 1 | Enables the endpoint direction as TX. | ||
| 4 | DMAEN | DMA Request Enable Note: Three TX and three /RX endpoints can be connected to the DMA module. If this bit is set for a particular endpoint, the DMAATX, DMABTX, or DMACTX field in the USB DMA Select (USBDMASEL) register must be programmed correspondingly. | |
| 0 | Disables the DMA request for the transmit endpoint. | ||
| 1 | Enables the DMA request for the transmit endpoint. | ||
| 3 | FDT | Force Data Toggle | |
| 0 | No effect | ||
| 1 | Forces the endpoint DT bit to switch and the data packet to be cleared from the FIFO, regardless of whether an ACK was received. | ||
| Note: This bit should only be set when the TXRDY bit is set. At other times, it may cause data to be corrupted. | |||
| 2 | DMAMOD | DMA Request Mode Note: This bit must not be cleared either before or in the same cycle as the above DMAEN bit is cleared. | |
| 0 | An interrupt is generated after every DMA packet transfer. | ||
| 1 | An interrupt is generated only after the entire DMA transfer is complete. | ||
| Note: This bit is valid only when the endpoint is operating in Bulk or Interrupt mode. | |||
| 1 | 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 transmit endpoint data to be written (see DT bit). | ||
| 0 | DT | Data Toggle. When read, this bit indicates the current state of the transmit endpoint data toggle. | |
| If DTWE is High, this bit can be written with the required setting of the data toggle. If DTWE is Low, any value written to this bit is ignored. Care should be taken when writing to this bit as it should only be changed to RESET the transmit endpoint. |
The USBTXCSRH[n] registers in Device Mode are shown in Figure 22-44 and described in Table 22-46.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| AUTOSET | Reserved | MODE | DMAEN | FDT | DMAMOD | Reserved | |
| R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R-0 | |
| LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
| Bit | Field | Value | Description |
|---|---|---|---|
| 7 | AUTOSET | Auto Set | |
| 0 | The TXRDY bit must be set manually. | ||
| 1 | Enables the TXRDY bit to be automatically set when data of the maximum packet size (value in USBTXMAXP[n]) is loaded into the transmit FIFO. If a packet of less than the maximum packet size is loaded, then the TXRDY bit must be set manually. | ||
| 6 | Reserved | Reserved. Should always have a value of 0. | |
| 5 | MODE | Mode Note: This bit only has an effect when the same endpoint FIFO is used for both transmit and receive transactions. | |
| 0 | Enables the endpoint direction as RX. | ||
| 1 | Enables the endpoint direction as TX. | ||
| 4 | DMAEN | DMA Request Enable Note: Three TX and three /RX endpoints can be connected to the DMA module. If this bit is set for a particular endpoint, the DMAATX, DMABTX, or DMACTX field in the USB DMA Select (USBDMASEL) register must be programmed correspondingly. | |
| 0 | Disables the DMA request for the transmit endpoint. | ||
| 1 | Enables the DMA request for the transmit endpoint. | ||
| 3 | FDT | Force Data Toggle | |
| 0 | No effect | ||
| 1 | Forces the endpoint DT bit to switch and the data packet to be cleared from the FIFO, regardless of whether an ACK was received. | ||
| 2 | DMAMOD | DMA Request Mode Note: This bit must not be cleared either before or in the same cycle as the above DMAEN bit is cleared. | |
| 0 | An interrupt is generated after every DMA packet transfer. | ||
| 1 | An interrupt is generated only after the entire DMA transfer is complete. | ||
| 0 | Reserved | 0 | Reserved |