データシートサーチシステム
Selected language   Japanese  ▼
品番検索
         詳細検索


ATTINY2313-20MU データシート(Datasheet) 99 Page - ATMEL Corporation

部品番号. ATTINY2313-20MU
部品情報  8-bit Microcontroller with 2K Bytes In-System Programmable Flash
ダウンロード  231 Pages
Scroll/Zoom Zoom In 100% Zoom Out
メーカー  ATMEL [ATMEL Corporation]
ホームページ  http://www.atmel.com
Logo 

 99 page
background image
99
ATtiny2313/V
2543I–AVR–04/06
Figure 45. CTC Mode, Timing Diagram
An interrupt can be generated at each time the counter value reaches the TOP value by
either using the OCF1A or ICF1 flag according to the register used to define the TOP
value. If the interrupt is enabled, the interrupt handler routine can be used for updating
the TOP value. However, changing the TOP to a value close to BOTTOM when the
counter is running with none or a low prescaler value must be done with care since the
CTC mode does not have the double buffering feature. If the new value written to
OCR1A or ICR1 is lower than the current value of TCNT1, the counter will miss the com-
pare match. The counter will then have to count to its maximum value (0xFFFF) and
wrap around starting at 0x0000 before the compare match can occur. In many cases
this feature is not desirable. An alternative will then be to use the fast PWM mode using
OCR1A for defining TOP (WGM13:0 = 15) since the OCR1A then will be double
buffered.
For generating a waveform output in CTC mode, the OCFA output can be set to toggle
its logical level on each compare match by setting the Compare Output mode bits to tog-
gle mode (COM1A1:0 = 1). The OCF1A value will not be visible on the port pin unless
the data direction for the pin is set to output (DDR_OCF1A = 1). The waveform gener-
ated will have a maximum frequency of f
OC1A = fclk_I/O/2 when OCR1A is set to zero
(0x0000). The waveform frequency is defined by the following equation:
The N variable represents the prescaler factor (1, 8, 64, 256, or 1024).
As for the Normal mode of operation, the TOV1 flag is set in the same timer clock cycle
that the counter counts from MAX to 0x0000.
TCNTn
OCnA
(Toggle)
OCnA Interrupt Flag Set
or ICFn Interrupt Flag Set
(Interrupt on TOP)
1
4
Period
2
3
(COMnA1:0 = 1)
f
OCnA
f
clk_I/O
2 N
1
OCRnA
+
()
⋅⋅
---------------------------------------------------
=




Html ページ

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



関連電子部品番号

部品番号コンポーネントの説明Html Viewメーカー
AT89S51_058-bit Microcontroller with 4K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATMEGA64_06108-bit Microcontroller with 64K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATMEGA3290P8-bit Microcontroller with 32K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATMEGA165V_068-bit Microcontroller with 16K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATTINY25_068-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
AT90S2313_028-bit Microcontroller with 2K Bytes of In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATMEGA162V_078-bit Microcontroller with 16K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATMEGA16_068-bit Microcontroller with 16K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
ATTINY261_068-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation
AT90S8515_018-bit Microcontroller with 8K Bytes In-System Programmable Flash 1 2 3 4 5 MoreATMEL Corporation

リンク URL

ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ]  

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   ブックマーク   |   リンク交換   |   メーカーリスト
All Rights Reserved© Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  , 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