256
8331B–AVR–03/12
Atmel AVR XMEGA AU
• Bit 3 – BANK: Bank Select Flag
When ping-pong mode is enabled, this bit indicates which bank will be used for the next transac-
tion. BANK is toggled each time a transaction has completed successfully. This bit is not sed
when ping-pong is disabled. This flag is cleared by writing a one to its bit location.
• Bit 2 – BUSNACK1 : Data Buffer 1 Not Acknowledge Flag
When this flag is set, the USB module will discard incoming data to data buffer 1 in an OUT
transaction, and will not return any data from data buffer 1 in an IN transaction. For control, bulk,
and interrupt endpoints, a NAK handshake is returned. This flag is cleared by writing a one to its
bit location.
• Bit 1 – BUSNACK0 : Data Buffer 0 Not Acknowledge Flag
When this flag is set, the USB module will discard incoming data to data buffer 0 in an OUT
transaction, and will not return any data from data buffer 0 in an IN transaction. For control, bulk,
and interrupt endpoints, a NAK handshake is returned. This flag is cleared by writing a one to its
bit location.
• Bit 0 – TOGGLE : Data Toggle Flag
This indicates if a DATA0 or DATA1 PID is expected in the next data packet for an output end-
point, and if a DATA0 or DATA1 PID will be sent in the next transaction for an input endpoint.
This bit has no effect for isochronous endpoints, where both DATA0 and DATA1 PIDs are
accepted for output endpoint, and only DATA0 PIDs are sent for input endpoints.
20.14.2
CTRL – Control
Note:
1. For isochronous endpoints.
• Bit 7:6 – TYPE[1:0]: Endpoint Type
These bits are used to enable and select the endpoint type. If the endpoint is disabled, the
remaining seven endpoint configuration bytes are never read or written by the USB module, and
their SRAM locations are free to use for other application data.
• Bit 5 – MULTIPKT: Multipacket Transfer Enable
Setting this bit enables multipacket transfers. Multipacket transfer enables a data payload
exceeding the maximum packet size of an endpoint to be transferred as multiple packets without
Bit
7
6
5
4
3
2
1
0
TYPE[1:0]
MULTIPKT
PINGPONG
INTDSBL
STALL
SIZE[1:0]
CTRL
SIZE[2:0]
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Table 20-4.
Endpoint type.
TYPE[1:0]
Group Configuration
Description
00
DISABLE
Endpoint enabled
01
CONTROL
Control
10
BULK
Bulk/interrupt
11
ISOCHRONOUS
Isochronous