ATMEGA161L-4PC Atmel, ATMEGA161L-4PC Datasheet - Page 43

IC AVR MCU 16K LV 4MHZ COM 40DIP

ATMEGA161L-4PC

Manufacturer Part Number
ATMEGA161L-4PC
Description
IC AVR MCU 16K LV 4MHZ COM 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA161L-4PC

Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Connectivity
SPI, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
35
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
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
1228D–AVR–02/07
prescaling of 1 is used, and the compare register is set to C, the timer will count as fol-
lows if CTC0/CTC2 is set:
... | C-1 | C | 0 | 1 | ...
When the prescaler is set to divide by 8, the timer will count like this:
... | C-1, C-1, C-1, C-1, C-1, C-1, C-1, C-1 | C, C, C, C, C, C, C, C | 0, 0, 0, 0, 0, 0, 0, 0 |
1, 1, 1, ...
In PWM mode, this bit has a different function. If the CTC0 or CTC2 bit is cleared in
PWM mode, the Timer/Counter acts as an up/down counter. If the CTC0 or CTC2 bit is
set (one), the Timer/Counter wraps when it reaches $FF. Refer to page 44 for a detailed
description.
• Bits 2, 1, 0
The Clock Select bits 2, 1, and 0 define the prescaling source of Timer/Counter0 and
Timer/Counter2.
Table 10. Clock 0 Prescale Select
Table 11. Clock 2 Prescale Select
The Stop condition provides a Timer Enable/Disable function. The prescaled modes are
scaled directly from the CK Oscillator clock for Timer/Counter0 and PCK2 for
Timer/Counter2. If the external pin modes are used for Timer/Counter0, transitions on
PB0/(T0) will clock the counter even if the pin is configured as an output. This feature
can give the user software control of the counting.
CS02
CS22
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
CS01
CS21
CS02, CS01, CS00/CS22, CS21, CS20: Clock Select Bits 2, 1 and 0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
CS00
CS20
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Description
Stop, the Timer/Counter0 is stopped.
CK
CK/8
CK/64
CK/256
CK/1024
External Pin PB0(T0), falling edge
External Pin PB0(T0), rising edge
Description
Stop, the Timer/Counter2 is stopped.
PCK2
PCK2/8
PCK2/32
PCK2/64
PCK2/128
PCK2/256
PCK2/1024
ATmega161(L)
43

Related parts for ATMEGA161L-4PC