ATTINY861A-SU Atmel, ATTINY861A-SU Datasheet - Page 72

no-image

ATTINY861A-SU

Manufacturer Part Number
ATTINY861A-SU
Description
IC, MCU, 8BIT, 8K FLASH, 20SOIC
Manufacturer
Atmel
Datasheet

Specifications of ATTINY861A-SU

Controller Family/series
ATtiny
No. Of I/o's
16
Eeprom Memory Size
512Byte
Ram Memory Size
512Byte
Cpu Speed
20MHz
No.
RoHS Compliant
Core Size
8bit
Program Memory Size
8KB
Oscillator Type
External, Internal
Rohs Compliant
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY861A-SUR
Manufacturer:
Atmel
Quantity:
950
11.4
72
Counter Unit
ATtiny261A/461A/861A
Figure 11-3. T0 Pin Sampling
The synchronization and edge detector logic introduces a delay of 2.5 to 3.5 system clock cycles
from an edge has been applied to the T0 pin to the counter is updated.
Enabling and disabling of the clock input must be done when T0 has been stable for at least one
system clock cycle, otherwise it is a risk that a false Timer/Counter clock pulse is generated.
Each half period of the external clock applied must be longer than one system clock cycle to
ensure correct sampling. The external clock must be guaranteed to have less than half the sys-
tem clock frequency (f
sampling, the maximum frequency of an external clock it can detect is half the sampling fre-
quency (Nyquist sampling theorem). However, due to variation of the system clock frequency
and duty cycle caused by Oscillator source (crystal, resonator, and capacitors) tolerances, it is
recommended that maximum frequency of an external clock source is less than f
An external clock source can not be prescaled.
The main part of the 8-bit Timer/Counter is the programmable bi-directional counter unit.
11-4
Table 11-2.
Signal description (internal signals):
The counter is incremented at each timer clock (clk
restarts from BOTTOM. The counting sequence is determined by the setting of the CTC0 bit
located in the Timer/Counter Control Register (TCCR0A). For more details about counting
sequences, see
Tn
clk
shows a block diagram of the counter and its surroundings.
I/O
count
clk
top
Tn
DATA BUS
TCNTn
Counter Unit Block Diagram
D
LE
“Modes of Operation” on page
Q
ExtClk
Increment or decrement TCNT0 by 1.
Timer/Counter clock, referred to as clk
Signalize that TCNT0 has reached maximum value.
Synchronization
D
< f
clk_I/O
Q
/2) given a 50/50% duty cycle. Since the edge detector uses
count
Control Logic
75. clk
top
T0
TOVn
(Int.Req.)
T0
clk
) until it passes its TOP value and then
Tn
can be generated from an external or
T0
D
in the following.
Q
Clock Select
( From Prescaler )
Detector
Edge
Edge Detector
clk_I/O
8197B–AVR–01/10
/2.5.
Tn_sync
(To Clock
Select Logic)
Figure
Tn

Related parts for ATTINY861A-SU