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

HD6417750SBP200 参数 Datasheet PDF下载

HD6417750SBP200图片预览
型号: HD6417750SBP200
PDF下载: 下载PDF文件 查看货源
内容描述: 的SuperH RISC引擎 [SuperH RISC engine]
分类和应用: 外围集成电路时钟
文件页数/大小: 1039 页 / 6201 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号HD6417750SBP200的Datasheet PDF文件第336页浏览型号HD6417750SBP200的Datasheet PDF文件第337页浏览型号HD6417750SBP200的Datasheet PDF文件第338页浏览型号HD6417750SBP200的Datasheet PDF文件第339页浏览型号HD6417750SBP200的Datasheet PDF文件第341页浏览型号HD6417750SBP200的Datasheet PDF文件第342页浏览型号HD6417750SBP200的Datasheet PDF文件第343页浏览型号HD6417750SBP200的Datasheet PDF文件第344页  
11.3.3 Alarm Function  
The use of the alarm function is illustrated in figure 11.4.  
Clock running  
Disable alarm interrupts  
Set alarm time  
Clear RCR1.AIE to prevent erroneous interrupts  
Be sure to reset the flag as it may have been  
set during alarm time setting  
Clear alarm flag  
Set RCR1.AIE to 1  
Enable alarm interrupts  
Monitor alarm time  
(Wait for interrupt or check  
alarm flag)  
Figure 11.4 Example of Use of Alarm Function  
An alarm can be generated by the second, minute, hour, day-of-week, day, month, or year (year is  
available only with the SH7750R) value, or a combination of these. Write 1 to the ENB bit in the  
alarm registers involved in the alarm setting, and set the alarm time in the lower bits. Write 0 to  
the ENB bit in registers not involved in the alarm setting.  
When the counter and the alarm time match, RCR1.AF is set to 1. Alarm detection can be  
confirmed by reading this bit, but normally an interrupt is used. If 1 has been written to  
RCR1.AIE, an alarm interrupt is generated in the event of alarm, enabling the alarm to be  
detected.  
The alarm flag remains set while the counter and alarm time match. If the alarm flag is cleared by  
writing 0 during this period, it will therefore be set again immediately afterward. This needs to be  
taken into consideration when writing the program.  
Rev. 6.0, 07/02, page 288 of 986  
 复制成功!