AT90S8515

Manufacturer Part NumberAT90S8515
Description8-bit microcontroller with 8K bytes in-system programmable flash, 2.7-6.0V
ManufacturerATMEL Corporation
AT90S8515 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Page 31
32
Page 32
33
Page 33
34
Page 34
35
Page 35
36
Page 36
37
Page 37
38
Page 38
39
Page 39
40
Page 40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Page 34/112:

Timer Counter0 TCNT0

Download datasheet (3Mb)Embed
PrevNext
Timer Counter0 – TCNT0
16-bit Timer/Counter1
AT90S8515
34
The Stop condition provides a Timer Enable/Disable function. The CK down divided
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
configured as an output. This feature can give the user software control of the counting.
Bit
7
6
5
$32 ($52)
MSB
Read/Write
R/W
R/W
R/W
Initial Value
0
0
0
The Timer/Counter0 is realized as an up-counter with read and write access. If the
Timer/Counter0 is written and a clock source is present, the Timer/Counter0 continues
counting in the clock cycle following the write operation.
Figure 30 shows the block diagram for Timer/Counter1.
Figure 30. Timer/Counter1 Block Diagram
The 16-bit Timer/Counter1 can select clock source from CK, prescaled CK or an exter-
nal pin. In addition, it can be stopped as described in the specification for the
Timer/Counter1 Control Registers (TCCR1A and TCCR1B). The different status flags
(overflow, compare match and capture event) are found in the Timer/Counter Interrupt
Flag Register (TIFR). Control signals are found in the Timer/Counter1 Control Registers
4
3
2
1
0
LSB
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
TCNT0
T1
0841G–09/01