ATmega162

Manufacturer Part NumberATmega162
ManufacturerAtmel Corporation
ATmega162 datasheets
 


Specifications of ATmega162

Flash (kbytes)16 KbytesPin Count44
Max. Operating Frequency16 MHzCpu8-bit AVR
# Of Touch Channels16Hardware Qtouch AcquisitionNo
Max I/o Pins35Ext Interrupts3
Usb SpeedNoUsb InterfaceNo
Spi1Uart2
Graphic LcdNoVideo DecoderNo
Camera InterfaceNoAnalog Comparators1
Resistive Touch ScreenNoTemp. SensorNo
Crypto EngineNoSram (kbytes)1
Eeprom (bytes)512Self Program MemoryYES
Dram MemoryNoNand InterfaceNo
PicopowerNoTemp. Range (deg C)-40 to 85
I/o Supply Class1.8 to 5.5Operating Voltage (vcc)1.8 to 5.5
FpuNoMpu / Mmuno / no
Timers4Output Compare Channels6
Input Capture Channels2Pwm Channels6
32khz RtcYesCalibrated Rc OscillatorYes
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 10
11
12
13
14
15
16
17
18
19
20
21
22
Page 1/22

Download datasheet (560Kb)Embed
Next
Features
High-performance, Low-power AVR
Advanced RISC Architecture
– 131 Powerful Instructions – Most Single-clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-chip 2-cycle Multiplier
High Endurance Non-volatile Memory segments
– 16K Bytes of In-System Self-programmable Flash program memory
– 512 Bytes EEPROM
– 1K Bytes 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
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
– Up to 64K Bytes Optional External Memory Space
– Programming Lock for Software Security
JTAG (IEEE std. 1149.1 Compliant) Interface
– 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
Peripheral Features
– Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
– Two 16-bit Timer/Counters with Separate Prescalers, Compare Modes, and
Capture Modes
– Real Time Counter with Separate Oscillator
– Six PWM Channels
– Dual Programmable Serial USARTs
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
Special Microcontroller Features
– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated RC Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, Power-save, Power-down, Standby, and Extended Standby
I/O and Packages
– 35 Programmable I/O Lines
– 40-pin PDIP, 44-lead TQFP, and 44-pad MLF
Operating Voltages
– 1.8 - 5.5V for ATmega162V
– 2.7 - 5.5V for ATmega162
Speed Grades
– 0 - 8 MHz for ATmega162V (see
– 0 - 16 MHz for ATmega162 (see
®
8-bit Microcontroller
(1)
Figure 113 on page
266)
Figure 114 on page
266)
8-bit
Microcontroller
with 16K Bytes
In-System
Programmable
Flash
ATmega162
ATmega162V
Summary
2513KS–AVR–07/09

