Yes
End of attached/
unattached handler
Attached/unattached
handler
DEVSTAT.ATT
No
The device can now be put in
deep sleep (LH clock can be
shutoff).
Inform application
that the device has
been connected to
a USB host or hub.
Inform application
that the device has
been disconnected
from a USB host
or hub.
Set IRQ_SRC.DS_CHG
to clear the interrupt.
Must be done prior to remove the
LH clock
=1
Set IRQ_SRC.DS_CHG
to clear the interrupt.
=1
= 0?
USB Device Controller
1628
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
Universal Serial Bus (USB)
29.3.17 Device States Attached/Unattached Handler
Device attached/unattached interrupts occur when the device detects that its VBUS has changed. System
software can disable the USB device controller clock after IRQ_SRC.DS_CHG is cleared after servicing
an unattached interrupt. Disabling the USB device controller clock before IRQ_SRC.DS_CHG is cleared
can result in improper functionality for future USB device controller interrupts (see
).
Figure 29-71. Attached/Unattached Handler