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

MEGA128CAN 参数 Datasheet PDF下载

MEGA128CAN图片预览
型号: MEGA128CAN
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器,带有ISP功能的Flash和CAN控制器128K字节 [Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER]
分类和应用: 微控制器
文件页数/大小: 413 页 / 5507 K
品牌: ATMEL [ ATMEL ]
 浏览型号MEGA128CAN的Datasheet PDF文件第156页浏览型号MEGA128CAN的Datasheet PDF文件第157页浏览型号MEGA128CAN的Datasheet PDF文件第158页浏览型号MEGA128CAN的Datasheet PDF文件第159页浏览型号MEGA128CAN的Datasheet PDF文件第161页浏览型号MEGA128CAN的Datasheet PDF文件第162页浏览型号MEGA128CAN的Datasheet PDF文件第163页浏览型号MEGA128CAN的Datasheet PDF文件第164页  
Output Compare Modulator - OCM  
Overview  
Many register and bit references in this section are written in general form.  
A lower case “n” replaces the Timer/Counter number, in this case 0 and 1. However,  
when using the register or bit defines in a program, the precise form must be used,  
i.e., TCNT0 for accessing Timer/Counter0 counter value and so on.  
A lower case “x” replaces the Output Compare unit channel, in this case A or C.  
However, when using the register or bit defines in a program, the precise form must  
be used, i.e., OCR0A for accessing Timer/Counter0 output compare channel A  
value and so on.  
The Output Compare Modulator (OCM) allows generation of waveforms modulated with  
a carrier frequency. The modulator uses the outputs from the Output Compare Unit C of  
the 16-bit Timer/Counter1 and the Output Compare Unit of the 8-bit Timer/Counter0. For  
more details about these Timer/Counters see “16-bit Timer/Counter (Timer/Counter1  
and Timer/Counter3)” on page 108 and “8-bit Timer/Counter0 with PWM” on page 94.  
Figure 76. Output Compare Modulator, Block Diagram  
OC1C  
OC0A  
Timer/Counter 1  
Timer/Counter 0  
Pin  
OC0A / OC1C / PB7  
When the modulator is enabled, the two output compare channels are modulated  
together as shown in the block diagram (Figure 76).  
Description  
The Output Compare unit 1C and Output Compare unit 0A shares the PB7 port pin for  
output. The outputs of the Output Compare units (OC1C and OC0A) overrides the nor-  
mal PORTB7 Register when one of them is enabled (i.e., when COMnx1:0 is not equal  
to zero). When both OC1C and OC0A are enabled at the same time, the modulator is  
automatically enabled.  
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.  
The functional equivalent schematic of the modulator is shown on Figure 77. The sche-  
matic includes part of the Timer/Counter units and the port B pin 7 output driver circuit.  
160  
AT90CAN128  
4250E–CAN–12/04  
 复制成功!