Figure 21-15. Pad behaviour
USBE=1
& DETACH=0
& suspend
Idle mode
USBE=0
| DETACH=1
| suspend
Active mode
The SUSPI flag indicated that a suspend state has been detected on the USB bus. This flag
automatically put the USB pad in Idle. The detection of a non-idle event sets the WAKEUPI flag
and wakes-up the USB pad.
Suspend detected = USB pad power down
Clear Suspend by software
SUSPI
WAKEUPI
Clear Resume by software
Resume = USB pad wake-up
PAD status
Power Down
Active
Active
Moreover, the pad can also be put in the “idle” mode if the DETACH bit is set. It come back in
the active mode when the DETACH bit is cleared.
21.10 OTG timers customizing
It is possible to refine some OTG timers thanks to the OTGTCON and OTGCON registers
• PAGE=00b: AWaitVrise time-out. [OTG] chapter 6.6.5.1
• VALUE=00bTime-out is set to 20 ms
• VALUE=01bTime-out is set to 50 ms
• VALUE=10bTime-out is set to 70ms
• VALUE=11bTime-out is set to 100 ms
• PAGE=01b: VbBusPulsing. [OTG] chapter 5.3.4
• VALUE=00bTime-out is set to 15 ms
260
AT90USB64/128
7593A–AVR–02/06