ATmega645P Atmel Corporation, ATmega645P Datasheet
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega645P
Specifications of ATmega645P
Available stocks
Related parts for ATmega645P
ATmega645P Summary of contents
Page 1
... Internal SRAM • 1KBytes (ATmega165A/ATmega165PA) • 2KBytes (ATmega325A/ATmega325PA/ATmega3250A/ATmega3250PA) • 4KBytes (ATmega645A/ATmega645P/ATmega6450A/ATmega6450P) – Write/Erase cycles: 10,000 Flash/100,000 EEPROM – Data retention: 20 years at 85°C/100 years at 25°C – Optional Boot Code Section with Independent Lock Bits • In-System Programming by On-chip Boot Program • ...
Page 2
... ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 1. Pin Configurations 1.1 Pinout - TQFP and QFN/MLF Figure 1-1. 64A (TQFP)and 64M1 (QFN/MLF) Pinout ATmega165A/ATmega165PA/ATmega325A/ATmega325PA/ATmega645A/ATmega645P DNC 1 (RXD/PCINT0) PE0 2 (TXD/PCINT1) PE1 3 (XCK/AIN0/PCINT2) PE2 4 (AIN1/PCINT3) PE3 5 (USCK/SCL/PCINT4) PE4 6 (DI/SDA/PCINT5) PE5 7 (DO/PCINT6) PE6 8 (CLKO/PCINT7) PE7 9 (SS/PCINT8) PB0 10 (SCK/PCINT9) PB1 11 (MOSI/PCINT10) PB2 ...
Page 3
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 1.2 Pinout - 100A (TQFP) Figure 1-2. Pinout ATmega3250A/ATmega3250PA/ATmega6450A/ATmega6450P 1 DNC 2 (RXD/PCINT0) PE0 3 (TXD/PCINT1) PE1 4 (XCK/AIN0/PCINT2) PE2 (AIN1/PCINT3) PE3 5 6 (USCK/SCL/PCINT4) PE4 7 (DI/SDA/PCINT5) PE5 8 (DO/PCINT6) PE6 9 (CLKO/PCINT7) PE7 VCC 10 11 GND ...
Page 4
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 2. Overview The ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P is a low-power CMOS 8-bit microcon- troller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, this microcontroller achieves throughputs approaching 1 MIPS per MHz allowing the system ...
Page 5
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P The ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P provides the following features: 16K/32K/64K bytes of In-System Programmable Flash with Read-While-Write capabilities, 512/1K/2K bytes EEPROM, 1K/2K/4K byte SRAM, 54/69 general purpose I/O lines, 32 general purpose working registers, a JTAG interface for Boundary-scan, On-chip Debugging support ...
Page 6
... Comparison Between ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Table 2-1. Differences between: ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Device ATmega165A ATmega165PA ATmega325A ATmega325PA ATmega3250A ATmega3250PA ATmega645A ATmega645P ATmega6450A ATmega6450P 2.3 Pin Descriptions 2.3.1 VCC Digital supply voltage. 2.3.2 GND Ground. 2.3.3 Port A (PA7:PA0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port A output buffers have symmetrical drive characteristics with both high sink and source capability ...
Page 7
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 2.3.5 Port C (PC7:PC0) Port 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 ...
Page 8
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Port G also serves the functions of various special features of the ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P as listed on 84. 2.3.10 Port H (PH7:PH0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port ...
Page 9
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 3. Resources A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. 4. Data Retention Reliability Qualification results show that the projected data retention failure rate is much less than 1 PPM over ...
Page 10
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 7. Register Summary Note: Address Name Bit 7 Reserved (0xFF) Reserved (0xFE) Reserved (0xFD) Reserved (0xFC) Reserved (0xFB) Reserved (0xFA) Reserved (0xF9) Reserved (0xF8) Reserved (0xF7) Reserved (0xF6) Reserved (0xF5) Reserved (0xF4) Reserved (0xF3) Reserved (0xF2) Reserved (0xF1) Reserved ...
Page 11
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Address Name Bit 7 UBRR0L (0xC4) Reserved - (0xC3) UCSR0C - (0xC2) UCSR0B RXCIE0 (0xC1) UCSR0A RXC0 (0xC0) Reserved - (0xBF) Reserved - (0xBE) Reserved - (0xBD) Reserved - (0xBC) Reserved - (0xBB) USIDR (0xBA) USISR USISIF (0xB9) USICR ...
Page 12
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Address Name Bit 7 TCNT1H (0x85) TCNT1L (0x84) Reserved – (0x83) TCCR1C FOC1A (0x82) TCCR1B ICNC1 (0x81) TCCR1A COM1A1 (0x80) DIDR1 – (0x7F) DIDR0 ADC7D (0x7E) Reserved – (0x7D) ADMUX REFS1 (0x7C) ADCSRB – (0x7B) ADCSRA ADEN (0x7A) ADCH ...
Page 13
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Address Name Bit 7 TCNT0 0x26 (0x46) Reserved – 0x25 (0x45) TCCR0A FOC0A 0x24 (0x44) GTCCR TSM 0x23 (0x43) EEARH – 0x22 (0x42) EEARL 0x21 (0x41) EEDR 0x20 (0x40) EECR – 0x1F (0x3F) GPIOR0 0x1E (0x3E) EIMSK PCIE 0x1D ...
Page 14
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 8. Instruction Set Summary Mnemonics Operands ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add two Registers ADC Rd, Rr Add with Carry two Registers ADIW Rdl,K Add Immediate to Word SUB Rd, Rr Subtract two Registers SUBI Rd, K ...
Page 15
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Mnemonics Operands BRVC k Branch if Overflow Flag is Cleared BRIE k Branch if Interrupt Enabled BRID k Branch if Interrupt Disabled BIT AND BIT-TEST INSTRUCTIONS SBI P,b Set Bit in I/O Register CBI P,b Clear Bit in I/O ...
Page 16
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P Mnemonics Operands PUSH Rr Push Register on Stack POP Rd Pop Register from Stack MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break 8285DS–AVR–06/11 Description STACK ← ← STACK (see specific descr. for ...
Page 17
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9. Ordering Information 9.1 ATmega165A (3) Speed (MHz) Power Supply 16 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. ...
Page 18
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.2 ATmega165PA (3) Speed (MHz) Power Supply 16 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 19
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.3 ATmega325A (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 20
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.4 ATmega325PA (3) Speed (MHz) Power Supply 20 1.5 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 21
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.5 ATmega3250A (3) Speed (MHz) Power Supply 20 1.5 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 22
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.6 ATmega3250PA (3) Speed (MHz) Power Supply 20 1.5 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 23
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.7 ATmega645A (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 24
... Thin (1.0mm) Plastic Gull Wing Quad Flat Package (TQFP) 64-pad 1.0mm body, lead pitch 0.50mm, Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF) 64M1 8285DS–AVR–06/11 (2) Ordering Code Package ATmega645P-AU 64A (4) ATmega645P-AUR 64A ATmega645P-MU 64M1 (4) ATmega645P-MUR 64M1 326. Package Type (1) Operation Range Industrial 0°C to 85°C) (-4 24 ...
Page 25
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.9 ATmega6450A (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 26
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.10 ATmega6450P (3) Speed (MHz) Power Supply 20 1.8 - 5.5V Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging, ...
Page 27
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 10. Packaging Information 10.1 64A PIN 1 PIN 0°~7° 0°~7° Notes: Notes: 1.This package conforms to JEDEC reference MS-026, Variation AEB. 1.This package conforms to JEDEC reference MS-026, Variation AEB. 2. Dimensions D1 and ...
Page 28
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 10.2 64M1 D Marked Pin Marked Pin TOP VIEW TOP VIEW BOTTOM VIEW BOTTOM VIEW Notes: Notes: 1. JEDEC Standard MO-220, (SAW Singulation) Fig. ...
Page 29
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 10.3 64MC Pin TOP VIEW eT/2 A26 B23 A25 B22 D2 B16 A18 B15 A17 L E2 BOTTOM VIEW Note: 1. The terminal # Laser-marked Feature. Package Drawing Contact: packagedrawings@atmel.com 8285DS–AVR–06/ ...
Page 30
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 10.4 100A PIN 0°~7° L Notes: 1. This package conforms to JEDEC reference MS-026, Variation AED. 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0.25 mm per side. Dimensions D1 and ...
Page 31
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 11. Errata 11.1 ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Rev known errata. 11.2 ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Rev Not sampled. 8285DS–AVR–06/11 31 ...
Page 32
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 12. Datasheet Revision History Please note that the referring page numbers in this section are referring to this document. The referring revisions in this section are referring to the document revision. 12.1 8285D – 06/11 1. 12.2 8285C – ...
Page 33
... Atmel , Atmel logo and combinations thereof, AVR marks of Atmel Corporation or its subsidiaries. Windows other countries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL ...