Datasheet
218
XMEGA B [DATASHEET]
8291B–AVR–01/2013
18.10 Interrupts and Events
The USB module can generate interrupts and events. The module has 10 interrupt sources. These are split between two
interrupt vectors, the transaction complete (TRNCOMPL) interrupt and the bus event (BUSEVENT) interrupt. An interrupt
group is enabled by setting its interrupt level (INTLVL), while different interrupt sources are enabled individually or in
groups.
Figure 18-12 on page 218 summarizes the interrupts and event sources for the USB module, and shows how they are
enabled.
Figure 18-12.Interrupts and events scheme summary.
18.10.1 Transaction Complete Interrupt
The transaction complete interrupt is generated per endpoint. When an interrupt occurs, the associated endpoint number
is registered and optionally added to the FIFO. The following two interrupt sources use the interrupt vector:
SOFIESUSPENDIF
RESUMEIF
RSTIF
CRCIF
UNFIF
OVFIF
STALLIF
BSEVIE
STALLIE
BUSSERRIE
SOFIF
SETUPIE
TRNIF
TRNIE
SETUPIF
Busevent
Interrupt request
Transaction Complete
Interrupt request