ATTINY26L8SU SL383 Atmel, ATTINY26L8SU SL383 Datasheet - Page 69

no-image

ATTINY26L8SU SL383

Manufacturer Part Number
ATTINY26L8SU SL383
Description
MCU 8-Bit ATtiny AVR RISC 2KB Flash 3.3V/5V 20-Pin SOIC T/R
Manufacturer
Atmel
Datasheet
Timer/Counter0 – TCNT0
8-bit Timer/Counter1
1477J–AVR–06/07
The Stop condition provides a Timer Enable/Disable function. The CK down divided
modes are scaled directly from the CK oscillator clock. If the external pin modes are
used, the corresponding setup must be performed in the actual Data Direction Control
Register (cleared to zero gives an input pin).
The Timer/Counter0 is implemented as an up-counter with read and write access. If the
Timer/Counter0 is written and a clock source is present, the Timer/Counter0 continues
counting in the timer clock cycle following the write operation.
The Timer/Counter1 has two clocking modes: a synchronous mode and an asynchro-
nous 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.
The PCKE bit from the PLLCSR Register enables the asynchronous mode when it is set
(“1”). The Timer/Counter1 general operation is described in the asynchronous mode and
the operation in the synchronous mode is mentioned only if there is differences between
these two modes. Figure 39 shows Timer/Counter1 synchronization register block dia-
gram and synchronization delays in between registers. Note that all clock gating details
are not shown in the figure. The Timer/Counter1 Register values go through the internal
synchronization registers, which cause the input synchronization delay, before affecting
the counter operation. The registers TCCR1A, TCCR1B, OCR1A, OCR1B, and OCR1C
can be read back right after writing the register. The read back values are delayed for
the Timer/Counter1 (TCNT1) Register and flags (OCF1A, OCF1B, and TOV1), because
of the input and output synchronization.
This module features a high resolution and a high accuracy usage with the lower pres-
caling opportunities. Timer/Counter1 can also support two accurate, high speed, 8-bit
Pulse Width Modulators using clock speeds up to 64 MHz. In this mode, Timer/Counter1
and the Output Compare Registers serve as dual stand-alone PWMs with non-overlap-
ping non-inverted and inverted outputs. Refer to page 76 for a detailed description on
this function. Similarly, the high prescaling opportunities make this unit useful for lower
speed functions or exact timing functions with infrequent actions.
Bit
$32 ($52)
Read/Write
Initial Value
MSB
R/W
7
0
R/W
6
0
R/W
5
0
R/W
4
0
R/W
3
0
R/W
2
0
R/W
ATtiny26(L)
1
0
LSB
R/W
0
0
TCNT0
69

Related parts for ATTINY26L8SU SL383