AT83EC5123 ATMEL Corporation, AT83EC5123 Datasheet - Page 74

no-image

AT83EC5123

Manufacturer Part Number
AT83EC5123
Description
(AT8xx512x) Smart Card Reader ICs
Manufacturer
ATMEL Corporation
Datasheet
Upstream Resume
Figure 41. Example of REMOTE WAKEUP Management
74
AT8xC5122/23
SET_FEATURE: DEVICE_REMOTE_WAKEUP
Detection of a SUSPEND state
upstream RESUME sent
A USB device can be allowed by the Host to send an upstream resume for Remote
Wake-up purpose.
W h e n
DEVICE_REMOTE_WAKEUP, the firmware should set to 1 the RMWUPE bit in the
USBCON register to enable this function. RMWUPE value should be 0 in the other
cases.
If the device is in SUSPEND mode, the USB controller can send an upstream resume by
clearing first the SPINT bit in the USBINT register and by setting then to 1 the SDRM-
WUP bit in the USBCON register. The USB controller sets to 1 the UPRSM bit in the
USBCON register. All clocks must be enabled first. The Remote Wake is sent only if the
USB bus was in Suspend state for at least 5 ms. When the upstream resume is com-
pleted, the UPRSM bit is reset to 0 by hardware. The firmware should then clear the
SDRMWUP bit.
UPRSM = 1
t h e
U S B
SPINT
UPRSM
c o n t r o l l e r
Suspend management
USB Controller Init
Clear SDRMWUP
Set SDMWUP
Set RMWUPE
Enable Clocks
Clear SPINT
r e c e i v e s
t h e
Need USB Resume
S E T _ F E A T U R E
4202B–SCR–07/03
r e q u e s t :

Related parts for AT83EC5123