ATmega162 Summary of contents

  • Page 1

    ... PDIP, 44-lead TQFP, and 44-pad MLF • Operating Voltages – 1.8 - 5.5V for ATmega162V – 2.7 - 5.5V for ATmega162 • Speed Grades – MHz for ATmega162V (see – MHz for ATmega162 (see ® 8-bit Microcontroller (1) Figure 113 on page 266) Figure 114 on page 266) ...

  • Page 2

    ... Pin Figure 1. Pinout ATmega162 Configurations Disclaimer Typical values contained in this datasheet are based on simulations and characterization of other AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device is characterized. ATmega162/V 2 PDIP (OC0/T0) PB0 1 (OC2/T1) PB1 2 (RXD1/AIN0) PB2 ...

  • Page 3

    ... Overview The ATmega162 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 ATmega162 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. Block Diagram Figure 2 ...

  • Page 4

    ... Atmel ATmega162 is a powerful microcontroller that provides a highly flexi- ble and cost effective solution to many embedded control applications. The ATmega162 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 ...

  • Page 5

    ... When pins PA0 to PA7 are used as inputs and are externally pulled low, they will source current if the internal pull-up resistors are activated. The Port A pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port A also serves the functions of various special features of the ATmega162 as listed on 72. Port B (PB7..PB0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit) ...

  • Page 6

    ... As inputs, 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 ATmega162 as listed on 78. Port E(PE2..PE0) Port 3-bit bi-directional I/O port with internal pull-up resistors (selected for each bit) ...

  • Page 7

    ... A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. Note: 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. 2513KS–AVR–07/09 1. ATmega162/V 7 ...

  • Page 8

    ... Reserved – (0x66) Reserved – (0x65) Reserved – (0x64) Reserved – (0x63) Reserved – (0x62) Reserved – (0x61) CLKPR CLKPCE ATmega162/V 8 Bit 6 Bit 5 Bit 4 Bit 3 – – – – – – – – – – – – – – – ...

  • Page 9

    ... CAL6 CAL5 CAL4 CAL3 On-chip Debug Register USART1 I/O Data Register TXC1 UDRE1 FE1 DOR1 ATmega162/V Bit 2 Bit 1 Bit 0 – – – – SP10 SP9 SP8 SP2 SP1 SP0 UBRR1[11:8] UCSZ11 ...

  • Page 10

    ... Some of the Status Flags are cleared by writing a logical one to them. Note that the CBI and SBI instructions will operate on all bits in the I/O Register, writing a one back into any flag read as set, thus clearing the flag. The CBI and SBI instructions work with registers 0x00 to 0x1F only. ATmega162/V 10 Bit 6 ...

  • Page 11

    ... Branch if Half Carry Flag Cleared BRTS k Branch if T Flag Set BRTC k Branch if T Flag Cleared BRVS k Branch if Overflow Flag is Set BRVC k Branch if Overflow Flag is Cleared 2513KS–AVR–07/09 ATmega162/V Operation Rd ← Z,C,N,V,H Rd ← Z,C,N,V,H Rdh:Rdl ← Rdh:Rdl + K Z,C,N,V,S Rd ← Z,C,N,V,H Rd ← Z,C,N,V,H Rd ← Z,C,N,V,H Rd ← ...

  • Page 12

    ... Clear Signed Test Flag SEV Set Twos Complement Overflow. CLV Clear Twos Complement Overflow SET Set T in SREG CLT Clear T in SREG SEH Set Half Carry Flag in SREG ATmega162/V 12 Flags Operation then PC ← None then PC ← None Rd ← Rr None Rd+1:Rd ← Rr+1:Rr None Rd ← ...

  • Page 13

    ... Clear Half Carry Flag in SREG CLH MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break 2513KS–AVR–07/09 ATmega162/V Operation H ← None (see specific descr. for Sleep function) None (see specific descr. for WDR/Timer) None For On-chip Debug Only None Flags ...

  • Page 14

    ... Ordering Code Package ATmega162V-8AI 44A ATmega162V-8PI 40P6 ATmega162V-8MI 44M1 (2) ATmega162V-8AU 44A (2) ATmega162V-8PU 40P6 (2) ATmega162V-8MU 44M1 ATmega162-16AI 44A ATmega162-16PI 40P6 ATmega162-16MI 44M1 (2) ATmega162-16AU 44A (2) ATmega162-16PU 40P6 (2) ATmega162-16MU 44M1 Package Type (1) Operation Range Industrial 0°C to 85°C) (-4 Industrial 0°C to 85°C) (-4 2513KS–AVR–07/09 ...

  • Page 15

    ... Orchard Parkway San Jose, CA 95131 R 2513KS–AVR–07/09 B PIN 1 IDENTIFIER TITLE 44A, 44-lead Body Size, 1.0 mm Body Thickness, 0.8 mm Lead Pitch, Thin Profile Plastic Quad Flat Package (TQFP) ATmega162 COMMON DIMENSIONS (Unit of Measure = mm) SYMBOL MIN NOM MAX A – – 1.20 A1 0.05 – ...

  • Page 16

    ... SEATING PLANE Notes: 1. This package conforms to JEDEC reference MS-011, Variation AC. 2. Dimensions D and E1 do not include mold Flash or Protrusion. Mold Flash or Protrusion shall not exceed 0.25 mm (0.010"). 2325 Orchard Parkway San Jose, CA 95131 R ATmega162 PIN 0º ~ 15º ...

  • Page 17

    ... Pin #1 Chamfer (C 0.30) Option C Pin #1 Notch e (0.20 R) TITLE 44M1, 44-pad 1.0 mm Body, Lead Pitch 0.50 mm, 5.20 mm Exposed Pad, Thermally Enhanced Plastic Very Thin Quad Flat No Lead Package (VQFN) ATmega162/V SEATING PLANE SIDE VIEW COMMON DIMENSIONS (Unit of Measure = mm) SYMBOL MIN NOM MAX A ...

  • Page 18

    ... If the Device IDs of all devices in the boundary scan chain must be captured simultaneously (for instance if blind interrogation is used), the boundary scan chain can be connected in such way that the ATmega162 is the first device in the chain. Update-DR will still not work for the succeeding devices in the boundary scan chain as long as IDCODE is present in the JTAG Instruction Register, but the Device ID registered cannot be uploaded in any case ...

  • Page 19

    ... Characteristics” on page OH “Resources” on page 7. “Calibrated Internal RC Oscillator” on page Table 19 on page 50. “Serial Peripheral Interface – SPI” on page “Electrical Characteristics” on page 264 “Ordering Information” on page 14 Figure 1 on page 2. ATmega162/V 172. 35. 246. 34. 264. 38. 157. 195. 19 ...

  • Page 20

    ... Write During Power-down Sleep Mode” on page Table 18 on page 48, Table 20 on page 205, Table 109 on page 247, Table 112 on page “Absolute Maximum Frequency as a function of VCC, ATmega162” 266. “JTAG Interface and On-chip 50. regarding JTAGEN. page 207. 233. “Electrical Character- and “ ...

  • Page 21

    ... Removed Table 114, “External RC Oscillator, Typical Frequencies page 265. 17. Updated “Electrical Characteristics” on page 1. Changed the Endurance on the Flash to 10,000 Write/Erase Cycles. 1. Added information for ATmega162U. Information about ATmega162U included in “BODLEVEL Fuse Coding,” on page ATmega162/V 64, Figure 32 on page 68, and Figure 88 on page 264 ...

  • Page 22

    ... Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. © 2009 Atmel Corporation. All rights reserved. Atmel trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. International Atmel Asia Atmel Europe Unit 1-5 & ...