参数资料
型号: M38748EAF-XXXFS
厂商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
中文描述: 单芯片8位CMOS微机
文件页数: 59/92页
文件大小: 1292K
代理商: M38748EAF-XXXFS
59
3874 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
WATCHDOG TIMER
The watchdog timer gives a mean of returning to the reset status
when a program cannot run on a normal loop (for example, be-
cause of a software run-away). The watchdog timer consists of an
8-bit watchdog timer L and a 12-bit watchdog timer H.
Watchdog Timer Initial Value
Watchdog timer L is set to “FF
16
” and watchdog timer H is set to
“FFF
16
” by writing to the watchdog timer control register or at a re-
set. Any write instruction that causes a write signal can be used,
such as the STA, LDM, CLB, etc. Data can only be written to bits
6 and 7 of the watchdog control register. Regardless of the value
written to bits 0 to 5, the above-mentioned value will be set to
each timer.
Watchdog Timer Operations
The watchdog timer stops at reset and a countdown is started by
the writing to the watchdog timer control register. An internal reset
occurs when watchdog timer H underflows. The reset is released
after its release time. After the release, the program is restarted
from the reset vector address. Usually, write to the watchdog timer
control register by software before an underflow of the watchdog
timer H. The watchdog timer does not function if the watchdog
timer control register is not written to at least once.
When bit 6 of the watchdog timer control register is kept at “0”, the
STP instruction is enabled. When that is executed, both the clock
and the watchdog timer stop. Count re-starts at the same time as
the release of stop mode
(Note)
. The watchdog timer does not
stop while a WIT instruction is executed. In addition, the STP in-
struction is disabled by writing “1” to this bit again. When the STP
instruction is executed at this time, it is processed as an undefined
instruction, and an internal reset occurs. Once a “1” is written to
this bit, it cannot be programmed to “0” again.
The following shows the period between the write execution to the
watchdog timer control register and the underflow of watchdog
timer H.
Bit 7 of the watchdog timer control register is “0”:
when X
CIN
= 32 kHz; 524 s
when X
IN
= 6.4 MHz; 2.6 s
Bit 7 of the watchdog timer control register is “1”:
when X
CIN
= 32 kHz; 2 s
when X
IN
= 6.4 MHz; 10 ms
Note:
The watchdog timer continues to count even while waiting for a stop
release. Therefore, make sure that watchdog timer H does not un-
derflow during this period.
Fig. 63 Block diagram of Watchdog timer
Fig. 64 Structure of Watchdog timer control register
X
IN
Data bus
X
CIN
“10”
“00”
“01”
“11”
Main clock division
ratio selection bits
(Note)
“0”
“1”
1/16
Watchdog timer H count
source selection bit
Reset
circuit
STP instruction disable bit
STP instruction
Watchdog timer H (12)
“FF
16
” is set when
watchdog timer
control register is
written to.
Internal reset
RESET
Watchdog timer L (8)
Note:
Either double-speed, high-speed, middle-speed, or low-speed mode is selected by bits 7 and 6 of the CPU mode register.
“FF
16
” is set when
watchdog timer
control register is
written to.
Reset release time wait
b0
STP instruction disable bit
0: STP instruction enabled
1: STP instruction disabled
Watchdog timer H count source selection bit
0: Watchdog timer L underflow
1: f(X
IN
)/16 or f(X
CIN
)/16
Watchdog timer H (for read-out of high-order 6 bit)
Watchdog timer control register
(WDTCON : address 001E
16
)
b7
相关PDF资料
PDF描述
M38748EAF-XXXGP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EDD-XXXFS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EDD-XXXGP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EDF-XXXFS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EDF-XXXGP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
相关代理商/技术参数
参数描述
M38748EAF-XXXGP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EAT-XXXFS 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EAT-XXXGP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EBD-XXXFS 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38748EBD-XXXGP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER