|
ATMEGA8U2_14 Datasheet, PDF (210/310 Pages) ATMEL Corporation – 125 Powerful Instructions – Most Single Clock Cycle Execution | |||
|
◁ |
ATmega8U2/16U2/32U2
⢠Bits 7:3 â Res: Reserved
These bits are reserved and will always read as zero.
⢠Bit 2 â RSTCPU: USB Reset CPU Bit
Writing this bit to one allows the CPU controller to reset the CPU when a USB bus reset condi-
tion is detected. When this mode is activated, the next USB bus reset event allows to reset the
CPU and all peripherals except the USB controller. This mode allows to perform a software
reset, but keep the USB device attached to the bus.
This bit is reset when the USB controller is disabled or when writing this bit to zero by firmware.
Writing this bit to zero makes the CPU system reset independent from the USB bus reset event.
⢠Bit 1 â RMWKUP: Remote Wake-up Bit
Writing this bit to one allows the USB controller to generate an âupstream-resumeâ packet on the
USB bus. This bit is immediately cleared by hardware and can not be read back to one. Writing
this bit to zero has no effect.
See âRemote Wake-upâ on page 201 for more details.
⢠Bit 0 â DETACH: Detach Bit
Writing this bit to one (default value) disables the USB D+ internal pull-up. This makes the USB
device controller physically âdetachedâ from the USB bus. Writing this bit to zero enables the D+
internal pull-up and physically connects the USB device controller to the USB bus. See âDetachâ
on page 200 for more details.
21.18.2 UDINT â USB Device Interrupt Register
Bit
7
(0xE1)
-
Read/Write
R
Initial Value
0
6
UPRSMI
R/W
0
5
EORSMI
R/W
0
4
WAKEUPI
R/W
0
3
EORSTI
R/W
0
2
SOFI
R/W
0
1
0
-
SUSPI
UDINT
R
R/W
0
0
⢠Bit 7 â Res: Reserved
This bit is reserved and should always read as zero.
⢠Bit 6 â UPRSMI: Upstream Resume Interrupt Flag
This flag is set by hardware when the USB controller has successfully sent the Upstream
Resume sequence (See description of âBit 1 â RMWKUP: Remote Wake-up Bitâ on page 210). If
UPRSME is set, the UPRSMI flag can generate a âUSB general interruptâ. Writing this bit to zero
acknowledges the interrupt source (USB clocks must be enabled before). Writing this bit to one
has no effect.
⢠Bit 5 â EORSMI: End Of Resume Interrupt Flag
This flag is set by hardware when the USB controller detects an End Of Resume sequence on
the USB initiated by the host. If the EORSME bit is set, the EORSMI flag can generate a âUSB
general interruptâ. Writing this bit to zero acknowledges the interrupt source (USB clocks must
be enabled before). Writing this bit to one has no effect.
7799DâAVRâ11/10
210
|
▷ |