38.7.1 General Control Register

Name: USBHS_CTRL
Offset: 0x0800
Reset: 0x03004000
Property: Read/Write

Bit 3130292827262524 
       UIMODUID 
Access R/WR/W 
Reset 11 
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 USBEFRZCLK     VBUSHWC 
Access R/WR/WR/W 
Reset 010 
Bit 76543210 
    RDERRE     
Access R/W 
Reset 0 

Bit 25 – UIMOD 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.

Bit 24 – UID UID Pin Enable

Must be set to ‘0’.

Bit 15 – USBE 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

ValueDescription
0

The USBHS is disabled.

1

The USBHS is enabled.

Bit 14 – FRZCLK 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.

ValueDescription
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.

Bit 8 – VBUSHWC VBUS Hardware Control

Must be set to ‘1’.

ValueDescription
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.

Bit 4 – RDERRE Remote Device Connection Error Interrupt Enable

ValueDescription
0

The Remote Device Connection Error Interrupt (USBHS_SR.RDERRI) is disabled.

1

The Remote Device Connection Error Interrupt (USBHS_SR.RDERRI) is enabled.