English
Language : 

ATMEGA8U2_14 Datasheet, PDF (197/310 Pages) ATMEL Corporation – 125 Powerful Instructions – Most Single Clock Cycle Execution
ATmega8U2/16U2/32U2
21. USB Device Operating modes
21.1 Overview
The USB device controller supports full speed data transfers. In addition to the default control
endpoint, it provides four other endpoints, which can be configured in control, bulk, interrupt or
isochronous modes:
• Endpoint 0:
• Endpoint 1 and 2:
• Endpoint 3 and 4:
Programmable size FIFO up to 64 bytes, default control endpoint
Programmable size FIFO up to 64 bytes.
Programmable size FIFO up to 64 bytes with ping-pong mode.
The controller starts in the “idle” mode. In this mode, the pad consumption is reduced to the
minimum.
21.2 Power-on and reset
The next diagram explains the USB device controller main states on power-on:
Figure 21-1. USB device controller states after reset
The reset state of the Device controller is:
• the macro clock is stopped in order to minimize the power consumption (FRZCLK set),
• the USB device controller internal state is reset (all the registers are reset to their default
value. Note that DETACH is set.)
• the endpoint banks are reset
• the D+ pull up are not activated (mode Detach)
The D+ pull-up will be activated as soon as the DETACH bit is cleared.
The macro is in the ‘Idle’ state after reset with a minimum power consumption and does not
need to have the PLL activated to enter in this state.
The USB device controller can at any time be reset by clearing USBE.
21.3
Endpoint reset
An endpoint can be reset at any time by setting in the UERST register the bit corresponding to
the endpoint (EPRSTx). This resets:
• the internal state machine on that endpoint,
7799D–AVR–11/10
197