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

ATMEGA64A-AU 参数 Datasheet PDF下载

ATMEGA64A-AU图片预览
型号: ATMEGA64A-AU
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有64K字节的系统内可编程闪存 [8-bit Microcontroller with 64K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 7964 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA64A-AU的Datasheet PDF文件第153页浏览型号ATMEGA64A-AU的Datasheet PDF文件第154页浏览型号ATMEGA64A-AU的Datasheet PDF文件第155页浏览型号ATMEGA64A-AU的Datasheet PDF文件第156页浏览型号ATMEGA64A-AU的Datasheet PDF文件第158页浏览型号ATMEGA64A-AU的Datasheet PDF文件第159页浏览型号ATMEGA64A-AU的Datasheet PDF文件第160页浏览型号ATMEGA64A-AU的Datasheet PDF文件第161页  
ATmega64A  
Figure 17-10. Timer/Counter Timing Diagram, Setting of OCF2, with Prescaler (fclk_I/O/8)  
clkI/O  
clkTn  
(clkI/O/8)  
TCNTn  
OCRn  
OCFn  
OCRn - 1  
OCRn  
OCRn + 1  
OCRn + 2  
OCRn Value  
Figure 17-11 shows the setting of OCF2 and the clearing of TCNT2 in CTC mode.  
Figure 17-11. Timer/Counter Timing Diagram, Clear Timer on Compare Match Mode, with Pres-  
caler (fclk_I/O/8)  
clkI/O  
clkTn  
(clkI/O/8)  
TCNTn  
(CTC)  
TOP - 1  
TOP  
BOTTOM  
BOTTOM + 1  
OCRn  
TOP  
OCFn  
17.9 Register Description  
17.9.1  
TCCR2 – Timer/Counter Control Register  
Bit  
7
FOC2  
W
6
WGM20  
R/W  
0
5
COM21  
R/W  
0
4
3
WGM21  
R/W  
0
2
CS22  
R/W  
0
1
CS21  
R/W  
0
0
0x25 (0x45)  
Read/Write  
Initial Value  
COM20  
R/W  
0
CS20  
R/W  
0
TCCR2  
0
• Bit 7 – FOC2: Force Output Compare  
The FOC2 bit is only active when the WGM20 bit specifies a non-PWM mode. However, for  
ensuring compatibility with future devices, this bit must be set to zero when TCCR2 is written  
when operating in PWM mode. When writing a logical one to the FOC2 bit, an immediate Com-  
pare Match is forced on the waveform generation unit. The OC2 output is changed according to  
its COM21:0 bits setting. Note that the FOC2 bit is implemented as a strobe. Therefore it is the  
value present in the COM21:0 bits that determines the effect of the forced compare.  
157  
8160C–AVR–07/09  
 复制成功!