Datasheet

219
XMEGA B [DATASHEET]
8291B–AVR–01/2013
Table 18-1. Transaction complete interrupt sources.
18.10.2 Bus Event Interrupt
The bus event (BUSEVENT) interrupt is used for all interrupts that signal various types of USB line events or error
conditions. These interrupts are related to the USB lines, and are generated for the USB module and per endpoint. The
following eight interrupts use the interrupt vector:
Table 18-2. Bus event interrupt source.
18.10.3 Events
The USB module can generate several events, and these are available to the event system, allowing latency-free
signaling to other peripherals or performance analysis of USB operation.
Table 18-3. Event sources.
18.11 VBUS Detection
Atmel AVR XMEGA devices can use any general purpose I/O pin to implement a VBUS detection function, and do not
use a dedicated VBUS detect pin.
Interrupt source Description
Transfer complete (TRNIF) An IN or OUT transaction is completed
Setup complete (SETUPIF) A SETUP transaction is completed
Interrupt source Description
Start of frame (SOFIF) A SOF token has been received
Suspend (SUSPENDIF) The bus has been idle for 3ms
Resume (RESUMEIF)
A non-idle state is detected when the bus is suspended.
The interrupt is asynchronous and can wake the device from all sleep modes
Reset (RSTIF) A reset condition has been detected on the bus
Isochronous CRC error (CRCIF)
A CRC or bit-stuff error has been detected in an incoming packet to an
isochronous endpoint
Underflow (UNFIF) An endpoint is unable to return data to the host
Overflow (OVFIF) An endpoint is unable to accept data from the host
STALL (STALLIF) A STALL handshake has been returned to the host
Event source Description
SETUP SETUPIF
Start of Frame SOFIF
CRC error CRCIF
Underflow/overflow UNFIF and OVFIF