ATmega32U2 Atmel Corporation, ATmega32U2 Datasheet - Page 28

no-image

ATmega32U2

Manufacturer Part Number
ATmega32U2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega32U2

Flash (kbytes)
32 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
22
Ext Interrupts
20
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
2
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
5
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATMEGA32U2
Quantity:
20
Part Number:
ATmega32U2-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32U2-AUR
Manufacturer:
Atmel
Quantity:
10 000
8.2.2
8.2.2.1
8.2.2.2
7799D–AVR–11/10
USB
CPU Clock
External
Oscillator
RC oscillator
Clock switch Algorythm
Swith from external clock to RC clock
Switch from RC clock to external clock
non-Idle
Figure 8-3.
if (Usb_suspend_detected())
{
}
if (Usb_wake_up_detected())
{
}
Usb_ack_suspend();
Usb_freeze_clock();
Disable_pll();
Enable_RC_clock();
while (!RC_clock_ready());
Select_RC_clock();
Disable_external_clock();
Usb_ack_wake_up();
Enable_external_clock();
while (!External_clock_ready()); // while (CLKSTA.EXTON != 1);
Select_external_clock();
Enable_pll();
Disable_RC_clock();
while (!Pll_ready());
Usb_unfreeze_clock();
Ext
3ms
Idle
Example of clock switching with wake-up from Device
Watchdog wake-up
from power-down
(Suspend)
2 Upstream Resume from device
RC
// if (UDINT.SUSPI == 1)
// UDINT.SUSPI = 0;
// USBCON.FRZCLK = 1;
// PLLCSR.PLLE = 0;
// CLKSEL0.RCE = 1;
// while (CLKSTA.RCON != 1);
// CLKSEL0.CLKS = 0;
// CLKSEL0.EXTE = 0;
// if (UDINT.WAKEUPI == 1)
// UDINT.WAKEUPI = 0;
// CKSEL0.EXTE = 1;
// CLKSEL0.CLKS = 1;
// PLLCSR.PLLE = 1;
// CLKSEL0.RCE = 0;
// while (PLLCSR.PLOCK != 1);
// USBCON.FRZCLK = 0;
ATmega8U2/16U2/32U2
upstream-resume
2
non-Idle
Ext
28

Related parts for ATmega32U2