SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 1083

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
39.5.2.6
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
Address Setup
Figure 39-13. Endpoint Activation Algorithm
As long as the endpoint is not correctly configured (UOTGHS_HSTPIPISRx.CFGOK is zero),
the controller does not acknowledge the packets sent by the host to this endpoint.
The UOTGHS_HSTPIPISRx.CFGOK bit is set provided that the configured size and number of
banks are correct as compared to the endpoint maximal allowed values (see
1067) and to the maximal FIFO size (i.e. the DPRAM size).
See
The USB device address is set up according to the USB protocol.
Once the USB device address is configured, the controller filters the packets to only accept
those targeting the address stored in UOTGHS_DEVCTRL.UADD.
UOTGHS_DEVCTRL.UADD and UOTGHS_DEVCTRL.ADDEN shall not be written all at once.
UOTGHS_DEVCTRL.UADD and UOTGHS_DEVCTRL.ADDEN are cleared:
When UOTGHS_DEVCTRL.UADD or UOTGHS_DEVCTRL.ADDEN is cleared, the default
device address 0 is used.
• After all kinds of resets, the USB device address is 0.
• The host starts a SETUP transaction with a SET_ADDRESS (addr) request.
• The user writes this address to the USB Address (UOTGHS_DEVCTRL.UADD) field, and
• The user sends a zero-length IN packet from the control endpoint.
• The user enables the recorded USB device address by writing a one to
• on a hardware reset,
• when the UOTGHS is disabled (UOTGHS_CTRL.USBE written to zero),
• when a USB reset is detected.
writes a zero to the Address Enable (UOTGHS_DEVCTRL.ADDEN) bit, so the actual
address is still 0.
UOTGHS_DEVCTRL.ADDEN.
Section 39.5.1.6
UOTGHS_HSTPIPISRx.CFCFGOK
UOTGHS_DEVEPT.EPENx = 1
UOTGHS_DEVEPTCFGx
Yes
Activation
Activated
Endpoint
Endpoint
.EPTYPE
.EPDIR
.EPSIZE
.EPBK
.ALLOC
for more details about DPRAM management.
== 1?
No
ERROR
Enable the endpoint.
Configure the endpoint:
Allocate the configured DPRAM banks.
Test if the endpoint configuration is correct.
-
-
-
-
type
direction
size
number of banks
Table 39-1 on page
SAM3X/A
SAM3X/A
1083
1083

Related parts for SAM3X8E