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

GMS82524TK 参数 Datasheet PDF下载

GMS82524TK图片预览
型号: GMS82524TK
PDF下载: 下载PDF文件 查看货源
内容描述: 8位单芯片微控制器 [8-BIT SINGLE-CHIP MICROCONTROLLERS]
分类和应用: 微控制器
文件页数/大小: 93 页 / 1003 K
品牌: HYNIX [ HYNIX SEMICONDUCTOR ]
 浏览型号GMS82524TK的Datasheet PDF文件第54页浏览型号GMS82524TK的Datasheet PDF文件第55页浏览型号GMS82524TK的Datasheet PDF文件第56页浏览型号GMS82524TK的Datasheet PDF文件第57页浏览型号GMS82524TK的Datasheet PDF文件第59页浏览型号GMS82524TK的Datasheet PDF文件第60页浏览型号GMS82524TK的Datasheet PDF文件第61页浏览型号GMS82524TK的Datasheet PDF文件第62页  
HYUNDAI MicroElectronics  
GMS82512/16/24  
Example: Sets the watchdog timer detection time to 0.5 sec at 4.19MHz  
LDM  
LDM  
CKCTLR,#3FH  
WDTR,#04FH  
;Select 1/2048 clock source, WDTON 1, Clear Counter  
LDM  
:
WDTR,#04FH  
WDTR,#04FH  
WDTR,#04FH  
;Clear counter  
;Clear counter  
;Clear counter  
:
Within WDT  
detection time  
:
:
LDM  
:
:
Within WDT  
detection time  
:
:
LDM  
Enable and Disable Watchdog  
Watchdog Timer Interrupt  
Watchdog timer is enabled by setting WDTON (bit 5 in  
CKCTLR) to “1”. WDTON is initialized to “0” during re-  
set and it should be set to “1” to operate after reset is re-  
leased.  
The watchdog timer can be also used as a simple 6-bit tim-  
er by clearing bit5 of CKCTLR to “0”. The interval of  
watchdog timer interrupt is decided by Basic Interval Tim-  
er. Interval equation is shown as below.  
Example: Enables watchdog timer for Reset  
T = WDTR × Interval of BIT  
:
LDM  
:
CKCTLR,#xx1x_xxxxB;WDTON 1  
The stack pointer (SP) should be initialized before using  
the watchdog timer output as an interrupt source.  
:
Example: 6-bit timer interrupt set up.  
The watchdog timer is disabled by clearing bit 5 (WD-  
TON) of CKCTLR. The watchdog timer is halted in STOP  
mode and restarts automatically after STOP mode is re-  
leased.  
LDM  
LDM  
CKCTLR,#xx0xxxxxB;WDTON 0  
WDTR,#7FH  
;WDTCL 1  
:
Source clock  
BIT overflow  
3
3
0
2
0
1
2
1
Binary-counter  
Counter  
Clear  
3
n
WDTR  
Match  
Detect  
WDTIF interrupt  
WDTR “0100_0011 ”  
B
WDT reset  
reset  
Figure 15-3 Watchdog timer Timing  
If the watchdog timer output becomes active, a reset is gen-  
erated, which drives the RESET pin low to reset the inter-  
nal hardware.  
The main clock oscillator also turns on when a watchdog  
timer reset is generated in sub clock mode.  
FEB. 2000 Ver 1.00  
55  
 复制成功!