atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 290

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
23.11.2
23.12 CONTROL endpoint management
23.12.1
290
ATmega32U4
STALL handshake and Retry mechanism
Control Write
The Retry mechanism has priority over the STALL handshake. A STALL handshake is sent if the
STALLRQ request bit is set and if there is no retry required.
A SETUP request is always ACK’ed. When a new setup packet is received, the RXSTPI inter-
rupt is triggered (if enabled). The RXOUTI interrupt is not triggered.
The FIFOCON and RWAL fields are irrelevant with CONTROL endpoints. The firmware shall
thus never use them on that endpoints. When read, their value is always 0.
CONTROL endpoints are managed by the following bits:
The next figure shows a control write transaction. During the status stage, the controller will not
necessary send a NAK at the first IN token:
• RXSTPI is set when a new SETUP is received. It shall be cleared by firmware to
• RXOUTI is set when a new OUT data is received. It shall be cleared by firmware to
• TXINI is set when the bank is ready to accept a new IN packet. It shall be cleared by firmware
• If the firmware knows the exact number of descriptor bytes that must be read, it can then
• or it can read the bytes and poll NAKINI, which tells that all the bytes have been sent by the
acknowledge the packet and to clear the endpoint bank .
acknowledge the packet and to clear the endpoint bank .
to send the packet and to clear the endpoint bank .
anticipate on the status stage and send a ZLP for the next IN token,
host, and the transaction is now in the status stage.
USB line
RXSTPI
RXOUTI
TXINI
SETUP
SETUP
HW
SW
OUT
HW
SW
DATA
OUT
HW
SW
NAK
IN
STATUS
SW
7766A–AVR–03/08
IN

Related parts for atmega32u4-16mu