ATTINY85-20PI Atmel, ATTINY85-20PI Datasheet - Page 90

IC AVR MCU 8K 20MHZ 8DIP

ATTINY85-20PI

Manufacturer Part Number
ATTINY85-20PI
Description
IC AVR MCU 8K 20MHZ 8DIP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheets

Specifications of ATTINY85-20PI

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
6
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
8-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
90
ATtiny25/45/85
Figure 12-5. Effects of Unsynchronized OCR Latching
During the time between the write and the latch operation, a read from OCR1A or OCR1B will
read the contents of the temporary location. This means that the most recently written value
always will read out of OCR1A or OCR1B.
When OCR1A or OCR1B contain $00 or the top value, as specified in OCR1C register, the out-
p u t P B 1 ( O C 1 A ) o r P B 4 ( O C 1 B ) i s h e l d l o w o r h i g h a c c o r d i n g t o t h e s e t t i n g s o f
COM1A1/COM1A0. This is shown in
Table 12-2.
In PWM mode, the Timer Overflow Flag - TOV1 is set when the TCNT1 counts to the OCR1C
value and the TCNT1 is reset to $00. The Timer Overflow Interrupt1 is executed when TOV1 is
set provided that Timer Overflow Interrupt and global interrupts are enabled. This also applies to
the Timer Output Compare flags and interrupts.
The frequency of the PWM will be Timer Clock 1 Frequency divided by (OCR1C value + 1). See
the following equation:
Resolution shows how many bits are required to express the value in the OCR1C register and
can be calculated using the following equation:
COM1x1
0
0
1
1
1
1
Unsynchronized OC1x Latch
Synchronized OC1x Latch
PWM Outputs OCR1x = $00 or OCR1C, x = A or B
COM1x0
1
1
0
0
1
1
f
OCR1C
OCR1C
OCR1C
OCR1x
Table
PWM
$00
$00
$00
=
12-2.
----------------------------------- -
(
OCR1C + 1
Glitch
f
Compare Value changes
Compare Value changes
TCK1
Output OC1x
)
H
H
H
L
L
L
Counter Value
Compare Value
PWM Output OC1x
Counter Value
Compare Value
PWM Output OC1x
Not connected.
Not connected.
Not connected.
Not connected.
Output OC1x
2586M–AVR–07/10
H
L

Related parts for ATTINY85-20PI