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

SN8P26042A 参数 Datasheet PDF下载

SN8P26042A图片预览
型号: SN8P26042A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 101 页 / 733 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P26042A的Datasheet PDF文件第69页浏览型号SN8P26042A的Datasheet PDF文件第70页浏览型号SN8P26042A的Datasheet PDF文件第71页浏览型号SN8P26042A的Datasheet PDF文件第72页浏览型号SN8P26042A的Datasheet PDF文件第74页浏览型号SN8P26042A的Datasheet PDF文件第75页浏览型号SN8P26042A的Datasheet PDF文件第76页浏览型号SN8P26042A的Datasheet PDF文件第77页  
SN8P2604A  
8-Bit Micro-Controller  
¾
Example: Clear watchdog timer by @RST_WDT macro.  
Main:  
@RST_WDT  
; Clear the watchdog timer.  
CALL  
CALL  
SUB1  
SUB2  
JMP  
MAIN  
Watchdog timer application note is as following.  
z
Before clearing watchdog timer, check I/O status and check RAM contents can improve system error.  
z
z
Don’t clear watchdog timer in interrupt vector and interrupt service routine. That can improve main routine fail.  
Clearing watchdog timer program is only at one part of the program. This way is the best structure to enhance the  
watchdog timer function.  
¾
Example: An operation of watchdog timer is as following. To clear the watchdog timer counter in the top  
of the main routine of the program.  
Main:  
Err:  
JMP $  
; Check I/O.  
; Check RAM  
; I/O or RAM error. Program jump here and don’t  
; clear watchdog. Wait watchdog timer overflow to reset IC.  
Correct:  
; I/O and RAM are correct. Clear watchdog timer and  
; execute program.  
B0BSET  
FWDRST  
; Only one clearing watchdog timer of whole program.  
CALL  
CALL  
SUB1  
SUB2  
JMP  
MAIN  
SONiX TECHNOLOGY CO., LTD  
Page 73  
Version 0.3  
 复制成功!