ATMEGA163L-4AC Atmel, ATMEGA163L-4AC Datasheet - Page 52

IC AVR MCU 16K A/D 2.7V 44TQFP

ATMEGA163L-4AC

Manufacturer Part Number
ATMEGA163L-4AC
Description
IC AVR MCU 16K A/D 2.7V 44TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA163L-4AC

Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Timer/Counter2 Control
Register – TCCR2
52
ATmega163(L)
clock period. The external clock signal is sampled on the rising edge of the internal CPU
clock.
This module features a high resolution and a high accuracy usage with the lower pres-
caling opportunities. Similarly, the high prescaling opportunities make this unit useful for
lower speed functions or exact timing functions with infrequent actions.
Timer/Counter2 can also be used as an 8-bit Pulse Width Modulator. In this mode,
Timer/Counter2 and the Output Compare Register serve as a glitch-free, stand-alone
PWM with centered pulses. Refer to page 57 for a detailed description on this function.
• Bit 7 – FOC2: Force Output Compare
Writing a logical one to this bit, forces a change in the Compare Match output pin PD7
(OC2) according to the values already set in COM21 and COM20. If the COM21 and
COM20 bits are written in the same cycle as FOC2, the new settings will not take effect
until next compare match or Forced Output Compare Match occurs. The Force Output
Compare bit can be used to change the output pin without waiting for a Compare Match
in the Timer. The automatic action programmed in COM21 and COM20 happens as if a
Compare Match had occurred, but no interrupt is generated, and the Timer/Counter will
not be cleared even if CTC2 is set. The corresponding I/O pin must be set as an output
pin for the FOC2 bit to have effect on the pin. The FOC2 bit will always be read as zero.
Setting the FOC2 bit has no effect in PWM mode.
• Bit 6 – PWM2: Pulse Width Modulator Enable
When set (one) this bit enables PWM mode for Timer/Counter2. This mode is described
on page 43.
• Bits 5, 4 – COM21, COM20: Compare Output Mode, Bits 1 and 0
The COM21 and COM20 control bits determine any output pin action following a Com-
pare Match in Timer/Counter2. Output pin actions affect pin PD7(OC2). This is an
alternative function to an I/O port, and the corresponding direction control bit must be
set (one) to control an output pin. The control configuration is shown in Table 19.
Table 19. Compare Mode Select
Note:
Bit
$25 ($45)
Read/Write
Initial Value
COM21
0
0
1
1
1. In PWM mode, these bits have a different function. Refer to Table 21 on page 55 for
a detailed description.
FOC2
R/W
7
0
COM20
0
1
0
1
PWM2
R/W
6
0
Description
Timer/Counter disconnected from output pin OC2
Toggle the OC2 output line.
Clear the OC2 output line (to zero).
Set the OC2 output line (to one).
COM21
R/W
5
0
(1)
COM20
R/W
4
0
CTC2
R/W
3
0
CS22
R/W
2
0
CS21
R/W
1
0
CS20
R/W
1142E–AVR–02/03
0
0
TCCR2

Related parts for ATMEGA163L-4AC