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 36/112:

Timer/Counter1 Control

Download datasheet (3Mb)Embed
PrevNext

Timer/Counter1 Control

Register A – TCCR1A
AT90S8515
36
Bit
7
6
5
$2F ($4F)
COM1A1
COM1A0
COM1B1
Read/Write
R/W
R/W
R/W
Initial Value
0
0
0
• Bits 7, 6 – COM1A1, COM1A0: Compare Output Mode1A, Bits 1 and 0
The COM1A1 and COM1A0 control bits determine any output pin action following a
compare match in Timer/Counter1. Any output pin actions affect pin OC1A (Output
C o m p a r e A p i n 1 ) . T h i s i s a n a l t e r n a t i v e f u n c t i o n t o a n I / O p o r t a n d t h e
corresponding direction control bit must be set (one) to control the output pin. The con-
trol configuration is shown in Table 8.
• Bits 5, 4 – COM1B1, COM1B0: Compare Output Mode1B, Bits 1 and 0
The COM1B1 and COM1B0 control bits determine any output pin action following a
compare match in Timer/Counter1. Any output pin actions affect pin OC1B (Output
CompareB). The control configuration is given in Table 8.
Table 8. Compare 1 Mode Select
COM1X1
COM1X0
Description
0
0
Timer/Counter1 disconnected from output pin OC1X
0
1
Toggle the OC1X output line.
1
0
Clear the OC1X output line (to zero).
1
1
Set the OC1X output line (to one).
Note:
X = A or B
In PWM mode, these bits have a different function. Refer to Table 12 on page 40 for a
detailed description.
• Bits 3..2 – Res: Reserved Bits
These bits are reserved bits in the AT90S8515 and always read zero.
• Bits 1..0 – PWM11, PWM10: Pulse Width Modulator Select Bits 1 and 0
These bits select PWM operation of Timer/Counter1 as specified in Table 9. This mode
is described on page 40.
Table 9. PWM Mode Select
PWM11
PWM10
Description
0
0
PWM operation of Timer/Counter1 is disabled
0
1
Timer/Counter1 is an 8-bit PWM
1
0
Timer/Counter1 is a 9-bit PWM
1
1
Timer/Counter1 is a 10-bit PWM
4
3
2
1
COM1B0
PWM11
PWM10
R/W
R
R
R/W
R/W
0
0
0
0
0
TCCR1A
0
0841G–09/01