參數(shù)資料
型號(hào): 90USB162-16AU
廠(chǎng)商: ATMEL CORP
元件分類(lèi): 微控制器/微處理器
英文描述: 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, PQFP32
封裝: 7 X 7 MM, 1 MM HEIGHT, 0.50 MM PITCH, GREEN, PLASTIC, TQFP-32
文件頁(yè)數(shù): 19/46頁(yè)
文件大?。?/td> 7004K
代理商: 90USB162-16AU
151
7593L–AVR–09/12
AT90USB64/128
Figure 16-5. CTC mode, timing diagram.
An interrupt can be generated each time the counter value reaches the TOP value by using the
OCF2A Flag. If the interrupt is enabled, the interrupt handler routine can be used for updating
the TOP value. However, changing TOP to a value close to BOTTOM when the counter is run-
ning 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 OCR2A is lower than the current
value of TCNT2, the counter will miss the compare match. The counter will then have to count to
its maximum value (0xFF) and wrap around starting at 0x00 before the compare match can
occur.
For generating a waveform output in CTC mode, the OC2A output can be set to toggle its logical
level on each compare match by setting the Compare Output mode bits to toggle mode
(COM2A1:0 = 1). The OC2A value will not be visible on the port pin unless the data direction for
the pin is set to output. The waveform generated will have a maximum frequency of f
OC2A =
f
clk_I/O/2 when OCR2A is set to zero (0x00). The waveform frequency is defined by the following
equation:
The N variable represents the prescale factor (1, 8, 32, 64, 128, 256, or 1024).
As for the Normal mode of operation, the TOV2 Flag is set in the same timer clock cycle that the
counter counts from MAX to 0x00.
16.6.3
Fast PWM mode
The fast Pulse Width Modulation or fast PWM mode (WGM22:0 = 3 or 7) provides a high fre-
quency PWM waveform generation option. The fast PWM differs from the other PWM option by
its single-slope operation. The counter counts from BOTTOM to TOP then restarts from BOT-
TOM. TOP is defined as 0xFF when WGM22:0 = 3, and OCR2A when MGM22:0 = 7. In non-
inverting Compare Output mode, the Output Compare (OC2x) is cleared on the compare match
between TCNT2 and OCR2x, and set at BOTTOM. In inverting Compare Output mode, the out-
put is set on compare match and cleared at BOTTOM. Due to the single-slope operation, the
operating frequency of the fast PWM mode can be twice as high as the phase correct PWM
mode that uses dual-slope operation. This high frequency makes the fast PWM mode well suited
for power regulation, rectification, and DAC applications. High frequency allows physically small
sized external components (coils, capacitors), and therefore reduces total system cost.
TCNTn
OCnx
(Toggle)
OCnx Interrupt Flag Set
1
4
Period
2
3
(COMnx1:0 = 1)
fOCnx
f
clk_I/O
2
N
1
OCRnx
+
()
--------------------------------------------------
=
相關(guān)PDF資料
PDF描述
MQ83C154DXXX-20P883 8-BIT, MROM, 20 MHz, MICROCONTROLLER, CQFP44
MC80C32E-12/883D 8-BIT, 12 MHz, MICROCONTROLLER, CDIP40
MQ80C52TXXX-36SCR 8-BIT, MROM, 36 MHz, MICROCONTROLLER, CQFP44
MR80C52EXXX-12:RD 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CQCC44
MR80C32E-16P883R 8-BIT, 16 MHz, MICROCONTROLLER, CQCC44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
90USB162-16MU 制造商:ATMEL 制造商全稱(chēng):ATMEL Corporation 功能描述:8-bit Microcontroller with 8/16K Bytes of ISP Flash and USB Controller
90USB82-16MU 制造商:ATMEL 制造商全稱(chēng):ATMEL Corporation 功能描述:8-bit Microcontroller with 8/16K Bytes of ISP Flash and USB Controller
90V1032 制造商: 功能描述: 制造商:undefined 功能描述:
90W49-S 制造商:Leviton Manufacturing Co 功能描述:
90WCAN 制造商:AAC 制造商全稱(chēng):American Accurate Components, Inc. 功能描述:Waveguide to Coaxial Adapter