Data Sheet

822
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
31.8.6 Host Registers - Pipe
31.8.6.1 Host Pipe n Configuration Register
Name:
PCFGn
Offset: 0x100 + (n x 0x20)
Reset: 0x0000
Property: Write-Protected
z Bits 7:6 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always write these bits to
zero when this register is written. These bits will always return zero when read.
z Bits 5:3 – PTYPE: Type of the Pipe
These bits contains the pipe type.
Theses bits are cleared upon sending a USB reset.
z Bit 2 – BK: Pipe Bank
0: A single bank is used for the pipe.
1: A dual bank is used for the pipe.
This bit selects the number of banks for the pipe.
For control endpoints writing a zero to this bit is required as only Bank0 is used for Setup/In/Out transactions.
This bit is cleared when a USB reset is sent.
Table 31-25. Bank
Bit76543210
PTYPE[2:0] BK PTOKEN[1:0]
Access R R R/W R/W R/W R/W R/W R/W
Reset00000000
Table 31-24. Type of the Pipe
PTYPE[2:0] Description
0x0 Pipe is disabled
0x1 Pipe is enabled and configured as CONTROL
0x2 Pipe is enabled and configured as ISO
0x3 Pipe is enabled and configured as BULK
0x4 Pipe is enabled and configured as INTERRUPT
0x5 Pipe is enabled and configured as EXTENDED
0x06-0x7 Reserved
BK
(1)
Description
0x0 Single-bank endpoint
0x1 Dual-bank endpoint