38.7.31 Host General Control Register

Name: USBHS_HSTCTRL
Offset: 0x0400
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
   SPDCONF[1:0] RESUMERESETSOFE 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 76543210 
          
Access  
Reset  

Bits 13:12 – SPDCONF[1:0] 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.

Bit 10 – 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.

Bit 9 – 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 8 – SOFE 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.