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

SN8P1602BS 参数 Datasheet PDF下载

SN8P1602BS图片预览
型号: SN8P1602BS
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 76 页 / 430 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1602BS的Datasheet PDF文件第45页浏览型号SN8P1602BS的Datasheet PDF文件第46页浏览型号SN8P1602BS的Datasheet PDF文件第47页浏览型号SN8P1602BS的Datasheet PDF文件第48页浏览型号SN8P1602BS的Datasheet PDF文件第50页浏览型号SN8P1602BS的Datasheet PDF文件第51页浏览型号SN8P1602BS的Datasheet PDF文件第52页浏览型号SN8P1602BS的Datasheet PDF文件第53页  
SN8P1602B  
8-Bit Micro-Controller  
8TIMERS  
WATCHDOG TIMER (WDT)  
The watchdog timer (WDT) is a binary up counter designed for monitoring program execution. If the program goes into  
the unknown status by noise interference, WDT overflow signal raises and resets MCU. The instruction that clears the  
watchdog timer (“ B0BSET FWDRST “) should be executed within a certain period. If an instruction that clears the  
watchdog timer is not executed within the period and the watchdog timer overflows, reset signal is generated and  
system is restarted.  
0CAH  
OSCM  
Read/Write  
After reset  
Bit 7  
WTCKS  
R/W  
Bit 6  
WDRST  
R/W  
Bit 5  
0
-
Bit 4  
CPUM1  
R/W  
Bit 3  
CPUM0  
R/W  
Bit 2  
CLKMD  
R/W  
Bit 1  
STPHX  
R/W  
0
Bit 0  
0
-
0
0
-
0
0
0
-
WDRST: Watchdog timer reset bit. 0 = Non reset, 1 = clear the watchdog timer counter.  
WTCKS: Watchdog clock source select bit 0 = Fcpu, 1 = internal RC low clock.  
Watchdog timer overflow table.  
WTCKS CLKMD  
Code Option  
Watchdog Timer Overflow Time  
1 / ( Fcpu ÷ 214 ÷ 16 ) = 293 ms, Fosc=3.58MHz  
1 / ( Fcpu ÷ 28 ÷ 16 ) = 500 ms, Fosc=32768Hz  
1 / ( Fcpu ÷ 214 ÷ 16 ) = 65.5s, Fosc=16KHz@3V  
1 / ( 16K ÷ 512 ÷ 16 ) ~ 0.5s @3V  
0
0
0
1
-
0
0
1
-
4M_X’tal / 12M_X’tal / RC  
32K_X’tal  
-
-
-
Enable Int_16K_RC  
1 / ( 16K ÷ 512 ÷ 16 ) ~ 0.5s @3V  
Note: The watchdog timer can be enabled or disabled by the code option. If disabled, the watchdog  
timer can also be served as fixed-period timer by checking the NT0 flag.  
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:  
B0BSET  
FWDRST  
; Clear the watchdog timer counter.  
.
.
CALL  
SUB1  
CALL  
SUB2  
.
.
.
.
.
.
JMP  
MAIN  
SONiX TECHNOLOGY CO., LTD  
Page 49  
Version 1.1  
 复制成功!