Техническая Спецификация для Atmel Evaluation Kit for AT32uC3A0512, 32-Bit AVR Microcontroller Atmel ATEVK1105 ATEVK1105

Модели
ATEVK1105
Скачать
Страница из 826
513
AT32UC3A
for more details about DPRAM management.
30.7.2.6
Address Setup
The USB device address is set up according to the USB protocol:
•after all kinds of resets, the USB device address is 0;
•the host starts a SETUP transaction with a SET_ADDRESS(addr) request;
•the firmware records this address into the UADD bit-field, leaving the ADDEN bit cleared, so
the actual address is still 0;
•the firmware sends a zero-length IN packet from the control endpoint;
•the firmware enables the recorded USB device address by setting ADDEN.
Once the USB device address is configured, the controller filters the packets to only accept
those targeting the address stored in UADD.
UADD and ADDEN shall not be written all at once.
UADD and ADDEN are cleared by hardware:
•on a hardware reset;
•when the USB macro is disabled (USBE = 0);
•when a USB reset is detected.
When UADD or ADDEN is cleared, the default device address 0 is used.
30.7.2.7
Suspend and Wake-Up
When an idle USB bus state has been detected for 3 ms, the controller raises the Suspend inter-
rupt (SUSP). The firmware may then set the FRZCLK bit to reduce power consumption. The
MCU can also enter the Idle or Frozen sleep mode to lower again power consumption.
To recover from the Suspend mode, the firmware should wait for the Wake-Up interrupt
(WAKEUP), which is raised when a non-idle event is detected, then clear FRZCLK.
As the WAKEUP interrupt is raised when a non-idle event is detected, it can occur whether the
controller is in the Suspend mode or not. The SUSP and WAKEUP interrupts are thus indepen-
dent of each other except that one’s flag is cleared by hardware when the other is raised.
30.7.2.8
Detach
The reset value of the DETACH bit is 1.
It is possible to initiate a device re-enumeration simply by setting then clearing DETACH.
DETACH acts on the pull-up connections of the D+ and D- pads. See 
for further details.
30.7.2.9
Remote Wake-Up
The Remote Wake-Up request (also known as Upstream Resume) is the only one the device
may send on its own initiative, but the device should have beforehand been allowed to by a
DEVICE_REMOTE_WAKEUP request from the host.
• First, the USB controller must have detected a “Suspend” state on the bus, i.e. the Remote
Wake-Up request can only be sent after a SUSP interrupt has been raised.
32058K
AVR32-01/12