1.Pin configurations Figure 1-1. Atmel ATmega16M1/32M1/64M1 TQFP32/QFN32 (7mm × 7mm) package. ) INT5 C INT7 ) C ) 2-/P ) A P O /P M D) K INT6 5) LK C UT1 A C C /A /C O N1 T/O C UT0 B/S B/P P INT1 IN0 E S O M C C S /P C UT0 UT1 C /P S E S O O /A C C 2+ 7/P 4/R /INT3 6/P S S P M 4/P 7/P 6/INT2 /A INT1 INT2 INT8 INT1 A C C C C DC DC DC (P (P (P (P (A (A (A 0 0 7 (D2 D1 E C D0 B7 B6 B5 C P P P P P P P P 2 1 0 9 8 7 6 5 3 3 3 2 2 2 2 2 (P CINT18/P S CIN2/OC1A/MIS O_A) P D2 1 24 P B4 (AMP 0+/P CINT4) (P CINT19/TXD/TXLIN/OC0A/S S /MOS I_A) P D3 2 23 P B3 (AMP 0-/P CINT3) (P CINT9/P S CIN1/OC1B/S S _A) P C1 3 22 P C6 (ADC10/ACMP 1/P CINT14) VCC 4 21 AREF(IS RC) GND 5 20 AGND (P CINT10/T0/TXCAN) P C2 6 19 AVCC (P CINT11/T1/RXCAN/ICP 1B) P C3 7 18 P C5 (ADC9/ACMP 3/AMP 1+/P CINT13) (P CINT0/MIS O/P S COUT2A) P B0 8 17 P C4 (ADC8/ACMP N3/AMP 1-/P CINT12) 0 1 2 3 4 5 6 9 1 1 1 1 1 1 1 1 2 B1 E E D4 D5 D6 D7 B2 P P P P P P P P ) B) L1) L2) 1) 2) 3) _A K UT2 TA TA C INT2 INT2 O INT2 INT2 C C C 0/X /S C C /P S 0B/X /P C DC 1A 2/P 0/P N0 I/P P P P P S 5/O 6/A C M M M O C /INT0 C C /M LIN/I N2 (A /A INT2 INT2 X 2/A P C C M INT1 (P (P DC D/R C C X (A 5/INT1 (P 3/A 1/R DC DC (A DC (A 0/A INT2 C (P Atmel ATmega16M1/32M1/64M1 [DATASHEET] 4 Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Summary-10/2016 Document Outline Introduction Features Table of Contents 1. Pin configurations 1.1. Pin descriptions 2. Ordering Information 2.1. ATmega16M1 2.2. ATmega32M1 2.3. ATmega64M1 3. Overview 3.1. Block diagram 3.2. Pin descriptions 3.2.1. VCC 3.2.2. GND 3.2.3. Port B (PB7..PB0) 3.2.4. Port C (PC7..PC0) 3.2.5. Port D (PD7..PD0) 3.2.6. Port E (PE2..0) RESET/ XTAL1/XTAL2 3.2.7. AVCC 3.2.8. AREF 4. Resources 5. About code examples 6. Data retention 7. Packaging Information 7.1. 32-pin 32A 7.2. PV 32 QFN