ATmega165PA Atmel Corporation, ATmega165PA Datasheet

no-image

ATmega165PA

Manufacturer Part Number
ATmega165PA
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega165PA

Flash (kbytes)
16 Kbytes
Pin Count
64
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
54
Ext Interrupts
17
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
4
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Features
Note:
High Performance, Low Power Atmel
Advanced RISC Architecture
High Endurance Non-volatile Memory segments
QTouch
JTAG (IEEE std. 1149.1 compliant) Interface
Peripheral Features
Special Microcontroller Features
I/O and Packages
Speed Grade:
Temperature range:
Ultra-Low Power Consumption (picoPower devices)
– 130 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16MIPS Throughput at 16MHz (ATmega165PA/645P)
– Up to 20MIPS Throughput at 20MHz
– On-Chip 2-cycle Multiplier
– In-System Self-programmable Flash Program Memory
– EEPROM
– Internal SRAM
– 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
– Programming Lock for Software Security
– Capacitive touch buttons, sliders and wheels
– QTouch and QMatrix acquisition
– Up to 64 sense channels
– Boundary-scan Capabilities According to the JTAG Standard
– Extensive On-chip Debug Support
– Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface
– Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
– Real Time Counter with Separate Oscillator
– Four PWM Channels
– 8-channel, 10-bit ADC
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Universal Serial Interface with Start Condition Detector
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
– Interrupt and Wake-up on Pin Change
– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and Standby
– 54/69 Programmable I/O Lines
– 64/100-lead TQFP, 64-pad QFN/MLF and 64-pad DRQFN
– ATmega 165A/165PA/645A/645P: 0 - 16MHz @ 1.8 - 5.5V
– ATmega325A/325PA/3250A/3250PA/6450A/6450P: 0 - 20MHz @ 1.8 - 5.5V
– -40°C to 85°C Industrial
– Active Mode:
– Power-down Mode: 0.1µA at 1.8V
– Power-save Mode: 0.6µA at 1.8V (Including 32kHz RTC
(ATmega165A/325A/325PA/645A/3250A/3250PA/6450A/6450P)
• 16KBytes (ATmega165A/ATmega165PA)
• 32KBytes (ATmega325A/ATmega325PA/ATmega3250A/ATmega3250PA)
• 64KBytes (ATmega645A/ATmega645P/ATmega6450A/ATmega6450P)
• 512Bytes (ATmega165A/ATmega165PA)
• 1Kbytes (ATmega325A/ATmega325PA/ATmega3250A/ATmega3250PA)
• 2Kbytes (ATmega645A/ATmega645P/ATmega6450A/ATmega6450P)
• 1KBytes (ATmega165A/ATmega165PA)
• 2KBytes (ATmega325A/ATmega325PA/ATmega3250A/ATmega3250PA)
• 4KBytes (ATmega645A/ATmega645P/ATmega6450A/ATmega6450P)
• In-System Programming by On-chip Boot Program
• True Read-While-Write Operation
• 1MHz, 1.8V: 215µA
• 32kHz, 1.8V: 8µA (including Oscillator)
1.
®
library support
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.
®
AVR
®
8-Bit Microcontroller
(1)
8-bit Atmel
Microcontroller
with 16/32/64K
Bytes In-System
Programmable
Flash
ATmega165A
ATmega165PA
ATmega325A
ATmega325PA
ATmega3250A
ATmega3250PA
ATmega645A
ATmega645P
ATmega6450A
ATmega6450P
Summary
Rev 8285DS–AVR–06/11

Related parts for ATmega165PA

ATmega165PA Summary of contents

Page 1

... Advanced RISC Architecture – 130 Powerful Instructions – Most Single Clock Cycle Execution – General Purpose Working Registers – Fully Static Operation – 16MIPS Throughput at 16MHz (ATmega165PA/645P) – 20MIPS Throughput at 20MHz (ATmega165A/325A/325PA/645A/3250A/3250PA/6450A/6450P) – On-Chip 2-cycle Multiplier • ...

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

... ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 2.2 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

... Staggered 1.0mm body, 4.0 x 4.0 mm Exposed Pad, Quad Flat No-Lead Package (QFN) 8285DS–AVR–06/11 (2) Ordering Code Package ATmega165PA-AU 64A (4) ATmega165PA-AUR 64A ATmega165PA-MU 64M1 (4) ATmega165PA-MUR 64M1 ATmega165PA-MCH 64MC (4) ATmega165PA-MCHR 64MC ATmega165PA-AN 64A (4) ATmega165PA-ANR 64A ATmega165PA-MN 64M1 (4) ATmega165PA-MNR 64M1 326. Package Type (1) Operation Range Industrial 0°C to 85°C) (-4 Extended (5) 0°C to 105°C) ...

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

ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P 9.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, ...

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 ...

Related keywords