SPRUHM8K December 2013 – May 2024 TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
The USB general-purpose control and status register (USBGPCS) provides the state of the internal ID signal.
When the USB controller is used as either a dedicated Host or Device, the DEVMODOTG and DEVMOD bits in the USB General-Purpose Control and Status (USBGPCS) register should be used to connect the ID inputs to fixed levels internally. For proper self-powered Device operation, the VBUS value must be monitored to assure that if the Host removes VBUS, the self-powered Device disables the D+/D- pull-up resistors. This function can be accomplished by connecting a standard GPIO to VBUS.
Mode(s): | Host | Device |
USBGPCS is shown in Figure 23-65 and described in Table 23-69.
31 | 2 | 1 | 0 |
Reserved | DEVMODOTG | DEVMOD |
R-0 | R/W-0 | R/W-0 |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Bit | Field | Value | Description |
---|---|---|---|
31-2 | Reserved | 0 | Reserved. Reset is 0x0000.000. |
1 | DEVMODOTG | Enable Device Mode. This bit enables the DEVMOD bit to control the state of the internal ID signal in OTG mode. | |
0 | The mode is specified by the state of the internal ID signal. | ||
1 | This bit enables the DEVMOD bit to control the internal ID signal. | ||
0 | DEVMOD | Device Mode This bit specifies the state of the internal ID signal in Host mode and in OTG mode when the DEVMODOTG bit is set. In Device mode this bit is ignored (assumed set). | |
0 | Host mode | ||
1 | Device mode |