ATMEGA8A-MUR Atmel, ATMEGA8A-MUR Datasheet - Page 123

no-image

ATMEGA8A-MUR

Manufacturer Part Number
ATMEGA8A-MUR
Description
MCU AVR 8KB FLASH 16MHZ 32QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA8A-MUR

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
23
Program Memory Size
8KB (4K 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
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
17.11.2
17.11.3
17.11.4
8159D–AVR–02/11
TCNT2 – Timer/Counter Register
OCR2 – Output Compare Register
ASSR – Asynchronous Status Register
Table 17-6.
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 OCR2 Register.
The Output Compare Register 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 OC2 pin.
• Bit 3 – AS2: Asynchronous Timer/Counter2
When AS2 is written to zero, Timer/Counter 2 is clocked from the I/O clock, clk
written to one, Timer/Counter 2 is clocked from a crystal Oscillator connected to the Timer Oscil-
lator 1 (TOSC1) pin. When the value of AS2 is changed, the contents of TCNT2, OCR2, and
TCCR2 might be corrupted.
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
CS22
0
0
0
0
1
1
1
1
Clock Select Bit Description
CS21
R/W
R/W
R
7
0
7
0
7
0
0
0
1
1
0
0
1
1
R
6
0
R/W
R/W
6
0
6
0
CS20
0
1
0
1
0
1
0
1
R
5
0
R/W
R/W
5
0
5
0
Description
No clock source (Timer/Counter stopped).
clk
clk
clk
clk
clk
clk
clk
T2S
T2S
T2S
T2S
T2S
T
T
2
2
R
4
0
S
S
/256 (From prescaler)
/1024 (From prescaler)
/(No prescaling)
/8 (From prescaler)
/32 (From prescaler)
/64 (From prescaler)
/128 (From prescaler)
R/W
R/W
4
0
4
0
TCNT2[7:0]
OCR2[7:0]
R/W
AS2
3
0
R/W
R/W
3
0
3
0
TCN2UB
R
2
0
R/W
R/W
2
0
2
0
OCR2UB
R
1
0
R/W
R/W
1
0
1
0
ATmega8A
TCR2UB
R
0
0
R/W
R/W
I/O
0
0
0
0
. When AS2 is
TCNT2
ASSR
OCR2
123

Related parts for ATMEGA8A-MUR