beautypg.com

Timer/counters, Timer/counter0 prescaler, Attiny26(l) – Rainbow Electronics ATtiny26L User Manual

Page 44

background image

44

ATtiny26(L)

1477B–AVR–04/02

Timer/Counters

T h e A T t in y2 6 / L p r o v i d e s t w o g e n e r a l p u r p o s e 8 - b it T i m e r / C o u n t e rs . T h e
Timer/Counters have separate prescaling selection from the separate prescaler. The
Timer/Counter0 clock (CK) as the clock timebase. The Timer/Counter1 has two clocking
modes, a synchronous mode and an asynchronous mode. The synchronous mode uses
the system clock (CK) as the clock timebase and asynchronous mode uses the fast
peripheral clock (PCK) as the clock time base.

Timer/Counter0
Prescaler

Figure 31 below shows the Timer/Counter prescaler.

Figure 31. Timer/Counter0 Prescaler

The four 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.

10-BIT T/C PRESCALER

0

TIMER/COUNTER0 CLOCK SOURCE

CK

T0(PB6)

PSR0

CLEAR

CS00

CS01

CS02

CK/8

CK/256

CK/1024

CK/64