欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA8L-8MUR 参数 Datasheet PDF下载

ATMEGA8L-8MUR图片预览
型号: ATMEGA8L-8MUR
PDF下载: 下载PDF文件 查看货源
内容描述: 8位爱特梅尔带有8K字节的系统内可编程闪存 [8-bit Atmel with 8KBytes In-System PRogrammable Flash]
分类和应用: 闪存微控制器和处理器外围集成电路异步传输模式PCATM时钟
文件页数/大小: 331 页 / 6705 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第101页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第102页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第103页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第104页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第106页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第107页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第108页浏览型号ATMEGA8L-8MUR的Datasheet PDF文件第109页  
ATmega8(L)  
Output Compare  
Unit  
The 8-bit comparator continuously compares TCNT2 with the Output Compare Register  
(OCR2). Whenever TCNT2 equals OCR2, the comparator signals a match. A match will set the  
Output Compare Flag (OCF2) at the next timer clock cycle. If enabled (OCIE2 = 1), the Output  
Compare Flag generates an Output Compare interrupt. The OCF2 Flag is automatically cleared  
when the interrupt is executed. Alternatively, the OCF2 Flag can be cleared by software by writ-  
ing a logical one to its I/O bit location. The waveform generator uses the match signal to  
generate an output according to operating mode set by the WGM21:0 bits and Compare Output  
mode (COM21:0) bits. The max and bottom signals are used by the waveform generator for han-  
dling the special cases of the extreme values in some modes of operation (see “Modes of  
Operation” on page 108).  
Figure 47 shows a block diagram of the Output Compare unit.  
Figure 47. Output Compare Unit, Block Diagram  
DATA BUS  
OCRn  
TCNTn  
= (8-bit Comparator )  
OCFn (Int. Req.)  
TOP  
BOTTOM  
FOCn  
Waveform Generator  
OCxy  
WGMn1:0  
COMn1:0  
The OCR2 Register is double buffered when using any of the Pulse Width Modulation (PWM)  
modes. For the normal and Clear Timer on Compare (CTC) modes of operation, the double buff-  
ering is disabled. The double buffering synchronizes the update of the OCR2 Compare Register  
to either top or bottom of the counting sequence. The synchronization prevents the occurrence  
of odd-length, non-symmetrical PWM pulses, thereby making the output glitch-free.  
The OCR2 Register access may seem complex, but this is not case. When the double buffering  
is enabled, the CPU has access to the OCR2 Buffer Register, and if double buffering is disabled  
the CPU will access the OCR2 directly.  
105  
2486AA–AVR–02/2013  
 复制成功!