Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

ATTINY2313 Datasheet(PDF) 102 Page - ATMEL Corporation

Part # ATTINY2313
Description  8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
Download  211 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATTINY2313 Datasheet(HTML) 102 Page - ATMEL Corporation

Back Button ATTINY2313 Datasheet HTML 98Page - ATMEL Corporation ATTINY2313 Datasheet HTML 99Page - ATMEL Corporation ATTINY2313 Datasheet HTML 100Page - ATMEL Corporation ATTINY2313 Datasheet HTML 101Page - ATMEL Corporation ATTINY2313 Datasheet HTML 102Page - ATMEL Corporation ATTINY2313 Datasheet HTML 103Page - ATMEL Corporation ATTINY2313 Datasheet HTML 104Page - ATMEL Corporation ATTINY2313 Datasheet HTML 105Page - ATMEL Corporation ATTINY2313 Datasheet HTML 106Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 102 / 211 page
background image
102
ATtiny2313/V
2543C–AVR–12/03
The Timer/Counter Overflow Flag (TOV1) is set at the same timer clock cycle as the
OCR1x Registers are updated with the double buffer value (at BOTTOM). When either
OCR1A or ICR1 is used for defining the TOP value, the OC1A or ICF1 flag set when
TCNT1 has reached TOP. The interrupt flags can then be used to generate an interrupt
each time the counter reaches the TOP or BOTTOM value.
When changing the TOP value the program must ensure that the new TOP value is
higher or equal to the value of all of the Compare Registers. If the TOP value is lower
than any of the Compare Registers, a compare match will never occur between the
TCNT1 and the OCR1x.
As Figure 47 shows the output generated is, in contrast to the phase correct mode, sym-
metrical in all periods. Since the OCR1x Registers are updated at BOTTOM, the length
of the rising and the falling slopes will always be equal. This gives symmetrical output
pulses and is therefore frequency correct.
Using the ICR1 Register for defining TOP works well when using fixed TOP values. By
using ICR1, the OCR1A Register is free to be used for generating a PWM output on
OC1A. However, if the base PWM frequency is actively changed by changing the TOP
value, using the OCR1A as TOP is clearly a better choice due to its double buffer
feature.
In phase and frequency correct PWM mode, the compare units allow generation of
PWM waveforms on the OC1x pins. Setting the COM1x1:0 bits to two will produce a
non-inverted PWM and an inverted PWM output can be generated by setting the
COM1x1:0 to three (See Table on page 106). The actual OC1x value will only be visible
on the port pin if the data direction for the port pin is set as output (DDR_OC1x). The
PWM waveform is generated by setting (or clearing) the OC1x Register at the compare
match between OCR1x and TCNT1 when the counter increments, and clearing (or set-
ting) the OC1x Register at compare match between OCR1x and TCNT1 when the
counter decrements. The PWM frequency for the output when using phase and fre-
quency correct PWM can be calculated by the following equation:
The N variable represents the prescaler divider (1, 8, 64, 256, or 1024).
The extreme values for the OCR1x Register represents special cases when generating
a PWM waveform output in the phase correct PWM mode. If the OCR1x is set equal to
BOTTOM the output will be continuously low and if set equal to TOP the output will be
set to high for non-inverted PWM mode. For inverted PWM the output will have the
opposite logic values.
f
OC nxP FCP WM
f
clk_I/O
2 NTOP
⋅⋅
----------------------------
=


Similar Part No. - ATTINY2313

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
ATTINY2313 ATMEL-ATTINY2313 Datasheet
1Mb / 223P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313 ATMEL-ATTINY2313 Datasheet
181Kb / 17P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313 ATMEL-ATTINY2313 Datasheet
3Mb / 226P
   Data and Non-volatile Program and Data Memories
ATTINY2313-20 ATMEL-ATTINY2313-20 Datasheet
1Mb / 223P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313-20MU ATMEL-ATTINY2313-20MU Datasheet
181Kb / 17P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
More results

Similar Description - ATTINY2313

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
ATTINY20-EK1 ATMEL-ATTINY20-EK1 Datasheet
4Mb / 220P
   8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY20 ATMEL-ATTINY20_13 Datasheet
4Mb / 220P
   8-bit AVR Microcntroller with 2K Bytes In-System Programmable Flash
ATTINY2313V ATMEL-ATTINY2313V_06 Datasheet
2Mb / 231P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313-20 ATMEL-ATTINY2313-20 Datasheet
1Mb / 223P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY2313 ATMEL-ATTINY2313_06 Datasheet
181Kb / 17P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
AT90S2313 ATMEL-AT90S2313 Datasheet
387Kb / 8P
   8-Bit Microcontroller with 2K bytes In-System Programmable Flash
ATTINY20 ATMEL-ATTINY20 Datasheet
638Kb / 18P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATTINY20 ATMEL-ATTINY20_11 Datasheet
5Mb / 224P
   8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ATMEGA16 ATMEL-ATMEGA16 Datasheet
2Mb / 315P
   8-bit AVR Microcontroller with 16K Bytes In-System Programmable Flash
ATMEGA32 ATMEL-ATMEGA32_06 Datasheet
3Mb / 347P
   8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com