ATMEGA164A-PU Atmel, ATMEGA164A-PU Datasheet - Page 158

IC MCU AVR 16K 20MHZ 40PDIP

ATMEGA164A-PU

Manufacturer Part Number
ATMEGA164A-PU
Description
IC MCU AVR 16K 20MHZ 40PDIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA164A-PU

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
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)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Controller Family/series
Atmega
No. Of I/o's
32
Eeprom Memory Size
512Byte
Ram Memory Size
1KB
Cpu Speed
20MHz
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
164A/164PA/324A/324PA/644A/644PA/1284/1284P
Table 16-9.
CS22
0
1
1
1
1
If external pin modes are used for the Timer/Counter0, transitions on the T0 pin will clock the
counter even if the pin is configured as an output. This feature allows software control of the
counting.
16.11.3
TCNT2 – Timer/Counter Register
Bit
(0xB2)
Read/Write
Initial Value
The Timer/Counter Register gives direct access, both for read and write operations, to the
Timer/Counter unit 8-bit counter. Writing to the TCNT2 Register blocks (removes) the Compare
Match on the following timer clock. Modifying the counter (TCNT2) while the counter is running,
introduces a risk of missing a Compare Match between TCNT2 and the OCR2x Registers.
16.11.4
OCR2A – Output Compare Register A
Bit
(0xB3)
Read/Write
Initial Value
The Output Compare Register A contains an 8-bit value that is continuously compared with the
counter value (TCNT2). A match can be used to generate an Output Compare interrupt, or to
generate a waveform output on the OC2A pin.
16.11.5
OCR2B – Output Compare Register B
Bit
(0xB4)
Read/Write
Initial Value
The Output Compare Register B contains an 8-bit value that is continuously compared with the
counter value (TCNT2). A match can be used to generate an Output Compare interrupt, or to
generate a waveform output on the OC2B pin.
16.11.6
ASSR – Asynchronous Status Register
Bit
(0xB6)
Read/Write
Initial Value
8272A–AVR–01/10
Clock Select Bit Description
CS21
CS20
Description
1
1
clk
T2S
0
0
clk
T2S
0
1
clk
T2S
1
0
clk
T
2
1
1
clk
T
2
7
6
5
4
TCNT2[7:0]
R/W
R/W
R/W
R/W
0
0
0
0
7
6
5
4
OCR2A[7:0]
R/W
R/W
R/W
R/W
0
0
0
0
7
6
5
4
OCR2B[7:0]
R/W
R/W
R/W
R/W
0
0
0
0
7
6
5
4
EXCLK
AS2
TCN2UB
OCR2AUB
R
R/W
R/W
R
0
0
0
0
/32 (From prescaler)
/64 (From prescaler)
/128 (From prescaler)
/256 (From prescaler)
S
/1024 (From prescaler)
S
3
2
1
0
R/W
R/W
R/W
R/W
0
0
0
0
3
2
1
0
R/W
R/W
R/W
R/W
0
0
0
0
3
2
1
0
R/W
R/W
R/W
R/W
0
0
0
0
3
2
1
OCR2BUB
TCR2AUB
TCR2BUB
R
R
R
0
0
0
TCNT2
OCR2A
OCR2B
0
ASSR
R
0
158

Related parts for ATMEGA164A-PU