ATSTK526 Atmel, ATSTK526 Datasheet - Page 9

KIT STARTER FOR AT90USB82/162

ATSTK526

Manufacturer Part Number
ATSTK526
Description
KIT STARTER FOR AT90USB82/162
Manufacturer
Atmel
Series
AVR®r
Type
MCUr
Datasheets

Specifications of ATSTK526

Contents
Starter Kit Board, Power Supply, Cable and Software
Processor To Be Evaluated
AT90USB82/162
Data Bus Width
8 bit
Interface Type
RS-232, USB
Silicon Manufacturer
Atmel
Core Architecture
AVR
Silicon Core Number
AT90USB82, AT90USB162
Kit Contents
Board Docs
Rohs Compliant
Yes
For Use With/related Products
AT90USB162, AT90USB82
For Use With
ATSTK500 - PROGRAMMER AVR STARTER KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
6.3
7604C–AVR–07/08
How to manage the Remote Wake Up feature
The Remote Wake Up is an optional feature specified by the USB to allow the device to wake
the host up from a stand by mode (refer to the USB specification for further details). This request
is the only request which can be initiated by the device, but it has to be allowed by the host. The
host sends a Set Feature request to enable the Remote Wake Up feature just before sending
the suspend request. If the host did not send the Set Feature (RemoteWakeUpEnable), the
device is not allowed to perform this feature.
A USB device reports its ability to support remote wakeup in its configuration descriptor (refer
below to see how it is done with Atmel library). If a device supports remote wakeup, it must also
be allowed the capability to be enabled and disabled using the standard USB requests.
The configuration descriptor is defined in the usb_descriptors.h file as below:
To setup the Remote Wake Up feature, you have to modify the
If the device supports the Remote Wake Up feature, the user has to manage the
Set_Feature(DEVICE_REMOTE_WAKEUP) request using the void usb_set_feature(void).
Once the Set_Feature(DEVICE_REMOTE_WAKEUP) is well managed, you can use any button
(must be used in external interrupt/pin change mode) for example to wake up the host. To do
this, you have to take care of the following details:
is triggered (if enabled).
• First, the USB controller must have detected the “suspend” state of the line: the remote
• wake-up can only be sent when a SUSPI flag is set.
• The firmware has then the ability to set RMWKUP to send the “upstream resume” stream.
• This will automatically be done by the controller after 5ms of inactivity on the USB line.
• When the controller starts to send the “upstream resume”, the UPRSMI interrupt is triggered
• (if enabled). SUSPI is cleared by hardware.
• RMWKUP is cleared by hardware at the end of the “upstream resume”.
• If the controller detects a good “End Of Resume” signal from the host, an EORSMI interrupt
// HID Mouse CONFIGURATION
#define NB_INTERFACE
#define CONF_NB
#define CONF_INDEX
#define CONF_ATTRIBUTES
#define MAX_POWER
#define CONF_ATTRIBUTES
1
1
0
USB_CONFIG_BUSPOWERED
50
(USB_CONFIG_BUSPOWERED|USB_CONFIG_REMOTEWAKEUP)
// 100 mA
CONF_ATTRIBUTES as below:
AVR270
9

Related parts for ATSTK526