欢迎访问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文件第36页浏览型号89C51RB2-CM的Datasheet PDF文件第37页浏览型号89C51RB2-CM的Datasheet PDF文件第38页浏览型号89C51RB2-CM的Datasheet PDF文件第39页浏览型号89C51RB2-CM的Datasheet PDF文件第41页浏览型号89C51RB2-CM的Datasheet PDF文件第42页浏览型号89C51RB2-CM的Datasheet PDF文件第43页浏览型号89C51RB2-CM的Datasheet PDF文件第44页  
16-bit Software Timer/  
Compare Mode  
The PCA Modules can be used as software timers by setting both the ECOM and MAT  
bits in the Modules CCAPMn register. The PCA timer will be compared to the Module's  
capture registers and when a match occurs, an interrupt will occur if the CCFn (CCON  
SFR) and the ECCFn (CCAPMn SFR) bits for the Module are both set (see Figure 14).  
Figure 14. PCA Compare Mode and PCA Watchdog Timer  
CCON  
0xD8  
CCF4  
CF  
CCF3 CCF2 CCF1 CCF0  
CR  
Write to  
CCAPnL Reset  
PCA IT  
Write to  
CCAPnH  
CCAPnH  
CCAPnL  
Enable  
1
0
Match  
16 bit Comparator  
RESET(1)  
CH  
CL  
PCA Counter/Timer  
CCAPMn, n = 0 to 4  
0xDA to 0xDE  
ECOMnCAPPn CAPNn MATn TOGn PWMn ECCFn  
CMOD  
0xD9  
CIDL  
CPS1 CPS0 ECF  
WDTE  
Note:  
1. Only for Module 4  
Before enabling ECOM bit, CCAPnL and CCAPnH should be set with a non zero value,  
otherwise an unwanted match could occur. Writing to CCAPnH will set the ECOM bit.  
Once ECOM set, writing CCAPnL will clear ECOM so that an unwanted match doesn’t  
occur while modifying the compare value. Writing to CCAPnH will set ECOM. For this  
reason, user software should write CCAPnL first, and then CCAPnH. Of course, the  
ECOM bit can still be controlled by accessing to CCAPMn register.  
40  
AT89C51RB2/RC2  
4180C–8051–12/03  
 复制成功!