ATTINY45-20SUR Atmel, ATTINY45-20SUR Datasheet - Page 102
ATTINY45-20SUR
Manufacturer Part Number
ATTINY45-20SUR
Description
MCU AVR 4KB FLASH 20MHZ 8SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Specifications of ATTINY45-20SUR
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
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
256 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
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
ATTINY45-20SU SL383
ATTINY45-20SU SL383
ATTINY45-20SU-SL383
Q4272203
ATTINY45-20SU SL383
ATTINY45-20SU-SL383
Q4272203
- Current page: 102 of 236
- Download datasheet (5Mb)
102
ATtiny25/45/85
When OCR1A contains $00 or the top value, as specified in OCR1C register, the output
PB1(OC1A) is held low or high according to the settings of COM1A1/COM1A0. This is shown in
Table
Table 13-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 PWM frequency can be derived from the timer/counter clock frequency using the following
equation:
The duty cycle of the PWM waveform can be calculated using the following equation:
...where T
Resolution indicates how many bits are required to express the value in the OCR1C register. It
can be calculated using the following equation:
Table 13-3.
PWM Frequency
13-2.
COM1A1
20 kHz
30 kHz
40 kHz
50 kHz
60 kHz
70 kHz
PCK
0
0
1
1
1
1
is the period of the fast peripheral clock (1/25.6 MHz = 39.1 ns).
PWM Outputs OCR1A = $00 or OCR1C
Timer/Counter1 Clock Prescale Select in the Asynchronous Mode
Clock Selection
D
PCK/16
PCK/16
PCK/8
PCK/8
PCK/8
PCK/4
COM1A0
=
1
1
0
0
1
1
(
----------------------------------------------------------------------------
R
OCR1A
f
=
(
OCR1C
=
log
----------------------------------- -
(
OCR1C + 1
2 OCR1C
+
(
1
f
TCK1
)
+
×
CS1[3:0]
1
T
0101
0101
0100
0100
0100
0011
)
TCK1
×
T
+
)
OCR1A
OCR1C
OCR1C
OCR1C
TCK1
1
$00
$00
$00
–
)
T
PCK
OCR1C
199
132
199
159
132
228
Output OC1A
RESOLUTION
2586M–AVR–07/10
H
H
H
L
L
L
7.6
7.1
7.6
7.3
7.1
7.8
Related parts for ATTINY45-20SUR
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
IC AVR MCU 4K 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 4K 20MHZ 8DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 4K FLASH 15MHZ 8-SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 4K FLASH 20MHZ 8TSSOP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU FLASH 4K 20MHZ 20MLF
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 4KB FLASH 20MHZ 8TSSOP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 4KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 4KB FLASH 20MHZ 20QFN
Manufacturer:
Atmel
Datasheet: