ATmega32U4 Atmel Corporation, ATmega32U4 Datasheet - Page 25
ATmega32U4
Manufacturer Part Number
ATmega32U4
Description
Manufacturer
Atmel Corporation
Specifications of ATmega32U4
Flash (kbytes)
32 Kbytes
Pin Count
44
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
14
Hardware Qtouch Acquisition
No
Max I/o Pins
26
Ext Interrupts
13
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
12
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
3.3
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
4
Output Compare Channels
12
Input Capture Channels
2
Pwm Channels
8
32khz Rtc
No
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATmega32U4-16AU
Manufacturer:
MAXIM
Quantity:
1 000
Company:
Part Number:
ATmega32U4-AU
Manufacturer:
FREESCALE
Quantity:
125
Company:
Part Number:
ATmega32U4-MUR
Manufacturer:
UCC
Quantity:
1 001
Part Number:
ATmega32U4RC-MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
7618C–AVR–07/08
/*F************************************************************************
**
* NAME: flash_fill_temp_buffer
*--------------------------------------------------------------------------
--
* PARAMS:
* data16 :
* address:
* return:
*--------------------------------------------------------------------------
--
* PURPOSE:
* This function allows to load a word in the temporary flash buffer.
*--------------------------------------------------------------------------
--
* EXAMPLE:
* fill_temp_buffer(data16, address);
*--------------------------------------------------------------------------
--
* NOTE:
* the first paramater used the registers R16, R17
* The second parameter used the registers R18, R19
***************************************************************************
**/
flash_fill_temp_buffer:
;*F************************************************************************
**
; NAME: lock_wr_bits
;--------------------------------------------------------------------------
--
; PARAMS:
;--------------------------------------------------------------------------
--
; PURPOSE:
;**************************************************************************
**
lock_wr_bits:
RJMP
MOV
MOV
MOV
MOV
LDI
OUT SPMCSR, R20; r18 decides function
SPM
RJMP
WAIT_SPMEN
WAIT_SPMEN
R31,R19
R30,R18
R0,R17
R1,R16
R20,(1<<SPMEN)
none
R16/R17: word to load in the temporary buffer.
R18/R19: address of the word.
R16: value to write
; Store program memory
;Wait for SPMEN flag cleared
;move adress to z pointer (R31=ZH R30=ZL)
;move data16 to reg 0 and 1
; Wait for SPMEN flag cleared
25