ATmega32 Atmel Corporation, ATmega32 Datasheet - Page 273
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega32
Manufacturer Part Number
ATmega32
Description
Manufacturer
Atmel Corporation
Specifications of ATmega32
Flash (kbytes)
32 Kbytes
Pin Count
44
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
32
Ext Interrupts
3
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
2
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
3
Output Compare Channels
4
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATmega32-16AC
Manufacturer:
COMPAL
Quantity:
500
Part Number:
ATmega32-16AU
Manufacturer:
ATMEL
Quantity:
20 000
Part Number:
ATmega32-16PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega32-16PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Table 115. SPI Serial Programming Instruction Set
Note:
2503Q–AVR–02/11
Instruction
Programming Enable
Chip Erase
Read Program Memory
Load Program Memory Page
Write Program Memory Page
Read EEPROM Memory
Write EEPROM Memory
Read Lock Bits
Write Lock Bits
Read Signature Byte
Write Fuse Bits
Write Fuse High Bits
Read Fuse Bits
Read Fuse High Bits
Read Calibration Byte
a = address high bits
b = address low bits
H = 0 – Low byte, 1 – High Byte
o = data out
i = data in
x = don’t care
1010 1100
1010 1100
0010 H000
0100 H000
0100 1100
1010 0000
1100 0000
0101 1000
1010 1100
0011 0000
1010 1100
1010 1100
0101 0000
0101 1000
0011 1000
Byte 1
0101 0011
100x xxxx
00aa aaaa
00xx xxxx
00aa aaaa
00xx xxaa
00xx xxaa
0000 0000
111x xxxx
00xx xxxx
1010 0000
1010 1000
0000 0000
0000 1000
xxxx xxxx
Byte 2
Instruction Format
xxxx xxxx
xxxx xxxx
bbbb bbbb
xxbb bbbb
bbxx xxxx
bbbb bbbb
bbbb bbbb
xxxx xxxx
xxxx xxxx
xxxx xxbb
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
0000 00bb
Byte 3
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
xxxx xxxx
oooo oooo
iiii iiii
xxoo oooo
11ii iiii
oooo oooo
iiii iiii
iiii iiii
oooo oooo
oooo oooo
oooo oooo
Byte 4
Operation
Enable SPI Serial Programming after
RESET goes low.
Chip Erase EEPROM and Flash.
Read H (high or low) data o from
Program memory at word address a:b.
Write H (high or low) data i to Program
Memory page at word address b. Data
low byte must be loaded before Data
high byte is applied within the same
address.
Write Program Memory Page at
address a:b.
Read data o from EEPROM memory at
address a:b.
Write data i to EEPROM memory at
address a:b.
Read Lock bits. “0” = programmed, “1”
= unprogrammed. See
page 256
Write Lock bits. Set bits = “0” to
program Lock bits. See
page 256
Read Signature Byte o at address b.
Set bits = “0” to program, “1” to
unprogram. See
258
Set bits = “0” to program, “1” to
unprogram. See
257
Read Fuse bits. “0” = programmed, “1”
= unprogrammed. See
page 258
Read Fuse high bits. “0” = pro-
grammed, “1” = unprogrammed. See
Table 104 on page 257
Read Calibration Byte o at address b
for details.
for details.
for details.
for details.
for details.
ATmega32(L)
Table 105 on page
Table 104 on page
Table 102 on
Table 105 on
Table 102 on
for details.
273