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

7906 参数 Datasheet PDF下载

7906图片预览
型号: 7906
PDF下载: 下载PDF文件 查看货源
内容描述: 16位单片机 [16-BIT SINGLE-CHIP MICROCOMPUTER]
分类和应用: 计算机
文件页数/大小: 531 页 / 3056 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号7906的Datasheet PDF文件第335页浏览型号7906的Datasheet PDF文件第336页浏览型号7906的Datasheet PDF文件第337页浏览型号7906的Datasheet PDF文件第338页浏览型号7906的Datasheet PDF文件第340页浏览型号7906的Datasheet PDF文件第341页浏览型号7906的Datasheet PDF文件第342页浏览型号7906的Datasheet PDF文件第343页  
WATCHDOG TIMER  
14.2 Operation description  
Be sure to write dummy data to the watchdog timer register (address 6016) before the most significant bit  
of the watchdog timer becomes 0.When writing to the watchdog timer is not performed owing to a  
program runaway and the watchdog timers most significant bit becomes 0,a watchdog timer interrupt  
request occurs. This informs that a program runaway has occurred.  
In order to reset the microcomputer when a program runaway has been detected, write 1to the software  
reset bit (bit 6 at address 5E16) in the watchdog timer interrupt routine.  
Figure 14.2.1 shows an example of a program runaway detected by the watchdog timer.  
Main routine  
Watchdog timer initialized  
(Value of watchdog timer :  
FFF16) (Note 1)  
Watchdog timer register  
(Address 6016  
8-bit dummy data  
)
Watchdog timer  
interrupt request occurrence  
(In other words, program run-  
away is detected.)  
Watchdog timer interrupt routine  
Software reset bit  
(bit 6 at address 5E16  
1(Note 2)  
Reset microcomputer  
)
RTI  
Notes 1: Be sure to initialize the watchdog timer before the most significant bit of the  
watchdog timer becomes 0.(In other words, be sure to write dummy data to  
address 6016 before a watchdog timer interrupt request occurs).  
2: When a program runaway occurs, values of the data bank register (DT), direct  
page register (DPRi), etc., may be changed. When 1is written to the software  
reset bit by an addressing mode using DT, DPRi, etc., be sure to set values to  
DT and DPRi, etc. again.  
Fig. 14.2.1 Example of program runaway detection by watchdog timer  
7906 Group Users Manual Rev.2.0  
14-6  
 复制成功!