AT90USB1286-16MU ATMEL [ATMEL Corporation], AT90USB1286-16MU Datasheet - Page 271

no-image

AT90USB1286-16MU

Manufacturer Part Number
AT90USB1286-16MU
Description
Microcontroller with 64/128K Bytes of ISP Flash and USB Controller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT90USB1286-16MU
Manufacturer:
ST
0
22.8
7593A–AVR–02/06
Address Setup
Figure 22-2. Endpoint activation flow:
As long as the endpoint is not correctly configured (CFGOK cleared), the hardware does not
acknowledge the packets sent by the host.
CFGOK is will not be sent if the Endpoint size parameter is bigger than the DPRAM size.
A clear of EPEN acts as an endpoint reset (see Section 22.4, page 270 for more details). It also
performs the next operation:
See Section 21.8, page 258 for more details about the memory allocation/reorganization.
The USB device address is set up according to the USB protocol:
ADDEN and UADD shall not be written at the same time.
UADD contains the default address 00h after a power-up or USB reset.
• The configuration of the endpoint is kept (EPSIZE, EPBK, ALLOC kept)
• It resets the data toggle field.
• The DPRAM memory associated to the endpoint is still reserved.
• the USB device, after power-up, responds at address 0
• the host sends a SETUP command (SET_ADDRESS(addr)),
• the firmware records that address in UADD, but keep ADDEN cleared,
• the USB device sends an IN command of 0 bytes (IN 0 Zero Length Packet),
• then, the firmware can enable the USB device address by setting ADDEN. The only accepted
address by the controller is the one stored in UADD.
Endpoint activated
Yes
UECFG0X
UECFG1X
CFGOK=1
Activation
Endpoint
EPEN=1
UENUM
EPNUM=x
EPTYPE
EPSIZE
ALLOC
EPDIR
EPBK
...
No
ERROR
Select the endpoint
Activate the endpoint
Configure:
Configure:
Allocation and reorganization of
the memory is made on-the-fly
Test the correct endpoint
configuration
- the endpoint direction
- the endpoint type
- the Not Yet Disable feature
- the endpoint size
- the bank parametrization
AT90USB64/128
271

Related parts for AT90USB1286-16MU