Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
AVR / datasheets / attiny_26_26L.pdf
Скачиваний:
46
Добавлен:
20.03.2015
Размер:
2.25 Mб
Скачать

Timer/Counters

Timer/Counter0

Prescaler

The ATtiny26(L) provides two general purpose 8-bit Timer/Counters. The 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.

Figure 36 below shows the Timer/Counter prescaler.

Figure 36. Timer/Counter0 Prescaler

CK

10-BIT T/C PRESCALER

 

 

CLEAR

 

 

 

CK/8

CK/64

CK/256

CK/1024

PSR0

 

 

 

T0(PB6)

 

 

 

 

0

 

 

CS00

CS01

CS02

TIMER/COUNTER0 CLOCK SOURCE

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.

66 ATtiny26(L)

1477J–AVR–06/07

Соседние файлы в папке datasheets