ATMEGA128A-AN Atmel, ATMEGA128A-AN Datasheet - Page 160

IC MCU AVR 128K FLASH 64TQFP

ATMEGA128A-AN

Manufacturer Part Number
ATMEGA128A-AN
Description
IC MCU AVR 128K FLASH 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA128A-AN

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP
Core
AVR8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA128A-AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA128A-ANR
Manufacturer:
Atmel
Quantity:
10 000
8151H–AVR–02/11
Table 17-2.
Note:
• Bit 5:4 – COM21:0: Compare Match Output Mode
These bits control the Output Compare Pin (OC2) behavior. If one or both of the COM21:0 bits
are set, the OC2 output overrides the normal port functionality of the I/O pin it is connected to.
However, note that the Data Direction Register (DDR) bit corresponding to the OC2 pin must be
set in order to enable the output driver.
When OC2 is connected to the pin, the function of the COM21:0 bits depends on the WGM21:0
bit setting.
normal or CTC mode (non-PWM).
Table 17-3.
Table 17-4
mode.
Table 17-4.
Note:
Mode
COM21
0
1
2
3
COM21
0
0
1
1
0
0
1
1
The CTC2 and PWM2 bit definition names are now obsolete. Use the WGM21:0 definitions. How-
ever, the functionality and location of these bits are compatible with previous versions of the timer.
1. A special case occurs when OCR2 equals TOP and COM21 is set. In this case, the compare
WGM21
Table 17-3
(CTC2)
match is ignored, but the set or clear is done at BOTTOM. See
for more details.
shows the COM21:0 bit functionality when the WGM21:0 bits are set to fast PWM
0
0
1
1
Waveform Generation Mode Bit Description
Compare Output Mode, Non-PWM Mode
Compare Output Mode, Fast PWM Mode
COM20
COM20
0
1
0
1
WGM20
(PWM2)
0
1
0
1
shows the COM21:0 bit functionality when the WGM21:0 bits are set to a
0
1
0
1
Description
Normal port operation, OC2 disconnected.
Reserved
Clear OC2 on compare match, set OC2 at BOTTOM,
(non-inverting mode)
Set OC2 on compare match, clear OC2 at BOTTOM,
(inverting mode)
Description
Normal port operation, OC2 disconnected.
Toggle OC2 on compare match
Clear OC2 on compare match
Set OC2 on compare match
Timer/Counter Mode of
Operation
Normal
PWM, Phase Correct
CTC
Fast PWM
(1)
TOP
0xFF
0xFF
OCR2
0xFF
“Fast PWM Mode” on page 154
Update of
OCR2 at
Immediate
TOP
Immediate
BOTTOM
ATmega128A
TOV2 Flag
Set on
MAX
BOTTOM
MAX
MAX
160

Related parts for ATMEGA128A-AN