Electronic component search and free download site.
Transistors,MosFET ,Diode,Integrated circuits

OA87C20XX-64QT データシートの表示(PDF) - Unspecified

部品番号コンポーネント説明メーカー
OA87C20XX-64QT CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver ETC1
Unspecified 
OA87C20XX-64QT Datasheet PDF : 107 Pages
First Prev 41 42 43 44 45 46 47 48 49 50 Next Last
HMS81C2012A/2020A
11. WATCHDOG TIMER
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.
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 watchdog timer has two types of clock source.
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 other type is a prescaled system clock.
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.
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.
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
; RC-osc WDT running
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.
TRCWDT=CLKRCWDT×28×[WDTR.6~0]+(CLKRCWDT×28)/2
where, CLKRCWDT = 40~120uS
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.
TWDT = [WDTR.6~0] × Interval of BIT
BASIC INTERVAL TIMER
OVERFLOW
Count
source
clear
Watchdog
Counter (7-bit)
clear
WDTCL
comparator
7-bit compare data
[0EDH]
7
WDTR
Internal bus line
Watchdog Timer
Register
“0”
“1”
enable
to reset CPU
WDTON in CKCTLR [0ECH]
WDTIF
Watchdog Timer interrupt
Figure 11-1 Block Diagram of Watchdog Timer
42
SEP. 2004 Ver 2.00
Direct download click here

 

Share Link : 
All Rights Reserved© datasheetq.com 2015 - 2019  ] [ Privacy Policy ] [ Request Datasheet  ] [ Contact Us ]