3. Overview
The Atmel ATmega16M1/32M1/64M1 is a low-power CMOS 8-bit microcontroller based on the AVR
enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the
ATmega16M1/32M1/64M1 achieves throughputs approaching 1 MIPS per MHz allowing the system
designer to optimize power consumption versus processing speed.
3.1. Block diagram
Figure 3-1. Block diagram.
Fla s h progra m
me mory
Ins truction
regis te r
Ins truction
de coder
Program
counte r
Control line s
32 x 8
ge ne ra l
purpos e
regis tre rs
ALU
Sta tus
and control
I/O lines
EEP ROM
Data bus 8-bit
Data
SRAM
Direct addre s sing
Indire ct a ddre s s ing
Inte rrupt
unit
SP I
unit
Watchdog
time r
Four a na log
compa ra tors
DAC
ADC
MPS C
Time r 1
Time r 0
HW LIN/UART
CAN
Curre nt s ource
The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32
registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to
be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code
efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.
The Atmel ATmega16M1/32M1/64M1 provides the following features: 16/32/64Kbytes of In-System
Programmable Flash with Read-While-Write capabilities, 512B/1K/2Kbytes EEPROM, 1/2/4Kbytes
SRAM, 27 general purpose I/O lines, 32 general purpose working registers, one Motor Power Stage
Controller, two flexible Timer/Counters with compare modes and PWM, one UART with HW LIN, an 11-
channel 10-bit ADC with two differential input stages with programmable gain, a 10-bit DAC, a
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Summary-10/2016
10
programmable Watchdog Timer with Internal Individual Oscillator, an SPI serial port, an On-chip Debug
system and four software selectable power saving modes.
The Idle mode stops the CPU while allowing the SRAM, Timer/Counters, SPI ports, CAN, LIN/UART and
interrupt system to continue functioning. The Power-down mode saves the register contents but freezes
the Oscillator, disabling all other chip functions until the next interrupt or Hardware Reset. The ADC Noise
Reduction mode stops the CPU and all I/O modules except ADC, to minimize switching noise during ADC
conversions. In Standby mode, the Crystal/Resonator Oscillator is running while the rest of the device is
sleeping. This allows very fast start-up combined with low power consumption.
The device is manufactured using the Atmel high-density nonvolatile memory technology. The On-chip
ISP Flash allows the program memory to be reprogrammed in-system through an SPI serial interface, by
a conventional nonvolatile memory programmer, or by an On-chip Boot program running on the AVR
core. The boot program can use any interface to download the application program in the application
Flash memory. Software in the Boot Flash section will continue to run while the Application Flash section
is updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System
Self-Programmable Flash on a monolithic chip, the Atmel ATmega16M1/32M1/64M1 is a powerful
microcontroller that provides a highly flexible and cost effective solution to many embedded control
applications.
The Atmel ATmega16M1/32M1/64M1 AVR is supported with a full suite of program and system
development tools including: C compilers, macro assemblers, program debugger/simulators, in-circuit
emulators, and evaluation kits.
3.2. Pin descriptions
3.2.1. V
CC
Digital supply voltage.
3.2.2. GND
Ground.
3.2.3. Port B (PB7..PB0)
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
B pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port B also serves the functions of various special features of the ATmega16M1/32M1/64M1 as listed on
Alternate Functions of Port B. Refer to Alternate Functions of Port B for details.
3.2.4. Port C (PC7..PC0)
Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port C
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
C pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port C also serves the functions of special features of the ATmega16M1/32M1/64M1 as listed in Alternate
Functions of Port C. Refer to Alternate Functions of Port C for details.
3.2.5. Port D (PD7..PD0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Summary-10/2016
11
Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
D pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port D also serves the functions of various special features of the Atmel ATmega16M1/32M1/64M1 as
listed in Alternate Functions of Port D. Refer to Alternate Functions of Port D for details.
3.2.6. Port E (PE2..0) RESET/ XTAL1/XTAL2
Port E is an 3-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port E
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port E pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
E pins are tri-stated when a reset condition becomes active, even if the clock is not running.
If the RSTDISBL Fuse is programmed, PE0 is used as an I/O pin. Note that the electrical characteristics
of PE0 differ from those of the other pins of Port E.
If the RSTDISBL Fuse is unprogrammed, PE0 is used as a reset input. A low level on this pin for longer
than the minimum pulse length will generate a reset, even if the clock is not running. The minimum pulse
length is given in System and reset characteristics. Shorter pulses are not guaranteed to generate a
Reset.
Depending on the clock selection fuse settings, PE1 can be used as input to the inverting Oscillator
amplifier and input to the internal clock operating circuit.
Depending on the clock selection fuse settings, PE2 can be used as output from the inverting Oscillator
amplifier.
The various special features of Port E are elaborated in Alternate Functions of Port E.
3.2.7. AV
CC
AV
CC
is the supply voltage pin for the A/D Converter, D/A Converter, Current source. It should be
externally connected to V
CC
, even if the ADC, DAC are not used. If the ADC is used, it should be
connected to V
CC
through a low-pass filter.
3.2.8. AREF
This is the analog reference pin for the A/D Converter.
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Summary-10/2016
12

ATMEGA32M1-AU

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU 32KB FLASH 1KB EE 2KB SRAM 20 MHz 5V
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union