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

ATMEGA2560 参数 Datasheet PDF下载

ATMEGA2560图片预览
型号: ATMEGA2560
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器与256K字节的系统内可编程闪存 [8- BIT Microcontroller with 256K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 407 页 / 2985 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA2560的Datasheet PDF文件第168页浏览型号ATMEGA2560的Datasheet PDF文件第169页浏览型号ATMEGA2560的Datasheet PDF文件第170页浏览型号ATMEGA2560的Datasheet PDF文件第171页浏览型号ATMEGA2560的Datasheet PDF文件第173页浏览型号ATMEGA2560的Datasheet PDF文件第174页浏览型号ATMEGA2560的Datasheet PDF文件第175页浏览型号ATMEGA2560的Datasheet PDF文件第176页  
When the modulator is enabled the type of modulation (logical AND or OR) can be  
selected by the PORTB7 Register. Note that the DDRB7 controls the direction of the  
port independent of the COMnx1:0 bit setting.  
Timing Example  
Figure 66 illustrates the modulator in action. In this example the Timer/Counter1 is set to  
operate in fast PWM mode (non-inverted) and Timer/Counter0 uses CTC waveform  
mode with toggle Compare Output mode (COMnx1:0 = 1).  
Figure 66. Output Compare Modulator, Timing Diagram  
clkI/O  
OC1C  
(FPWM Mode)  
OC0A  
(CTC Mode)  
PB7  
(PORTB7 = 0)  
PB7  
(PORTB7 = 1)  
1
2
3
(Period)  
In this example, Timer/Counter2 provides the carrier, while the modulating signal is gen-  
erated by the Output Compare unit C of the Timer/Counter1.  
The resolution of the PWM signal (OC1C) is reduced by the modulation. The reduction  
factor is equal to the number of system clock cycles of one period of the carrier (OC0A).  
In this example the resolution is reduced by a factor of two. The reason for the reduction  
is illustrated in Figure 66 at the second and third period of the PB7 output when  
PORTB7 equals zero. The period 2 high time is one cycle longer than the period 3 high  
time, but the result on the PB7 output is equal in both periods.  
172  
ATmega640/1280/1281/2560/2561  
2549A–AVR–03/05  
 复制成功!