USBHS_HSTPIPCFGx

Host Pipe x Configuration Register

For High-speed Bulk-out Pipe, see ”Host Pipe x Configuration Register (High-speed Bulk-out or High-speed Control Pipe)”.

  0x0500 + x*0x04 [x=0..9] 32 Read/Write 0   10 x

Host Pipe x Configuration Register

Bit  31 30 29 28 27 26 25 24  
  INTFRQ[7:0]  
Access                   
Reset  0 0 0 0 0 0 0 0  
Bit  23 22 21 20 19 18 17 16  
          PEPNUM[3:0]  
Access                   
Reset          0 0 0 0  
Bit  15 14 13 12 11 10 9 8  
      PTYPE[1:0]   AUTOSW PTOKEN[1:0]  
Access                   
Reset      0 0   0 0 0  
Bit  7 6 5 4 3 2 1 0  
    PSIZE[2:0] PBK[1:0] ALLOC    
Access                   
Reset    0 0 0 0 0 0    

Bit 1 – ALLOC: Pipe Memory Allocate

Pipe Memory Allocate

This bit is cleared when a USB Reset is requested.

Refer to ”DPRAM Management” for more details.

ValueDescription
0

Frees the pipe memory.

1

Allocates the pipe memory.

Bits 3:2 – PBK[1:0]: Pipe Banks

Pipe Banks

This field contains the number of banks for the pipe.

For control pipes, a single-bank pipe (0b00) should be selected.

This field is cleared upon sending a USB reset.

ValueNameDescription
0 1_BANK

Single-bank pipe

1 2_BANK

Double-bank pipe

2 3_BANK

Triple-bank pipe

3

Reserved

Bits 6:4 – PSIZE[2:0]: Pipe Size

Pipe Size

This field contains the size of each pipe bank.

This field is cleared upon sending a USB reset.

ValueNameDescription
0 8_BYTE

8 bytes

1 16_BYTE

16 bytes

2 32_BYTE

32 bytes

3 64_BYTE

64 bytes

4 128_BYTE

128 bytes

5 256_BYTE

256 bytes

6 512_BYTE

512 bytes

7 1024_BYTE

1024 bytes

Bits 9:8 – PTOKEN[1:0]: Pipe Token

Pipe Token

This field contains the pipe token.

ValueNameDescription
0 SETUP

SETUP

1 IN

IN

2 OUT

OUT

3

Reserved

Bit 10 – AUTOSW: Automatic Switch

Automatic Switch

This bit is cleared upon sending a USB reset.

ValueDescription
0

The automatic bank switching is disabled.

1

The automatic bank switching is enabled.

Bits 13:12 – PTYPE[1:0]: Pipe Type

Pipe Type

This field contains the pipe type.

This field is cleared upon sending a USB reset.

ValueNameDescription
0 CTRL

Control

1 ISO

Isochronous

2 BLK

Bulk

3 INTRPT

Interrupt

Bits 19:16 – PEPNUM[3:0]: Pipe Endpoint Number

Pipe Endpoint Number

This field contains the number of the endpoint targeted by the pipe. This value is from 0 to 10.

This field is cleared upon sending a USB reset.

Bits 31:24 – INTFRQ[7:0]: Pipe Interrupt Request Frequency

Pipe Interrupt Request Frequency

This field contains the maximum value in milliseconds of the polling period for an Interrupt Pipe.

This value has no effect for a non-Interrupt Pipe.

This field is cleared upon sending a USB reset.