ATmega32U2 Atmel Corporation, ATmega32U2 Datasheet - Page 24

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
24
;*F************************************************************************
**
; NAME: flash_read_sig
;--------------------------------------------------------------------------
--
; PARAMS:
; Return: R16: signature value
;--------------------------------------------------------------------------
--
; PURPOSE:
addr
; passed as argument (see product data sheet)
;**************************************************************************
**
flash_read_sig:
;*F************************************************************************
**
; NAME: flash_read_fuse
;--------------------------------------------------------------------------
--
; Return: R16: fuse value
;--------------------------------------------------------------------------
--
; PURPOSE: Read fuse byte. The fuse byte is elected through the address
passed
; as argument (See product datasheet for addr value)
;**************************************************************************
**
flash_read_fuse:
RCALL
MOV
MOV
OUT
LDI
OUT SPMCSR, R20; argument 2 decides function (r18)
LPM
MOV
RJMP
RCALL
MOV
MOV
OUT
LDI
OUT SPMCSR, R20; argument 2 decides function (r18)
LPM
MOV
WAIT_SPMEN
R31,R17
R30,R16
RAMPZ, R18
R20,$21
R16, R0
WAIT_SPMEN
WAIT_SPMEN
R31,R17
R30,R16
RAMPZ, R18
R20,$09
R16, R0
Read harware signature byte. THe byte is selected trought the
;Store program memory
;Store program memory
;Wait for SPMEN flag cleared
;move adress to z pointer (R31=ZH R30=ZL)
;(1<<SPMEN) | (1<<SIGRD))
;Wait for SPMEN flag cleared
;Wait for SPMEN flag cleared
;move adress to z pointer (R31=ZH R30=ZL)
;(1<<SPMEN) | (1<<BLBSET))
;Store return value (1byte->R16 register)
;Store return value (1byte->R16 register)
7618C–AVR–07/08

Related parts for ATmega32U2