The timer/counter1 – tcnt1, Attiny15l – Rainbow Electronics ATtiny15L User Manual
Page 30
30
ATtiny15L
1187E–AVR–06/02
• Bits 3, 2, 1, 0 – CS13, CS12, CS11, CS10: Clock Select Bits 3, 2, 1, and 0
The Clock Select bits 3, 2, 1, and 0 define the prescaling source of Timer/Counter1.
The Stop condition provides a Timer Enable/Disable function. The prescaled CK modes
are scaled directly from the CK oscillator clock.
The Timer/Counter1 – TCNT1
This 8-bit register contains the value of Timer/Counter1.
Timer/Counter1 is implemented as an up-counter with read and write access. Due to
synchronization of the CPU and Timer/Counter1, data written into Timer/Counter1 is
delayed by one CPU clock cycle.
Table 11. Timer/Counter1 Prescale Select
CS13
CS12
CS11
CS10
Description
0
0
0
0
Timer/Counter1 is stopped.
0
0
0
1
CK*16 (=PCK)
0
0
1
0
CK*8 (=PCK/2)
0
0
1
1
CK*4 (=PCK/4)
0
1
0
0
CK*2 (=PCK/8)
0
1
0
1
CK
0
1
1
0
CK/2
0
1
1
1
CK/4
1
0
0
0
CK/8
1
0
0
1
CK/16
1
0
1
0
CK/32
1
0
1
1
CK/64
1
1
0
0
CK/128
1
1
0
1
CK/256
1
1
1
0
CK/512
1
1
1
1
CK/1024
Bit
7
6
5
4
3
2
1
0
$2F
MSB
LSB
TCNT1
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
- MAX5151 (16 pages)
- MAXQ3108 (64 pages)
- MAX5661 (39 pages)
- MAX6691 (7 pages)
- MAX5362 (12 pages)
- ADC10158 (26 pages)
- MAX8922L (14 pages)
- MAX8596Z (8 pages)
- MAX7491 (18 pages)
- MAX15040 (15 pages)
- MAX5177 (16 pages)
- ADC08138 (22 pages)
- MAX5961 (42 pages)
- T89C51RD2 (86 pages)
- MAX16055 (9 pages)
- MAX6659 (17 pages)
- ADC0820 (20 pages)
- MAX6678 (19 pages)
- MAX8884Z (15 pages)
- MAX16915 (9 pages)
- MAX8620 (18 pages)
- MAX5144 (12 pages)
- MAX6670 (8 pages)
- MAX8760 (39 pages)
- W78C32C (14 pages)
- MX7533 (8 pages)
- MAX8727 (13 pages)
- MAX9053 (15 pages)
- W78C54 (16 pages)
- MAX8614B (15 pages)
- W90N740 (219 pages)
- MAX6626 (13 pages)
- ADC10738 (30 pages)
- MAX17000 (31 pages)
- MAX5051 (21 pages)
- MAXQ1004 (18 pages)
- MAX6871 (51 pages)
- MX7847 (12 pages)
- MAX6608 (6 pages)
- MAX17083 (15 pages)
- MAX6641 (17 pages)
- MAX5251 (16 pages)
- MAX6338 (8 pages)
- MAX6690 (16 pages)
- MAX8668 (18 pages)