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

GMS87C2020K 参数 Datasheet PDF下载

GMS87C2020K图片预览
型号: GMS87C2020K
PDF下载: 下载PDF文件 查看货源
内容描述: 现代微电子8位单芯片微控制器 [HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS]
分类和应用: 微控制器和处理器光电二极管电子可编程只读存储器
文件页数/大小: 107 页 / 1524 K
品牌: HYNIX [ HYNIX SEMICONDUCTOR ]
 浏览型号GMS87C2020K的Datasheet PDF文件第41页浏览型号GMS87C2020K的Datasheet PDF文件第42页浏览型号GMS87C2020K的Datasheet PDF文件第43页浏览型号GMS87C2020K的Datasheet PDF文件第44页浏览型号GMS87C2020K的Datasheet PDF文件第46页浏览型号GMS87C2020K的Datasheet PDF文件第47页浏览型号GMS87C2020K的Datasheet PDF文件第48页浏览型号GMS87C2020K的Datasheet PDF文件第49页  
HYUNDAI MicroElectronics  
11. WATCHDOG TIMER  
GMS81C2012/GMS81C2020  
The watchdog timer rapidly detects the CPU malfunction  
such as endless looping caused by noise or the like, and re-  
sumes the CPU to the normal state.  
The watchdog timer signal for detecting malfunction can  
be selected either a reset CPU or a interrupt request.  
Note: Because the watchdog timer counter is enabled af-  
ter clearing Basic Interval Timer, after the bit WDTON set to  
"1", maximum error of timer is depend on prescaler ratio of  
Basic Interval Timer. The 7-bit binary counter is cleared by  
setting WDTCL(bit7 of WDTR) and the WDTCL is cleared  
automatically after 1 machine cycle.  
When the watchdog timer is not being used for malfunc-  
tion detection, it can be used as a timer to generate an in-  
terrupt at fixed intervals. The purpose of the watchdog  
timer is to detect the malfunction (runaway) of program  
due to external noise or other causes and return the opera-  
tion to the normal condition.  
The RC oscillated watchdog timer is activated by setting  
the bit RCWDT as shown below.  
LDM  
LDM  
STOP  
NOP  
NOP  
:
CKCTLR,#3FH; enable the RC-osc WDT  
WDTR,#0FFH; set the WDT period  
; enter the STOP mode  
The watchdog timer has two types of clock source.  
; RC-osc WDT running  
The first type is an on-chip RC oscillator which does not  
require any external components. This RC oscillator is sep-  
arate from the external oscillator of the Xin pin. It means  
that the watchdog timer will run, even if the clock on the  
Xin pin of the device has been stopped, for example, by en-  
tering the STOP mode.  
The RCWDT oscillation period is vary with temperature,  
VDD and process variations from part to part (approxi-  
mately, 40~120uS). The following equation shows the  
RCWDT oscillated watchdog timer time-out.  
T
= C LK RC W D T×28×[W D TR.6~0]+ (C LK RC W D T×28)/2  
RCW D T  
The other type is a prescaled system clock.  
where, C LK  
= 40~120uS  
RCW D T  
The watchdog timer consists of 7-bit binary counter and  
the watchdog timer data register. When the value of 7-bit  
binary counter is equal to the lower 7 bits of WDTR, the  
interrupt request flag is generated. This can be used as  
WDT interrupt or reset the CPU in accordance with the bit  
WDTON.  
In addition, this watchdog timer can be used as a simple 7-  
bit timer by interrupt WDTIF. The interval of watchdog  
timer interrupt is decided by Basic Interval Timer. Interval  
equation is as below.  
T
WDT = [WDTR.6~0] × Interval of BIT  
clear  
Watchdog  
Counter (7-bit)  
clear  
BASIC INTERVAL TIMER  
OVERFLOW  
Count  
source  
“0”  
to reset CPU  
“1”  
comparator  
enable  
WDTON in CKCTLR [0ECH]  
WDTCL  
7-bit compare data  
WDTIF  
7
Watchdog Timer interrupt  
Watchdog Timer  
Register  
WDTR  
[0EDH]  
Internal bus line  
Figure 11-1 Block Diagram of Watchdog Timer  
MAR. 2000 Ver 1.00  
45  
 
 复制成功!