ATMEGA16U2-16AU Atmel, ATMEGA16U2-16AU Datasheet - Page 217

no-image

ATMEGA16U2-16AU

Manufacturer Part Number
ATMEGA16U2-16AU
Description
8-bit Microcontrollers - MCU 16K Flash
Manufacturer
Atmel
Datasheet

Specifications of ATMEGA16U2-16AU

Product Category
8-bit Microcontrollers - MCU
Rohs
yes
Core
AVR
Data Bus Width
8 bit
Program Memory Size
16 KB
Data Ram Size
1.25 KB
Data Rom Size
512 B
Program Memory Type
Flash
Factory Pack Quantity
1250
21.18.13 UESTA0X – USB Endpoint Status 0 Register
7799D–AVR–11/10
• Bit 7 – CFGOK: Configuration Status Flag
This flag bit is set by hardware when the selected endpoint size parameter (EPSIZE) and num-
ber of banks (EPBK) are correct compared to the max FIFO capacity. This bit is updated when
the bit ALLOC is set, if the USB controller can not allocate the correct amount of memory for the
selected endpoint, this flag bit will be cleared.
If this bit is cleared, the user should reprogram the UECFG1X register with correct EPSIZE and
EPBK values.
• Bit 6 – OVERFI: Overflow Error Interrupt Flag
This flag is set when an overflow error occurs for an isochronous endpoint.This OVERFI flag can
generate a “USB endpoint interrupt” if FLERRE bit is set. Writing this bit to zero acknowledges
the interrupt source (USB clocks must be enabled before). Writing this bit to one has no effect.
See
• Bit 5 – UNDERFI: Underflow Error Interrupt Flag
This flag is set when an underflow error occurs for an isochronous endpoint.This UNDERFI flag
can generate a “USB endpoint interrupt” if FLERRE bit is set. Writing this bit to zero acknowl-
edges the interrupt source (USB clocks must be enabled before). Writing this bit to one has no
effect.
See
• Bit 4 – Res: Reserved
This bit is reserved and will always read as zero.
• Bit 3:2 – DTSEQ[1:0]: Data Toggle Sequencing Flag
These flags are set by hardware to indicate the PID data of the current bank as shown in
21-5.
For OUT transfer, this value indicates the last data toggle received on the current bank. For IN
transfer, it indicates the Toggle that will be used for the next packet to be sent. This is not rela-
tive to the current bank.
Table 21-5.
Bit
(0xEE)
Read/Write
Initial Value
“Isochronous mode” on page 207
“Isochronous mode” on page 207
DTSEQ1
CFGOK
0
0
1
1
R
7
0
DTSEQ[1:0] Bits Settings
OVERFI
R/W
6
0
UNDERFI
DTSEQ1
R/W
5
0
0
1
0
1
for more details.
for more details.
R
4
0
-
PID DATA
DATA0
DATA1
Reserved.
ATmega8U2/16U2/32U2
R
3
0
DTSEQ1:0
R
2
0
R
1
NBUSYBK1:0
0
R
0
0
UESTA0X
Table
217

Related parts for ATMEGA16U2-16AU