General Control Register
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
UIMOD | UID | ||||||||
Access | |||||||||
Reset | 1 | 1 |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
Access | |||||||||
Reset |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
USBE | FRZCLK | VBUSHWC | |||||||
Access | |||||||||
Reset | 0 | 1 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RDERRE | |||||||||
Access | |||||||||
Reset | 0 |
Remote Device Connection Error Interrupt Enable
Value | Description |
---|---|
0 | The Remote Device Connection Error Interrupt (USBHS_SR.RDERRI) is disabled. |
1 | The Remote Device Connection Error Interrupt (USBHS_SR.RDERRI) is enabled. |
VBUS Hardware Control
Must be set to ‘1’.
Value | Description |
---|---|
0 | The hardware control over the VBOF output pin is enabled. The USBHS resets the VBOF output pin when a VBUS problem occurs. |
1 | The hardware control over the VBOF output pin is disabled. |
0 | The hardware control over the PIO line is enabled. The USBHS resets the PIO output pin when a VBUS problem occurs. |
1 | The hardware control over the PIO line is disabled. |
Freeze USB Clock
This bit can be written even if USBE = 0. Disabling the USBHS (by writing a zero to the USBE bit) does not reset this bit, but it freezes the clock inputs whatever its value.
Value | Description |
---|---|
0 | The clock inputs are enabled. |
1 | The clock inputs are disabled (the resume detection is still active). This reduces the power consumption. Unless explicitly stated, all registers then become read-only. |
USBHS Enable
Writing a zero to this bit resets the USBHS, disables the USB transceiver, and disables the USBHS clock inputs. Unless explicitly stated, all registers then become read-only and are reset.
This bit can be written even if FRZCLK = 1
Value | Description |
---|---|
0 | The USBHS is disabled. |
1 | The USBHS is enabled. |
UID Pin Enable
Must be set to ‘0’.
USBHS Mode
0 (HOST): The module is in USB Host mode.
1 (DEVICE): The module is in USB Device mode.
This bit can be written even if USBE = 0 or FRZCLK = 1. Disabling the USBHS (by writing a zero to the USBE bit) does not reset this bit.