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

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.3
7799D–AVR–11/10
UDIEN – USB Device Interrupt Enable Register
• Bit 4 – WAKEUPI: Wake-up CPU Interrupt Flag
This flag is set by hardware when the USB controller detects a non-idle signal from the USB
lines. This WAKEUPI flag can generate a “USB general interrupt” if WAKEUPE bit is set. Writing
this bit to zero acknowledges the interrupt source. Writing this bit to one has no effect.Shall be
cleared by software. Setting by software has no effect.
See
• Bit 3 – EORSTI: End Of Reset Interrupt Flag
This flag is set by hardware when the USB controller detects an “End Of Reset” event on the
USB lines. has been detected by the USB controller. This EORSTI flag can generate a “USB
general interrupt” if EORSTE 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.
Shall be cleared by software. Setting by software has no effect.
• Bit 2 – SOFI: Start Of Frame Interrupt Flag
This flag is set by hardware when the USB controller detects a Start Of Frame PID (SOF) on the
USB lines. This SOFI flag can generate a “USB general interrupt” if SOFE 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.
• Bit 1 – Res: Reserved
This bit is reserved and will always read as zero.
• Bit 0 – SUSPI: Suspend Interrupt Flag
This flag is set by hardware when the USB controller detects a suspend state on the bus (idle
state for more than 3ms). This SUSPI flag can generate a USB general interrupt if SUSPE 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
The interrupt flag bits are set even if their corresponding ‘Enable’ bits is not set.
• Bit 7 – Res: Reserved
This bit is reserved and will always read as zero.
• Bit 6 – UPRSME: Upstream Resume Interrupt Enable Bit
Writing this bit to one enables interrupt on UPRSMI flag. An Upstream resume interrupt will be
generated only if the UPRSME bit is set to one, the Global Interrupt Flag in SREG is written to
one and the UPRSMI bit is set.
Bit
(0xE2)
Read/Write
Initial Value
“Suspend, Wake-up and Resume” on page 200
“Suspend, Wake-up and Resume” on page 200
R
7
0
-
UPRSME
R/W
6
0
EORSME
R/W
5
0
WAKEUPE
R/W
4
0
EORSTE
ATmega8U2/16U2/32U2
R/W
for more details.
for more details.
3
0
SOFE
R/W
2
0
R
1
0
-
SUSPE
R/W
0
0
UDIEN
211

Related parts for ATMEGA16U2-16AU