90
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
The Stop condition provides a Timer Enable/Disable function. The prescaled modes are
scaled directly from the CK oscillator clock for Timer/Counter0 and PCK2 for Timer/Counter2.
If the external pin modes are used for Timer/Counter0, transitions on PE0/(T0) will clock the
counter even if the pin is configured as an output. This feature can give the user SW control of
the counting.
Timer Counter0 – TCNT0
Timer/Counter2 – TCNT2
These 8-bit registers contain the value of the Timer/Counters.
Both Timer/Counters are realized as up or up/down (in PWM mode) counters with read and
write access. If the Timer/Counter is written to and a clock source is selected, it continues
counting in the timer clock cycle following the write operation.
Timer/Counter0 Output Compare Register – OCR0
Timer/Counter2 Output Compare Register – OCR2
Table 24.
Clock 2 Prescale Select
CS22
CS21
CS20
Description
0
0
0
Stop, the Timer/Counter2 is stopped
0
0
1
PCK2
0
1
0
PCK2/8
0
1
1
PCK2/32
1
0
0
PCK2/64
1
0
1
PCK2/128
1
1
0
PCK2/256
1
1
1
PCK2/1024
Bit
7
6
5
4
3
2
1
0
$32 ($52)
MSB
LSB
TCNT0
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
Bit
7
6
5
4
3
2
1
0
$23 ($43)
MSB
LSB
TCNT2
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
Bit
7
6
5
4
3
2
1
0
$31 ($51)
MSB
LSB
OCR0
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
Bit
7
6
5
4
3
2
1
0
$22 ($42)
MSB
LSB
OCR2
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