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

89C51RB2-CM 参数 Datasheet PDF下载

89C51RB2-CM图片预览
型号: 89C51RB2-CM
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器与16K / 32K字节的闪存 [Microcontroller with 16K/32K Bytes Flash]
分类和应用: 闪存微控制器
文件页数/大小: 127 页 / 1455 K
品牌: ATMEL [ ATMEL ]
 浏览型号89C51RB2-CM的Datasheet PDF文件第31页浏览型号89C51RB2-CM的Datasheet PDF文件第32页浏览型号89C51RB2-CM的Datasheet PDF文件第33页浏览型号89C51RB2-CM的Datasheet PDF文件第34页浏览型号89C51RB2-CM的Datasheet PDF文件第36页浏览型号89C51RB2-CM的Datasheet PDF文件第37页浏览型号89C51RB2-CM的Datasheet PDF文件第38页浏览型号89C51RB2-CM的Datasheet PDF文件第39页  
AT89C51RB2/RC2  
Figure 12. PCA Interrupt System  
CCON  
CF  
CR  
CCF4 CCF3 CCF2 CCF1 CCF0  
0xD8  
PCA Timer/Counter  
Module 0  
Module 1  
Module 2  
Module 3  
To Interrupt  
Priority Decoder  
Module 4  
CMOD. 0  
IEN0. 6  
EC  
IEN0. 7  
EA  
CCAPMn. 0  
ECCFn  
ECF  
PCA Modules: each one of the five compare/capture Modules has six possible func-  
tions. It can perform:  
16-bit Capture, positive-edge triggered  
16-bit Capture, negative-edge triggered  
16-bit Capture, both positive and negative-edge triggered  
16-bit Software Timer  
16-bit High-speed Output  
8-bit Pulse Width Modulator  
In addition, Module 4 can be used as a Watchdog Timer.  
Each Module in the PCA has a special function register associated with it. These regis-  
ters are: CCAPM0 for Module 0, CCAPM1 for Module 1, etc. (see Table 24). The  
registers contain the bits that control the mode that each Module will operate in.  
The ECCF bit (CCAPMn. 0 where n = 0, 1, 2, 3, or 4 depending on the Module)  
enables the CCF flag in the CCON SFR to generate an interrupt when a match or  
compare occurs in the associated Module.  
PWM (CCAPMn. 1) enables the pulse width modulation mode.  
The TOG bit (CCAPMn. 2) when set causes the CEX output associated with the  
Module to toggle when there is a match between the PCA counter and the Module's  
capture/compare register.  
The match bit MAT (CCAPMn. 3) when set will cause the CCFn bit in the CCON  
register to be set when there is a match between the PCA counter and the Module's  
capture/compare register.  
The next two bits CAPN (CCAPMn. 4) and CAPP (CCAPMn. 5) determine the edge  
that a capture input will be active on. The CAPN bit enables the negative edge, and  
the CAPP bit enables the positive edge. If both bits are set both edges will be  
enabled and a capture will occur for either transition.  
The last bit in the register ECOM (CCAPMn. 6) when set enables the comparator  
function.  
Table 24 shows the CCAPMn settings for the various PCA functions.  
35  
4180C–8051–12/03  
 复制成功!