ATMEGA8L ATMEL [ATMEL Corporation], ATMEGA8L Datasheet - Page 121

no-image

ATMEGA8L

Manufacturer Part Number
ATMEGA8L
Description
8-bit AVR with 8K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA8L-6AU
Manufacturer:
ATMEL
Quantity:
675
Part Number:
ATMEGA8L-8AC
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA8L-8AI
Manufacturer:
MICROCHIP
Quantity:
1 292
Part Number:
ATMEGA8L-8AI
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA8L-8AI
Manufacturer:
ATMEL
Quantity:
8 000
Part Number:
ATMEGA8L-8AI
Manufacturer:
ALTERA
0
Part Number:
ATMEGA8L-8AJ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA8L-8AU
Manufacturer:
ATMEL
Quantity:
4 590
Part Number:
ATMEGA8L-8AU
Manufacturer:
Atmel
Quantity:
7 500
Part Number:
ATMEGA8L-8AU
Manufacturer:
ATMEL
Quantity:
591
Part Number:
ATMEGA8L-8AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATMEGA8L-8AU
Quantity:
7
Company:
Part Number:
ATMEGA8L-8AU
Quantity:
7
Timer/Counter Prescaler
Special Function IO Register –
SFIOR
2486M–AVR–12/03
Figure 56. Prescaler for Timer/Counter2
The clock source for Timer/Counter2 is named clk
the main system I/O clock clk
asynchronously clocked from the TOSC1 pin. This enables use of Timer/Counter2 as a
Real Time Counter (RTC). When AS2 is set, pins TOSC1 and TOSC2 are disconnected
from Port B. A crystal can then be connected between the TOSC1 and TOSC2 pins to
serve as an independent clock source for Timer/Counter2. The Oscillator is optimized
for use with a 32.768 kHz crystal. Applying an external clock source to TOSC1 is not
recommended.
For Timer/Counter2, the possible prescaled selections are: clk
clk
selected. Setting the PSR2 bit in SFIOR resets the prescaler. This allows the user to
operate with a predictable prescaler.
• Bit 1 – PSR2: Prescaler Reset Timer/Counter2
When this bit is written to one, the Timer/Counter2 prescaler will be reset. The bit will be
cleared by hardware after the operation is performed. Writing a zero to this bit will have
no effect. This bit will always be read as zero if Timer/Counter2 is clocked by the internal
CPU clock. If this bit is written when Timer/Counter2 is operating in Asynchronous
mode, the bit will remain one until the prescaler has been reset.
Bit
Read/Write
Initial Value
T2S
/128, clk
TOSC1
clk
PSR2
CS20
CS21
CS22
AS2
I/O
T2S
7
R
0
/256, and clk
R
6
0
clk
T2S
T2S
I/O
R
5
0
. By setting the AS2 bit in ASSR, Timer/Counter2 is
/1024. Additionally, clk
TIMER/COUNTER2 CLOCK SOURCE
Clear
R
4
0
0
ACME
10-BIT T/C PRESCALER
R/W
3
0
T2S
clk
T2
. clk
T2S
PUD
R/W
T2S
2
0
as well as 0 (stop) may be
is by default connected to
T2S
ATmega8(L)
PSR2
/8, clk
R/W
1
0
T2S
PSR10
R/W
/32, clk
0
0
SFIOR
T2S
/64,
121

Related parts for ATMEGA8L