ATmega32U2 Atmel Corporation, ATmega32U2 Datasheet - Page 26
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega32U2
Manufacturer Part Number
ATmega32U2
Description
Manufacturer
Atmel Corporation
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
26
;*F************************************************************************
**
; NAME: wait_spmen
;--------------------------------------------------------------------------
--
; PARAMS:
;--------------------------------------------------------------------------
--
; PURPOSE:
;**************************************************************************
**
WAIT_SPMEN:
END
RCALL
MOV
LDI
OUT SPMCSR, R18 ; r18 decides function
SPM
RJMP
MOVR0, R18
INR18, SPMCSR
SBRC
RJMP
MOVR18, R0
RET
WAIT_SPMEN
R18,SPMEN
WAIT_SPMEN
WAIT_SPMEN
R0,R16
R18,((1<<BLBSET)|(1<<SPMEN))
none
Performs an active wait on SPME flag
; get SPMCR into r18
; Wait for SPMEN flag cleared
; write lockbits
; Wait for SPMEN flag cleared
; Wait for SPMEN flag cleared
7618C–AVR–07/08