ATMEGA64-16MJ Atmel, ATMEGA64-16MJ Datasheet - Page 157

no-image

ATMEGA64-16MJ

Manufacturer Part Number
ATMEGA64-16MJ
Description
IC MCU AVR 64K 5V 16MHZ 64-QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA64-16MJ

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
64KB (32K x 16)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-MLF®, 64-QFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
8-bit
Timer/Counter
Register
Description
TCCR2 –
Timer/Counter Control
Register
2490Q–AVR–06/10
Figure 71. Timer/Counter Timing Diagram, Clear Timer on Compare Match Mode, with Pres-
caler (f
• Bit 7 – FOC2: Force Output Compare
The FOC2 bit is only active when the WGM20 bit specifies a non-PWM mode. However, for
ensuring compatibility with future devices, this bit must be set to zero when TCCR2 is written
when operating in PWM mode. When writing a logical one to the FOC2 bit, an immediate Com-
pare Match is forced on the waveform generation unit. The OC2 output is changed according to
its COM21:0 bits setting. Note that the FOC2 bit is implemented as a strobe. Therefore it is the
value present in the COM21:0 bits that determines the effect of the forced compare.
A FOC2 strobe will not generate any interrupt, nor will it clear the timer in CTC mode using
OCR2 as TOP.
The FOC2 bit is always read as zero.
• Bit 6, 3 – WGM21:0: Waveform Generation Mode
These bits control the counting sequence of the counter, the source for the maximum (TOP)
counter value, and what type of waveform generation to be used. Modes of operation supported
by the Timer/Counter unit are: Normal mode, Clear Timer on Compare match (CTC) mode, and
two types of Pulse Width Modulation (PWM) modes. See
page
Bit
0x25 (0x45)
Read/Write
Initial Value
TCNTn
(clk
OCRn
151.
(CTC)
OCFn
clk
clk
clk_I/O
I/O
I/O
Tn
/8)
/8)
FOC2
W
7
0
WGM20
R/W
TOP - 1
6
0
COM21
R/W
5
0
COM20
R/W
4
0
TOP
WGM21
R/W
3
0
TOP
CS22
R/W
Table 64
2
0
BOTTOM
CS21
R/W
1
0
and
ATmega64(L)
“Modes of Operation” on
CS20
R/W
0
0
BOTTOM + 1
TCCR2
157

Related parts for ATMEGA64-16MJ