Datasheet
279
ATmega16U4/32U4 [DATASHEET]
Atmel-7766J-USB-ATmega16U4/32U4-Datasheet_04/2016
Figure 22-4. USB Device Controller Interrupt System
There are two kind of interrupts: processing (i.e. their generation are part of the normal processing) and
exception (errors).
Processing interrupts are generated when:
VBUS plug-in detection (insert, remove)(VBUSTI)
Upstream resume(UPRSMI)
End of resume(EORSMI)
Wake up(WAKEUPI)
End of reset (Speed Initialization)(EORSTI)
Start of frame(SOFI, if FNCERR=0)
Suspend detected after 3ms of inactivity(SUSPI)
Exception Interrupts are generated when:
CRC error in frame number of SOF(SOFI, FNCERR=1)
UPRSMI
UDINT.6
UPRSME
UDIEN.6
EORSMI
UDINT.5
EORSME
UDIEN.5
WAKEUPI
UDINT.4
WAKEUPE
UDIEN.4
EORSTI
UDINT.3
EORSTE
UDIEN.3
SOFI
UDINT.2
SOFE
UDIEN.2
SUSPI
UDINT.0
SUSPE
UDIEN.0
USB Device
Interrupt