ATMEGA165A-MUR Atmel, ATMEGA165A-MUR Datasheet
![IC MCU AVR 16K 20MHZ 64VQFN](/photos/12/13/121326/313-64-qfn_sml.jpg)
ATMEGA165A-MUR
Specifications of ATMEGA165A-MUR
Related parts for ATMEGA165A-MUR
ATMEGA165A-MUR Summary of contents
Page 1
... EEPROM • 512Bytes (ATmega165A/ATmega165PA) • 1Kbytes (ATmega325A/ATmega325PA/ATmega3250A/ATmega3250PA) • 2Kbytes (ATmega645A/ATmega645P/ATmega6450A/ATmega6450P) – 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 • ...
Page 2
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 12 (MISO/PCINT11) PB3 ...
Page 3
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 DNC 12 13 (PCINT24) PJ0 14 (PCINT25) PJ1 15 DNC 16 DNC DNC 17 18 DNC ...
Page 4
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 designer to optimize power con- sumption versus processing speed. ...
Page 5
... Atmel devise is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. The ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P AVR is sup- ported with a full suite of program and system development tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits. ...
Page 6
... The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port B has better driving capabilities than the other ports. Port B also serves the functions of various special features of the ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P as listed on nate Functions of Port B” on page 8285BS–AVR–03/11 Flash ...
Page 7
... 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. Port E also serves the functions of various special features of the ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P as listed on nate Functions of Port E” on page 2.3.8 Port F (PF7:PF0) Port F serves as the analog inputs to the A/D Converter ...
Page 8
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 H output buffers have symmetrical drive characteristics with both high sink and source capability ...
Page 9
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 20 years at 85°C or 100 years at 25°C. ...
Page 10
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 6. 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 (0xF0) Reserved (0xEF) ...
Page 11
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 USISIE (0xB8) Reserved - (0xB7) ASSR - (0xB6) Reserved - (0xB5) Reserved ...
Page 12
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 (0x79) ADCL ...
Page 13
... When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these addresses. The ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P is a complex microcontroller with more periph- eral units than can be supported within the 64 location reserved in Opcode for the IN and OUT instructions. For the Extended I/O space from 0x60 - 0xFF in SRAM, only the ST/STS/STD and LD/LDS/LDD instructions can be used. 8285BS– ...
Page 14
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 7. 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 Subtract Constant from Register SBC Rd, Rr Subtract with Carry two Registers ...
Page 15
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 Register LSL Rd Logical Shift Left LSR Rd Logical Shift Right ROL ...
Page 16
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 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 8285BS–AVR–03/11 Description STACK ← ← STACK (see specific descr. for Sleep function) (see specific descr. for WDR/timer) ...
Page 17
... Staggered 1.0 mm body, 4.0 x 4.0mm Exposed Pad, Quad Flat No-Lead Package (QFN) 8285BS–AVR–03/11 (2) Ordering Code Package ATmega165A-AU 64A (4) ATmega165A-AUR 64A ATmega165A-MU 64M1 (4) ATmega165A-MUR 64M1 ATmega165A-MCH 64MC (4) ATmega165A-MCHR 64MC ATmega165A-AN 64A (4) ATmega165A-ANR 64A ATmega165A-MN 64M1 (4) ATmega165A-MNR 64M1 326 ...
Page 18
... For Speed vs see Figure 27-1 on page CC 4. Tape & Reel. 5. See Appendix A - ATmega165A/165PA/325P/3250P specification at 105°C. 64A 64-Lead, 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 64MC 64-lead (2-row Staggered ...
Page 19
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 20
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 21
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 22
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 23
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 24
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.8 ATmega645P (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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 25
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 26
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 8.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, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...
Page 27
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 9. Packaging Information 9.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 E1 do not include mold protrusion. Allowable 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0 ...
Page 28
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 9.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. 1, VMMD. 2. Dimension and tolerance conform to ASMEY14.5M-1994. 1. JEDEC Standard MO-220, (SAW Singulation) Fig. 1, VMMD. 2. Dimension and tolerance conform to ASMEY14.5M-1994. ...
Page 29
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 9.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 8285BS–AVR–03/ A34 B30 A1 B1 0.40 b R0. (0.18) REF B8 A9 (0.1) REF K TITLE 64MC, 64QFN (2-Row Staggered ...
Page 30
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 9.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 E1 are maximum plastic body size dimensions including mold mismatch. 3. Lead coplanarity is 0.08 mm maximum. ...
Page 31
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 10. Errata 10.1 ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Rev known errata. 10.2 ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P Rev Not sampled. 8285BS–AVR–03/11 31 ...
Page 32
... ATmega165A/165PA/325A/325PA/3250A/3250PA/6 11. 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. 11.1 8285B – 03/ 11.2 8285A – 09/ 8285BS–AVR–03/11 Updated the datasheet according to the Atmel new Brand Style Guide Updated “ ...
Page 33
... 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 TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ...