7.7
Operation of Counter Function
This section describes the operation of the counter function of the 8/16-bit timer/
counter.
Operation of Counter Function
In 8-bit mode
Figure 7.7-1 illustrates the settings required to operate timer 1 as a counter in 8-bit mode.
The operations of the counter function in 8-bit mode are the same as those of the interval timer
function (timer 1 in 8-bit mode), except that the counter uses an external clock instead of an
internal clock.
Figure 7.7-1 Settings for Counter Function (in 8-bit Mode)
Bit 7
Bit 6
DDR3
×
×
T1CR
T1IF
T1IE
T1OS1 T1OS0 T1CS1 T1CS0 T1STP T1STR
T1DR
Counter value (to be compared) set
T2CR
T2IF
T2IE
T2OS1 T2OS0 T2CS1 T2CS0 T2STP T2STR
×
×
Bit 5
Bit 4
Bit 3
Bit 2
×
×
×
1
×
×
Other than 11
7.7 Operation of Counter Function
Bit 1
Bit 0
×
×
×
1
×
×
: Used bit
× : Used bit
0 : Set "0".
179