AT90S1200
Figure 19. Timer/Counter0 Block Diagram
T0
The 8-bit Timer/Counter0 can select clock source from CK, prescaled CK or an external
pin. In addition it can be stopped as described in the specification for the
Timer/Counter0 Control Register (TCCR0). The overflow status flag is found in the
Timer/Counter Interrupt Flag Register (TIFR). Control signals are found in the
Timer/Counter0 Control Register (TCCR0). The interrupt enable/disable settings for
Timer/Counter0 are found in the Timer/Counter Interrupt Mask Register (TIMSK).
When Timer/Counter0 is externally clocked, the external signal is synchronized with the
oscillator frequency of the CPU. To assure proper sampling of the external clock, the
minimum time between two external clock transitions must be at least one internal CPU
clock period. The external clock signal is sampled on the rising edge of the internal CPU
clock.
The 8-bit Timer/Counter0 features both a high-resolution and a high-accuracy usage
with the lower prescaling opportunities. Similarly, the high prescaling opportunities make
the Timer/Counter0 useful for lower speed functions or exact timing functions with infre-
quent actions.
Timer/Counter0 Control
Register – TCCR0
Bit
7
-
6
-
5
-
4
-
3
-
2
CS02
R/W
0
1
CS01
R/W
0
0
CS00
R/W
0
$33
TCCR0
Read/Write
Initial Value
R
0
R
0
R
0
R
0
R
0
• Bits 7..3 – Res: Reserved Bits
These bits are reserved bits in the AT90S1200 and always read as zero.
21
0838H–AVR–03/02