attiny25v ATMEL Corporation, attiny25v Datasheet - Page 90

no-image

attiny25v

Manufacturer Part Number
attiny25v
Description
Microcontroller With 2/4/8k Bytes In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
attiny25v-10MU
Manufacturer:
ATMEL
Quantity:
1 650
Part Number:
attiny25v-10MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny25v-10PU
Manufacturer:
Atmel
Quantity:
29 497
Part Number:
attiny25v-10PU
Manufacturer:
Atmel
Quantity:
5 000
Part Number:
attiny25v-10SU
Manufacturer:
ATMEL
Quantity:
2 110
Part Number:
attiny25v-10SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny25v-15ST
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
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
2586K–AVR–01/08
H
L

Related parts for attiny25v