5 definitions, Table 16-1. definitions – Rainbow Electronics ATtiny861_V User Manual
Page 94

94
2588B–AVR–11/06
ATtiny261/461/861
Figure 16-2. Timer/Counter1 Synchronization Register Block Diagram.
16.2.5
Definitions
Many register and bit references in this section are written in general form. A lower case “n”
replaces the Timer/Counter number, in this case 0. A lower case “x” replaces the Output Com-
pare Unit, in this case Compare Unit A, B, C or D. However, when using the register or bit
defines in a program, the precise form must be used, i.e., TCNT1 for accessing Timer/Counter1
counter value and so on. The definitions in
Table 16-1
are used extensively throughout the
document.
8-BIT DATABUS
OCR1A
OCR1A_SI
TCNT1_SO
OCR1B
OCR1B_SI
OCR1C
OCR1C_SI
TCCR1A
TCCR1A_SI
TCCR1B
TCCR1B_SI
TCNT1
TCNT1_SI
OCF1A
OCF1A_SI
OCF1B
OCF1B_SI
TOV1
TOV1_SI
TOV1_SO
OCF1B_SO
OCF1A_SO
TCNT1
S
A
S
A
PCKE
CK
PCK
IO-registers
Input synchronization
registers
Timer/Counter1
Output synchronization
registers
SYNC
MODE
ASYNC
MODE
1 CK Delay
1/2 CK Delay
~1/2 CK Delay
1 PCK Delay
1 PCK Delay
~1 CK Delay
TCNT1
OCF1A
OCF1B
TOV1
1/2 CK Delay
1 CK Delay
OCR1D
OCR1D_SI
TC1H
TC1H_SI
TCCR1C
TCCR1C_SI
TCCR1D
OCF1D
OCF1D_SI
OCF1D_SO
OCF1D
TC1H_SO
TC1H
TCCR1D_SI
Table 16-1.
Definitions
BOTTOM
The counter reaches the BOTTOM when it becomes 0.
MAX
The counter reaches its MAXimum value when it becomes 0x3FF (decimal 1023).
TOP
The counter reaches the TOP value (stored in the OCR1C) when it becomes equal to the
highest value in the count sequence. The TOP has a value 0x0FF as default after reset.