欢迎访问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文件第38页浏览型号89C51RB2-CM的Datasheet PDF文件第39页浏览型号89C51RB2-CM的Datasheet PDF文件第40页浏览型号89C51RB2-CM的Datasheet PDF文件第41页浏览型号89C51RB2-CM的Datasheet PDF文件第43页浏览型号89C51RB2-CM的Datasheet PDF文件第44页浏览型号89C51RB2-CM的Datasheet PDF文件第45页浏览型号89C51RB2-CM的Datasheet PDF文件第46页  
Pulse Width Modulator  
Mode  
All of the PCA Modules can be used as PWM outputs. Figure 16 shows the PWM func-  
tion. The frequency of the output depends on the source for the PCA timer. All of the  
Modules will have the same frequency of output because they all share the PCA timer.  
The duty cycle of each Module is independently variable using the module's capture  
register CCAPLn. When the value of the PCA CL SFR is less than the value in the mod-  
ule's CCAPLn SFR the output will be low, when it is equal to or greater than the output  
will be high. When CL overflows from FF to 00, CCAPLn is reloaded with the value in  
CCAPHn. This allows updating the PWM without glitches. The PWM and ECOM bits in  
the module's CCAPMn register must be set to enable the PWM mode.  
Figure 16. PCA PWM Mode  
CCAPnH  
Overflow  
CCAPnL  
“0”  
CEXn  
Enable  
8-bit Comparator  
“1”  
CL  
PCA Counter/Timer  
CCAPMn, n = 0 to 4  
0xDA to 0xDE  
ECOMnCAPPn CAPNn MATn TOGn PWMn ECCFn  
PCA Watchdog Timer  
An on-board watchdog timer is available with the PCA to improve the reliability of the  
system without increasing chip count. Watchdog timers are useful for systems that are  
susceptible to noise, power glitches, or electrostatic discharge. Module 4 is the only  
PCA Module that can be programmed as a watchdog. However, this Module can still be  
used for other modes if the watchdog is not needed. Figure 14 shows a diagram of how  
the watchdog works. The user pre-loads a 16-bit value in the compare registers. Just  
like the other compare modes, this 16-bit value is compared to the PCA timer value. If a  
match is allowed to occur, an internal reset will be generated. This will not cause the  
RST pin to be driven high.  
In order to hold off the reset, the user has the following three options:  
1. Periodically change the compare value so it will never match the PCA timer.  
2. Periodically change the PCA timer value so it will never match the compare  
values.  
3. Disable the watchdog by clearing the WDTE bit before a match occurs and then  
re-enable it.  
The first two options are more reliable because the watchdog timer is never disabled as  
in option #3. If the program counter ever goes astray, a match will eventually occur and  
cause an internal reset. The second option is also not recommended if other PCA Mod-  
ules are being used. Remember, the PCA timer is the time base for all modules;  
42  
AT89C51RB2/RC2  
4180C–8051–12/03  
 复制成功!