ATTINY26-16PI Atmel, ATTINY26-16PI Datasheet - Page 74

IC AVR MCU 2K 16MHZ IND 20-DIP

ATTINY26-16PI

Manufacturer Part Number
ATTINY26-16PI
Description
IC AVR MCU 2K 16MHZ IND 20-DIP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheets

Specifications of ATTINY26-16PI

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Timer/Counter1
Initialization for
Asynchronous Mode
Timer/Counter1 in
PWM Mode
74
ATtiny26(L)
When the PLOCK bit is set, the PLL is locked to the reference clock, and it is safe to enable PCK
for Timer/Counter1. After the PLL is enabled, it takes about 64 µs/100 µs (typical/worst case) for
the PLL to lock.
To change Timer/Counter1 to the asynchronous mode, first enable PLL, and poll the PLOCK bit
until it is set, and then set the PCKE bit.
When the PWM mode is selected, Timer/Counter1 and the Output Compare Register C –
OCR1C form a dual 8-bit, free-running and glitch-free PWM generator with outputs on the
PB1(OC1A) and PB3(OC1B) pins. Also inverted, non-overlapping outputs are available on pins
PB0(OC1A) and PB2(OC1B), respectively. The non-overlapping output pairs (OC1A - OC1A
and OC1B - OC1B) are never both set at the same time. This allows driving power switches
directly. The non-overlap time is one prescaled clock cycle, and the high time is one cycle
shorter than the low time.
The non-overlap time is generated by delaying the rising edge, i.e., the positive edge is one
prescaled and one PCK cycle delayed and the negative edge is one PCK cycle delayed in the
asynchronous mode. In the synchronous mode he positive edge is one prescaled and one CK
cycle delayed and the negative edge is one CK cycle delayed. The high time is also one pres-
caled cycle shorter in the both operation modes.
Figure 41. The Non-overlapping Output Pair
When the counter value match the contents of OCR1A and OCR1B, the OC1A and OC1B out-
puts are set or cleared according to the COM1A1/COM1A0 or COM1B1/COM1B0 bits in the
Timer/Counter1 Control Register A – TCCR1A, as shown in Table 35 below.
Timer/Counter1 acts as an up-counter, counting from $00 up to the value specified in the Output
Compare Register (OCR1C), and starting from $00 up again. A compare match with OC1C will
set an Overflow Interrupt Flag (TOV1) after a synchronization delay following the compare
event.
OC1x
OC1x
x = A or B
t
non-overlap
1477K–AVR–08/10

Related parts for ATTINY26-16PI