atmega163l ATMEL Corporation, atmega163l Datasheet - Page 41

no-image

atmega163l

Manufacturer Part Number
atmega163l
Description
Atmega163 8-bit Avr Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega163l-4AI
Manufacturer:
ATMEL
Quantity:
984
Timer/Counter0 Control
Register – TCCR0
1142E–AVR–02/03
Figure 32. Timer/Counter0 Block Diagram
• Bits 7..3 – Res: Reserved Bits
These bits are reserved bits in the ATmega163 and always read as zero.
• Bits 2..0 – CS02, CS01, CS00: Clock Select0, Bit 2, 1, and 0
The Clock Select0 bits 2,1, and 0 define the prescaling source of Timer0.
Table 11. Clock0 Prescale Select
The Stop condition provides a Timer Enable/Disable function. The prescaled CK modes
are scaled directly from the CK Oscillator clock. If the external pin modes are used for
Timer/Counter0, transitions on PB0/(T0) will clock the counter even if the pin is config-
ured as an output. This feature can give the user SW control of the counting.
Bit
$33 ($53)
Read/Write
Initial Value
CS02
0
0
0
0
1
1
1
1
7
TIMER/COUNTER0
REGISTER (TIMSK)
TIMER INT. MASK
R
7
0
CS01
(TCNT0)
0
0
1
1
0
0
1
1
R
6
0
CS00
0
0
1
0
1
0
1
0
1
R
5
0
T/C0 OVER-
FLOW IRQ
Stop, Timer/Counter0 is stopped.
CK
CK/8
CK/64
CK/256
CK/1024
External Pin T0, falling edge
External Pin T0, rising edge
Description
T/C CLK SOURCE
REGISTER (TIFR)
TIMER INT. FLAG
R
4
0
R
3
0
CS02
R/W
2
0
ATmega163(L)
CONTROL
LOGIC
REGISTER (TCCR0)
CS01
R/W
T/C0 CONTROL
1
0
CS00
R/W
0
0
TCCR0
CK
41

Related parts for atmega163l