USBHS_HSTCTRL

Host General Control Register

  0x0400 32 Read/Write 0x00000000  

Host General Control Register

Bit  31 30 29 28 27 26 25 24  
                   
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
                   
Access                   
Reset                   
Bit  15 14 13 12 11 10 9 8  
      SPDCONF[1:0]   RESUME RESET SOFE  
Access                   
Reset      0 0   0 0 0  
Bit  7 6 5 4 3 2 1 0  
                   
Access                   
Reset                   

Bit 8 – SOFE: Start of Frame Generation Enable

Start of Frame Generation Enable

This bit is set when a USB reset is requested or an upstream resume interrupt is detected (USBHS_HSTISR.TXRSMI).

ValueDescription
0

Disables the SOF generation and leaves the USB bus in idle state.

1

Generates SOF on the USB bus in Full- or High-speed mode and sends “keep alive” signals in Low-speed mode.

Bit 9 – RESET: Send USB Reset

Send USB Reset

This bit is cleared when the USB Reset has been sent.

It may be useful to write a zero to this bit when a device disconnection is detected (USBHS_HSTISR.DDISCI = 1) whereas a USB Reset is being sent.

ValueDescription
0

No effect.

1

Generates a USB Reset on the USB bus.

Bit 10 – RESUME: Send USB Resume

Send USB Resume

This bit is cleared when the USB Resume has been sent or when a USB reset is requested.

This bit should be written to one only when the start of frame generation is enabled (SOFE = 1).

ValueDescription
0

No effect.

1

Generates a USB Resume on the USB bus.

Bits 13:12 – SPDCONF[1:0]: Mode Configuration

Mode Configuration

This field contains the host speed capability:.

ValueNameDescription
0 NORMAL

The host starts in Full-speed mode and performs a high-speed reset to switch to High-speed mode if the downstream peripheral is high-speed capable.

1 LOW_POWER

For a better consumption, if high speed is not needed.

2 HIGH_SPEED

Forced high speed.

3 FORCED_FS

The host remains in Full-speed mode whatever the peripheral speed capability.