欢迎访问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文件第159页浏览型号ATMEGA64A-AU的Datasheet PDF文件第160页浏览型号ATMEGA64A-AU的Datasheet PDF文件第161页浏览型号ATMEGA64A-AU的Datasheet PDF文件第162页浏览型号ATMEGA64A-AU的Datasheet PDF文件第164页浏览型号ATMEGA64A-AU的Datasheet PDF文件第165页浏览型号ATMEGA64A-AU的Datasheet PDF文件第166页浏览型号ATMEGA64A-AU的Datasheet PDF文件第167页  
ATmega64A  
COM21  
COM20  
Vcc  
COM1C1  
COM1C0  
Modulator  
0
1
( From Waveform Generator )  
D
Q
1
0
OC1C  
Pin  
OC1C /  
OC2 / PB7  
( From Waveform Generator )  
D
Q
Q
OC2  
D
D
Q
PORTB7  
DDRB7  
DATA BUS  
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.  
18.2.1  
Timing Example  
Figure 18-2 illustrates the modulator in action. In this example the Timer/Counter1 is set to oper-  
ate in fast PWM mode (non-inverted) and Timer/Counter2 uses CTC waveform mode with toggle  
Compare Output mode (COMnx1:0 = 1).  
Figure 18-2. Output Compare Modulator, Timing Diagram  
clkI/O  
OC1C  
(FPWM Mode)  
OC2  
(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 generated  
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 (OC2). In this example the resolution is reduced by a factor of two.  
The reason for the reduction is illustrated in Figure 18-2 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 three high time, but the result on the PB7 output is equal in both periods.  
163  
8160C–AVR–07/09  
 复制成功!