– 131 Po we rful Instructions – Most Single-clock Cycle Execution
– 32 x 8 General Purpose Working Regi sters
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-chip 2-cycle Multiplier
• Non-volatile Program and Data Memories
– 16K Bytes of In-System Self-programmab le Flash
Endurance: 10,000 Write/Erase Cycles
– Optional Boot Code Section with Independent Lock Bits
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
– 512 Bytes EEPROM
Endurance: 100,000 Write/Erase Cycles
– 1K Bytes Internal SRAM
– 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 De bug Support
– Programming of Flas h, EEPROM, Fuses, and Lock Bits through the JTAG Interface
• Peripheral Features
– T w o 8-bit Timer/Counters with Separate Prescalers and Compare Modes
– T w o 16-bit Timer/Counters with Separate Prescaler s, 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 Comparat or
• Special Micro controller Features
– Powe r-on Reset and Programmable Brown-out Detection
– Internal Calibra ted RC Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, Power-save, Power-down, Standby, and Extended Standby
DisclaimerTypical values contained in thi s data sheet are based on s imulation s and cha racteriza-
tion of other AVR microcontrollers manufactured on the same process technology. Min
and Max va lu es w ill be av a ilable after the device is ch a r ac ter iz ed.
2
ATmega162/V
2513DS–AVR–04/03
Page 3
ATmega162/V
OverviewThe 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 DiagramFigure 2. Block Diagram
VCC
PA0 - PA7PC0 - PC7
PORTA DRIVERS/BUFFERS
PE0 - PE2
PORTE
DRIVERS/
BUFFERS
PORTC DRIVERS/BUFFERS
GND
PORTA DIGITAL INTERFACE
PROGRAM
COUNTER
PROGRAM
FLASH
INSTRUCTION
REGISTER
INSTRUCTION
DECODER
CONTROL
LINES
AVR CPU
PROGRAMMING
LOGIC
STACK
POINTER
SRAM
GENERAL
PURPOSE
REGISTERS
X
Y
Z
ALU
STATUS
REGISTER
SPI
PORTE
DIGITAL
INTERFACE
PORTC DIGITAL INTERFACE
INTERNAL
OSCILLATOR
WATCHDOG
TIMER
MCU CTRL.
& TIMING
INTERRUPT
UNIT
TIMERS/
COUNTERS
EEPROM
USART0
OSCILLATOR
INTERNAL
CALIBRATED
OSCILLATOR
OSCILLATOR
XTAL1
XTAL2
RESET
2513DS–AVR–04/03
+
-
PORTB DIGITAL INTERFACE
PORTB DRIVERS/BUFFERS
COMP.
INTERFACE
USART1
PORTD DIGITAL INTERFACE
PORTD DRIVERS/BUFFERS
PD0 - PD7PB0 - PB7
3
Page 4
The AVR core combines a rich instruction set with 32 general purpose working registers.
All the 32 re gist ers ar e d irect ly co nnec ted t o t he Ari thme tic Logi c Un it (A LU), allow ing
two independent registers to be accessed in one single instruction executed in one clock
cycle. The resulting architecture is more code efficient while achieving throughputs up to
ten times faster than conventional CISC microcontrollers.
The ATmega162 provides the following features: 16K bytes of In-System Programmable
Flash with Read-While-Write capabilities, 512 bytes EEPROM, 1K bytes SRAM, an
external memory interface, 35 general purpose I/O lines, 32 general purpose working
registers, a JTAG interface for Boundary-scan, On-chip Debugging support and programming, four flex ible Timer/Counters with com pare modes, internal and external
interrupts, two serial programmable USARTs, a programmable Watchdog Timer with
Internal Oscillator, an SPI serial port, and five software selectable power saving m odes.
The Idle mode stops the CPU whi le allowing the SRAM, Timer/Counters, SPI port, a nd
interrupt system to continue functioning. The Power-down mode saves the register contents but freezes t he Oscillat or, disabling all other chip funct ions until the n ext interrupt
or Hardware Reset. In Power-save m ode, the Asynchronous Timer continues to run,
allowing the user to maintain a timer base while the rest of the device is sleeping. In
Standby mode, the cr ystal/resonat or Oscillator is runnin g while the rest of the device is
sleeping. This allows very fast start-up combined with low-power consumption. In
Extended Standby mode, both the main Oscillator and the Asynchronous Timer continue to run.
The device is manufactured using Atmel’s high density non-volatile memory technology.
The On-chip ISP Flash allows the program memory to be reprogrammed In-System
through an SPI serial interface, by a convent ional non-volatil e memory progra mmer, or
by an On-chip Boot Program running on the AVR core. The Boot Program can use any
interface to download the Application Program in the Application Flash memory. Software in the Boot Flash s ection wil l continue to run while th e A pplication Flash sec tion is
updated, pro viding true Re ad-Whi le-Write operation . By co mbinin g an 8-bi t RISC CP U
with In-System Self-Programmable Flash on a monolithic chip, the Atmel ATmega162 is
a powerful microcontroller that provides a highly flexible and cost effective solution to
many embedded control applications .
ATmega161 and
ATmega162
Compatibility
4
ATmega162/V
The ATmega162 AVR is supported with a full suite of program and system development
tools i nclud ing: C comp ile rs, m acro a sse mbl ers, progra m de bugg er /simu lators , In -Circuit Emulators, and evaluation kits.
The ATmega162 is a hig hly complex m icrocontroller where t he number of I/O loca tions
supersedes the 64 I/O locations reserved in the AVR instruction set. To ensur e backward compatibility with the ATmega161, all I/O locations present in ATmega161 have
the sam e locat ions in A Tmega 162. So me addi tiona l I/O loca tions a re add ed in an
Extended I/O space starting from 0x60 to 0xFF, (i.e., in the ATmega1 62 internal RAM
space). Thes e locations can be reached by using LD/LDS/LDD and ST/STS/ STD
instructions only, not by using IN and OUT instructions. The relocation of the internal
RAM space may still be a problem for ATmega161 users. Also, the increased number of
Interrupt Vectors might be a problem if the code uses absolute addresses. To solve
these problems, an ATmega161 compatibility mode can be selected by programming
the fuse M161C. In this m ode, none o f the functions i n the Exte nded I/O sp ace are i n
use, so the internal RAM is located as in ATmega161. Also, the Extended Interrupt Vectors are re moved . The ATm ega16 2 is 1 00% pin compa tible wi th ATme ga1 61, an d can
replace the ATmega161 on current Printed Circuit Boards. However, t he location of
Fuse bits and the electrical characteristics differs between the two devices.
2513DS–AVR–04/03
Page 5
ATmega162/V
ATmega161 Compatibility
Mode
Programming the M161C will change the following functionality:
•The extended I/O map will be configured as internal RAM once the M161C Fuse is
programmed.
•The timed sequence for changing the Watchdog Time-out period is disabled. See
“Timed Sequences for Changing the Configuration of the Watchdog Timer” on page
54 for details.
•The double buffering of the USART Receive Registers is disabled. See “AVR
USART vs. AVR UART – Compatibility” on page 166 for details.
•Pin change interrupts are not supported (Contol Registers are located in Extended
I/O).
•One 16 bits Timer/Counter (Timer/Counter1) only. Timer/Counter3 is not accessible .
Note that the shared UBRRHI Register in ATmega161 is split into two separate registers
in ATmega 162, UBRR 0H and UB RR1H. The l ocation of th ese regist ers will not be
affected by the ATmega161 compatibility fuse.
Pin Descript i on s
VCCDigital supply voltage
GNDGround
Port A (PA7..PA0)Port A is an 8-bit bi-directional I/O port with internal pull -up resistors (sele cted for each
bit). The Port A output buffers have symmetrical drive characteristics with both high sink
and source capability. 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 f unctions of v ario us spec ial f eat ures of the ATmega162 as listed
on page 70.
Port B (PB7..P B0)Port B is an 8-bit bi-directional I/O port with internal pull -up resistors (sele cted for each
bit). The Port B output buffers have symmetrical drive characteristics with both high sink
and source capability. A s inputs, Port B pins that are externally pulled low will source
current if the pull-up resistors are activated. The Port B pins are tri-stated when a res et
condition becomes active, even if the clock is not running.
Port B also serves the f unctions of v ario us spec ial f eat ures of the ATmega162 as listed
on page 70.
Port C (PC7..P C0)Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected fo r each
bit). The Port C output buffers have symmetrical drive characteristics with both high sink
and source capability . As inputs, Port C pins that are externally pulled low will source
current if the pull-up resistors are activated. The Port C pins are tri-stated when a reset
condition becomes ac tive, even i f the clock is no t running . If the JTAG int erface is
enabled, the pul l-up resist ors on pins PC 7(TDI), PC 5(TMS) an d PC4(T CK) will be activated even if a Reset occurs.
Port C also serves the functions of the JTAG interface and other special features of the
ATmega162 as listed on page 73.
2513DS–AVR–04/03
5
Page 6
Port D (PD7..P D0)Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected fo r each
bit). The Port D output buffers have symmetrical drive characteristics with both high sink
and source capability . 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 f unc tions of various special features of t he A Tmega162 as listed
on page 76.
Port E(PE2..PE0)Port E is an 3-bit bi-directional I/O port with internal pull -up resistors (sele cted for each
bit). The Port E output buffers have symmetrical drive characteristics with both high sink
and source capability. A s 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 res et
condition becomes active, even if the clock is not running.
Port E also serves the f unctions of v ario us spec ial f eat ures of the ATmega162 as listed
on page 79.
RESET
XTAL1Input to the Inverting Oscillator am plif ier and input to th e internal clock operating circuit.
XTAL2Output from the Inve rting Oscillat o r a mplifier.
Reset input. A low le ve l on this pin for l onger than the minimum pul se length will generate a Reset, even if the clock is not running. The minimum pulse length is given in Table
18 on page 46. Shorter pulses are not guaranteed to generate a reset.
About Code Examples This documentation contains simple code examples that briefly show how to use various
parts of the device. These code examples assume that the part specific header file is
included before com pilation. Be aware t hat not all C com pile r vendors incl ude bi t definitions in the header files and inte rrupt hand ling in C is c ompiler de pendent . Please
confirm with the C compiler documentation for more details.
Notes: 1. When the OCDEN Fuse is unprogrammed, the OSCCAL Register is always accessed on this address. Refer to the debug-
ger specific documentation for details on how to use the OCDR Register.
2. Refer to the USART descript ion for details on ho w to access UBRRH and UCSRC.
3. For compatibility with future devices, reserved bits should be written to zero if accessed. Reser ved I/O memory addresses
should never be written.
4. Some of the Status Flags are cleared by writing a logical one to them. Note that the CBI and SBI in structions will oper ate 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.
2513DS–AVR–04/03
9
Page 10
Instruction Set Summary
Mnemonics
ARITHMETIC AND LOGIC INSTRUCTIONS
ADDRd, RrAdd two RegistersRd ← Rd + RrZ,C,N,V,H1
ADCRd, RrAdd with Carry two RegistersRd ← Rd + Rr + CZ,C,N,V,H1
ADIWRdl,KAdd Immediate to WordRdh:Rdl ← Rdh:Rdl + KZ,C,N,V,S2
SUBRd, RrSubtract two RegistersRd ← Rd - RrZ,C,N,V,H1
SUBIRd, KSubtract Constant from Register Rd ← Rd - KZ,C,N,V,H1
SBCRd, RrSu btract with Carry two RegistersRd ← Rd - Rr - CZ,C,N,V,H1
SBCIRd, KSubtract with Carry Constant from Reg.Rd ← Rd - K - CZ,C,N,V,H1
SBIWRdl,KSubtract Immediate from WordRdh:Rdl ← Rdh:Rdl - KZ,C,N,V,S2
ANDRd, RrLogical AND RegistersRd ← Rd • RrZ,N,V1
ANDIRd, KLogical AND Register and ConstantRd ← Rd • KZ,N,V1
ORRd, RrLogical OR RegistersRd ← Rd v RrZ,N,V1
ORIRd, KLogical OR Register and ConstantRd ← Rd v KZ,N,V1
EORRd, RrExclusive OR RegistersRd ← Rd ⊕ RrZ,N,V1
COMRdOne’s ComplementRd ← 0xFF − RdZ,C,N,V1
NEGRdTwo’s ComplementRd ← 0x00 − RdZ,C,N,V,H1
SBRRd,KSet Bit(s) in RegisterRd ← Rd v KZ,N,V1
CBRRd,KClear Bit(s) in RegisterRd ← Rd • (0xFF - K)Z,N,V1
INCRdIncrementRd ← Rd + 1Z,N,V1
DECRdDecrementRd ← Rd − 1 Z,N,V1
TSTRdTest for Zero or MinusRd ← Rd • Rd Z,N,V1
CLRRdClear RegisterRd ← Rd ⊕ RdZ,N,V1
SERRdSet RegisterRd ← 0xFFNone1
MULRd, RrMultiply UnsignedR1:R0 ← Rd x RrZ,C2
MULSRd, RrMultiply SignedR1:R0 ← Rd x RrZ,C2
MULSURd, RrMultiply Signed with UnsignedR1:R0 ← Rd x RrZ,C2
FMULRd, RrFractional Multiply UnsignedR1:R0 ← (Rd x Rr)
FMULSRd, RrFractional Multiply SignedR1:R0 ← (Rd x Rr) << 1Z,C2
FMULSURd, RrFractional Multiply Signed with UnsignedR1:R0 ← (Rd x Rr) << 1Z,C2
BRANCH INSTRUCTIONS
RJMPkRelative JumpPC ← PC + k + 1None2
IJMPIndirect Jump to (Z)PC ← Z None2
JMPkDirect JumpPC ← kNone3
RCALLkRelative Subroutine Call PC ← PC + k + 1None3
ICALLIndirect Call to (Z)PC ← ZNone3
CALLkDirect Subroutine Call PC ← kNone4
RETSubroutine ReturnPC ← STACKNone4
RETIInterrupt ReturnPC ← STACKI4
CPSERd,RrCompare, Skip if Equalif (Rd = Rr) PC ← PC + 2 or 3None1/2/3
CPRd,RrCompareRd − RrZ, N,V,C,H1
CPCRd,RrCompare with CarryRd − Rr − CZ, N,V,C,H1
CPIRd,KCompare Register with ImmediateRd − KZ, N,V,C,H1
SBRCRr, bSkip if Bit in Register Clearedif (Rr(b)=0) PC ← PC + 2 or 3 None1/2/3
SBRSRr, bSkip if Bit in Register is Setif (Rr(b)=1) PC ← PC + 2 or 3None1/2/3
SBICP, bSkip if Bit in I/O Register Clearedif (P(b)=0) PC ← PC + 2 or 3 None1/2/3
SBISP, bSkip if Bit in I/O Register is Setif (P(b)=1) PC ← PC + 2 or 3None1/2/3
BRBSs, kBranch if Status Flag Setif (SREG(s) = 1) then PC←PC+k + 1None1/2
BRBCs, kBranch if Status Flag Clearedif (SREG(s) = 0) then PC←PC+k + 1None1/2
BREQ kBranch if Equal if (Z = 1) then PC ← PC + k + 1None1/2
BRNE kBranch if Not Equalif (Z = 0) then PC ← PC + k + 1None1/2
BRCS kBranch if Carry Setif (C = 1) then PC ← PC + k + 1None1/2
BRCC kBranch if Carry Clearedif (C = 0) then PC ← PC + k + 1None1/2
BRSH kBranch if Same or Higher if (C = 0) then PC ← PC + k + 1None1/2
BRLO kBranch if Lowerif (C = 1) then PC ← PC + k + 1None1/2
BRMI kBranch if Minusif (N = 1) then PC ← PC + k + 1None1/2
BRPL kBranch if Plus if (N = 0) then PC ← PC + k + 1None1/2
BRGE kBranch if Greater or Equal, Signedif (N ⊕ V= 0) then PC ← PC + k + 1None1/2
BRLT kBranch if Less Than Zero, Signedif (N ⊕ V= 1) then PC ← PC + k + 1None1/2
BRHS kBranch if Half Carry Flag Setif (H = 1) then PC ← PC + k + 1None1/2
BRHC kBranch if Half Carry Flag Clearedif (H = 0) then PC ← PC + k + 1None1/2
BRTS kBranch if T Flag Setif (T = 1) then PC ← PC + k + 1None1/2
BRTC kBranch if T Flag Clearedif (T = 0) then PC ← PC + k + 1None1/2
BRVS kBranch if Overflow Flag is Setif (V = 1) then PC ← PC + k + 1None1/2
BRVC kBranch if Overflow Flag is Clearedif (V = 0) then PC ← PC + k + 1None1/2
OperandsDescriptionOperation
<< 1Z,C2
Flags#Clocks
10
ATmega162/V
2513DS–AVR–04/03
Page 11
ATmega162/V
Mnemonics
BRIE kBranch if Interrupt Enabledif ( I = 1) then PC ← PC + k + 1None1/2
BRID kBranch if Interrupt Disabledif ( I = 0) then PC ← PC + k + 1None1/2
DATA TRANSFER INSTRUCTIONS
MOVRd, RrMove Between RegistersRd ← RrNone1
MOVWRd, RrCopy Register Word
LDIRd, KLoad ImmediateRd ← KNone1
LDRd, XLoad IndirectRd ← (X)None2
LDRd, X+Load Indirect and Post-Inc.Rd ← (X), X ← X + 1None2
LDRd, - XLoad Indirect and Pre-Dec.X ← X - 1, Rd ← (X)None2
LDRd, YLoad IndirectRd ← (Y)None2
LDRd, Y+Load Indirect and Post-Inc.Rd ← (Y), Y ← Y + 1None2
LDRd, - YLoad Indirect and Pre-Dec.Y ← Y - 1, Rd ← (Y)None2
LDDRd,Y+qLoad Indirect with DisplacementRd ← (Y + q)None2
LDRd, ZLoad Indirect Rd ← (Z)None2
LDRd, Z+Load Indirect and Post-Inc.Rd ← (Z), Z ← Z+1None2
LDRd, -ZLoad Indirect and Pre-Dec.Z ← Z - 1, Rd ← (Z)None2
LDDRd, Z+qLoad Indirect with DisplacementRd ← (Z + q)None2
LDSRd, kLoad Direct from SRAMRd ← (k)None2
STX, RrStore Indirect(X) ← RrNone2
STX+, RrStore Indirect and Post-Inc.(X) ← Rr, X ← X + 1None2
ST- X, RrStore Indirect and Pre-Dec.X ← X - 1, (X) ← RrNone2
STY, RrStore Indirect(Y) ← RrNone2
STY+, RrStore Indirect and Post-Inc.(Y) ← Rr, Y ← Y + 1None2
ST- Y, RrStore Indirect and Pre-Dec.Y ← Y - 1, (Y) ← RrNone2
STDY+q,RrStore Indirect with Displacement(Y + q) ← RrNone2
STZ, RrStore Indirect(Z) ← RrNone2
STZ+, RrStore Indirect and Post-Inc.(Z) ← Rr, Z ← Z + 1None2
ST-Z, RrStore Indirect and Pre-Dec.Z ← Z - 1, (Z) ← RrNone2
STDZ+q,RrStore Indirect with Displacement(Z + q) ← RrNone2
STSk, RrStore Direct to SRAM(k) ← RrNone2
LPMLoad Program MemoryR0 ← (Z)None3
LPMRd, ZLoad Program MemoryRd ← (Z)None3
LPMRd, Z+Load Program Memory and Post-IncRd ← (Z), Z ← Z+1None3
SPMStore Program Memory(Z) ← R1:R0None-
INRd, PIn PortRd ← PNone1
OUTP, RrOut PortP ← RrNone1
PUSHRrPush Register on StackSTACK ← RrNone2
POPRdPop Register from StackRd ← STACKNone2
BIT AND BIT-TEST INSTRUCTIONS
SBIP,bSet Bit in I/O RegisterI/O(P,b) ← 1None2
CBIP,bClear Bit in I/O RegisterI/O(P,b) ← 0None2
LSLRdLogical Shift LeftRd(n+1) ← Rd(n), Rd(0) ← 0Z,C,N,V1
LSRRdLogical Shift RightRd(n) ← Rd(n+1), Rd(7) ← 0Z,C,N,V1
ROLRdRotate Left Through CarryRd(0)←C,Rd(n+1)← Rd(n),C←Rd(7)Z,C,N,V1
RORRdRotate Right Through CarryRd( 7)←C,Rd(n)← Rd(n+1),C←Rd(0)Z,C,N,V1
ASRRdArithmetic Shift RightRd(n) ← Rd(n+1), n=0..6Z,C,N,V1
SWAPRdSwap NibblesRd(3..0)←Rd(7..4),Rd(7..4)←Rd(3..0)None1
BSETsFlag SetSREG(s) ← 1SREG(s)1
BCLRsFlag ClearSREG(s) ← 0 SREG(s)1
BSTRr, bBit Store from Register to TT ← Rr(b)T1
BLDRd, bBit load from T to RegisterRd(b) ← TNone1
SECSet CarryC ← 1C1
CLCClear CarryC ← 0 C1
SENSet Negative FlagN ← 1N1
CLNClear Negative FlagN ← 0 N1
SEZSet Zero FlagZ ← 1Z1
CLZClear Zero FlagZ ← 0 Z1
SEIGlobal Interrupt EnableI ← 1I1
CLIGlobal Interrupt DisableI ← 0 I1
SESSet Signed Test FlagS ← 1S1
CLSClear Signed Test FlagS ← 0 S1
SEVSet Twos Complement Overflow.V ← 1V1
CLVClear Twos Complement OverflowV ← 0 V1
SETSet T in SREGT ← 1T1
CLTClear T in SREGT ← 0 T1
SEHSet Half Carry Fl ag in SREGH ← 1H1
OperandsDescriptionOperation
Rd+1:Rd ← Rr+1:Rr
Flags#Clocks
None1
2513DS–AVR–04/03
11
Page 12
Mnemonics
CLH
MCU CONTROL INSTRUCTIONS
NOPNo OperationNone1
SLEEPSleep(see specific descr. for Sleep function)None1
WDRWatchdog Reset(see specific descr. for WDR/Time r)None1
BREAKBreakFor On-chip Debug OnlyNoneN/A
OperandsDescriptionOperation
Clear Half Carry Flag in SREG
H ← 0 H1
Flags#Clocks
12
ATmega162/V
2513DS–AVR–04/03
Page 13
ATmega162/V
Ordering Information
Speed (MHz)Power SupplyOrdering CodePacka geOperat ion Range
(2)
8
(3)
16
Notes: 1. This device can also be supplied i n wafer form. Please contact your local Atmel sales office f or detailed ordering information
44A44-lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Pac kage (TQFP)
40P640-pin, 0.600” Wide, Plastic Dual Inline Package (PDIP)
44M144-pad, 7 x 7 x 1.0 mm body, lead pitch 0.50 mm, Micro Lead Fr ame Package (MLF)
2513DS–AVR–04/03
13
Page 14
Packaging Information
44A
PIN 1
B
PIN 1 IDENTIFIER
e
E1E
D1
D
C
0˚~7˚
A1
L
Notes:1. This package conforms to JEDEC reference MS-026, Variation ACB.
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.10 mm maximum.
A2A
SYMBOL
COMMON DIMENSIONS
(Unit of Measure = mm)
MIN
A––1.20
A10.05–0.15
A2 0.951.001.05
D11.7512.0012.25
D19.9010.0010.10Note 2
E11.7512.0012.25
E19.9010.0010.10Note 2
B 0.30–0.45
C0.09–0.20
L0.45– 0.75
e0.80 TYP
NOM
MAX
NOTE
14
2325 Orchard Parkway
R
San Jose, CA 95131
ATmega162/V
TITLE
44A, 44-lead, 10 x 10 mm Body Size, 1.0 mm Body Thickness,
0.8 mm Lead Pitch, Thin Profile Plastic Quad Flat Package (TQFP)
10/5/2001
DRAWING NO.
44A
2513DS–AVR–04/03
REV.
B
Page 15
40P6
PIN
1
E1
A1
B
REF
E
B1
C
L
SEATING PLANE
A
ATmega162/V
D
e
0º ~ 15º
eB
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").
44M1, 44-pad, 7 x 7 x 1.0 mm Body, Lead Pitch 0.50 mm
Micro Lead Frame Package (MLF)
DRAWING NO.
44M1
2513DS–AVR–04/03
01/15/03
REV.
C
Page 17
ATmega162/V
Data Sheet Change
Log for ATmega162
Changes from Rev.
2513A-05/02 to Rev.
2513B-09/02
Changes from Rev.
2513B-09/02 to Rev.
2513C-09/02
Changes from Rev.
2513C-09/02 to Rev.
2513D-04/03
Please note that the referring page numbers in this section are referred to this document. The referring revision in this section are referring to the document revision.
1. Added information for ATmega162U.
Information about ATmega162U included in “Features” on page 1, Table 19,
“BODLEVEL Fuse Coding,” on page 48, and “Ordering Information” on page 13.
1. Canged the Endurance on the Flash to 10,000 Write/Erase Cycles.
1. Updated the “Orderi ng Info rmatio n” on p age 13 and “Packaging Information”
on page 14.
2. Updated “Features” on page 1.
3. Added characterization plots under “ATmega162 Typical Characteristics –
Preliminary Data” on page 273.
4. Added Chip Erase as a first step under “Programm ing the Flash” on pag e 258
and “Programming the EEPROM” on page 260.
5. Changed CAL7, the highest bit in the OSCCAL Reg ister, to a reserved bit on
page 37 and in “Register Summary” on page 7.
6. Changed CPCE to CLKPCE on page 39.
7. Corrected code examples on page 53.
8. Corrected OCn waveforms in Figure 52 on page 118.
9. Various minor Timer1 corrections.
10. Added note under “Filling the Tem porary Bu ffe r (Page L oading)” o n p age 2 22
about writing to the EEPROM durin g an SPM Pa ge Lo ad.
11. Added section “EEPROM Write During Power-down Sleep Mode” on page 22.
12. Added inform ation about PWM sym metry for Timer0 on page 96 and T imer2
on page 145.
13. Updated Table 18 on page 46, Table 20 on page 48, Table 36 on page 75, Table
83 on page 20 3, Table 110 on page 245, Table 113 o n pag e 265, and Table 114
on page 266.
14. Added Figures for “Absolute Maximum Frequency as a function of VCC,
ATmega162” on page 264.
15. Updated Fig ure 29 on pa ge 62, Figure 32 o n page 66 , and Figure 88 on page
1150 East Ch eyenne M tn. B lvd.
Colorado Spr ings, CO 80 906
Tel: 1(719) 57 6-3300
Fax: 1(719) 540-1759
Biometrics/Imaging/Hi-Rel MPU/
High Speed Converters/RF Datacom
Avenue de R ocheplei ne
BP 123
38521 Saint- Egreve Cedex, France
Tel: (33) 4-76-58-30-00
Fax: (33) 4-7 6-58-3 4-80
e-mail
literature@at mel.com
Web Site
http://www.atmel.com
Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standard
warranty which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility for any
errors which may appear in this document , reserves the right to change devices or specifications detailed herein at any time without notice, and
does no t make any com mitment to u pdate the informat ion contai ned herei n. No licen ses to paten ts or othe r intellec tual proper ty of Atmel are
granted by th e Com pany in conn ecti on w ith t he sale of A tme l pr oduc ts, exp ressl y or by im pli catio n. Atme l’s pro duct s ar e no t aut hori zed for use
as critical components in life support devices or systems.