ATmega32M1 Atmel Corporation, ATmega32M1 Datasheet - Page 295

no-image

ATmega32M1

Manufacturer Part Number
ATmega32M1
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega32M1

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
27
Ext Interrupts
27
Usb Speed
No
Usb Interface
No
Spi
1
Uart
1
Can
1
Lin
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
11
Adc Resolution (bits)
10
Adc Speed (ksps)
125
Analog Comparators
4
Resistive Touch Screen
No
Dac Channels
1
Dac Resolution (bits)
10
Temp. Sensor
Yes
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
2
Output Compare Channels
14
Input Capture Channels
1
Pwm Channels
10
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega32M1-15AD
Manufacturer:
ATMEL
Quantity:
1 448
Part Number:
ATmega32M1-15AD
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32M1-15AD
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega32M1-15AZ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32M1-AU
Manufacturer:
TYCO
Quantity:
210
Part Number:
ATmega32M1-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32M1-AUR
Manufacturer:
Atmel
Quantity:
10 000
27.9.4
8209D–AVR–11/10
Programming the Flash
The Flash is organized in pages, see
the program data is latched into a page buffer. This allows one page of program data to be pro-
grammed simultaneously. The following procedure describes how to program the entire Flash
memory:
A. Load Command “Write Flash”
B. Load Address Low byte
C. Load Data Low Byte
D. Load Data High Byte
E. Latch Data
F. Repeat B through E until the entire buffer is filled or until all data within the page is loaded.
While the lower bits in the address are mapped to words within the page, the higher bits address
the pages within the FLASH. This is illustrated in
eight bits are required to address words in the page (pagesize <256), the most significant bit(s)
in the address low byte are used to address the page when performing a Page Write.
G. Load Address High byte
H. Program Page
5. Give WR a negative pulse. This starts the Chip Erase. RDY/BSY goes low
6. Wait until RDY/BSY goes high before loading a new command
1. Set XA1, XA0 to “10”. This enables command loading
2. Set BS1 to “0”
3. Set DATA to “0001 0000”. This is the command for Write Flash
4. Give XTAL1 a positive pulse. This loads the command
1. Set XA1, XA0 to “00”. This enables address loading
2. Set BS1 to “0”. This selects low address
3. Set DATA = Address low byte (0x00 - 0xFF)
4. Give XTAL1 a positive pulse. This loads the address low byte
1. Set XA1, XA0 to “01”. This enables data loading
2. Set DATA = Data low byte (0x00 - 0xFF)
3. Give XTAL1 a positive pulse. This loads the data byte
1. Set BS1 to “1”. This selects high data byte
2. Set XA1, XA0 to “01”. This enables data loading
3. Set DATA = Data high byte (0x00 - 0xFF)
4. Give XTAL1 a positive pulse. This loads the data byte
1. Set BS1 to “1”. This selects high data byte
2. Give PAGEL a positive pulse. This latches the data bytes. See
1. Set XA1, XA0 to “00”. This enables address loading
2. Set BS1 to “1”. This selects high address
3. Set DATA = Address high byte (0x00 - 0xFF)
4. Give XTAL1 a positive pulse. This loads the address high byte
1. Give WR a negative pulse. This starts programming of the entire page of data.
2. Wait until RDY/BSY goes high (see
for signal waveforms
RDY/BSY goes low
Table 27-9 on page
Figure 27-3 on page 296
ATmega16M1/32M1/64M1
Figure 27-2 on page
291. When programming the Flash,
for signal waveforms)
Figure 27-3 on page 296
296. Note that if less than
295

Related parts for ATmega32M1