EasyManuals Logo

Atmel AVR ATtiny10 Series User Manual

Atmel AVR ATtiny10 Series
77 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #29 background imageLoading...
Page #29 background image
ATtiny10/11/12
29
nominal frequency. Otherwise, the EEPROM write may fail. Table 14 shows the range for OSCCAL. Note that the oscillator
is intended for calibration to 1.0 MHz, thus tuning to other values is not guaranteed.
Timer/Counter0
The ATtiny10/11/12 provides one general-purpose 8-bit Timer/Counter Timer/Counter0. The Timer/Counter0 has pre-
scaling selection from the 10-bit prescaling timer. The Timer/Counter0 can either be used as a timer with an internal clock
timebase or as a counter with an external pin connection that triggers the counting.
Timer/Counter Prescaler
Figure 23 shows the Timer/Counter prescaler.
Figure 23. Timer/Counter0 Prescaler
The four different prescaled selections are: CK/8, CK/64, CK/256 and CK/1024 where CK is the oscillator clock. CK,
external source and stop, can also be selected as clock sources.
Figure 24 shows the block diagram for Timer/Counter0.
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
ensure 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.
Table 14. Internal RC Oscillator Frequency Range
OSCCAL Value Min Frequency Max Frequency
$00 0.5 MHz 1.0 MHz
$7F 0.7 MHz 1.5 MHz
$FF 1.0 MHz 2.0 MHz
10-BIT T/C PRESCALER
0
TIMER/COUNTER0 CLOCK SOURCE
TCK0
CK
T0
CS00
CS01
CS02
CK/8
CK/256
CK/1024
CK/64

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR ATtiny10 Series and is the answer not in the manual?

Atmel AVR ATtiny10 Series Specifications

General IconGeneral
BrandAtmel
ModelAVR ATtiny10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals