參數(shù)資料
型號(hào): M37547G2-XXXFP
元件分類(lèi): 微控制器/微處理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO36
封裝: 8.40 X 15 MM, 0.80 MM PITCH, PLASTIC, SSOP-36
文件頁(yè)數(shù): 48/97頁(yè)
文件大?。?/td> 1064K
代理商: M37547G2-XXXFP
REJ03B0156-0122
Rev.1.22
Mar 31, 2009
page 52 of 94
7547 Group
Watchdog Timer
The watchdog timer gives a means for returning to a reset status
when the program fails to run on its normal loop due to a runaway.
The watchdog timer consists of an 8-bit watchdog timer H and an
8-bit watchdog timer L, being a 16-bit counter.
● Standard operation of watchdog timer
(1) Start of watchdog timer
The watchdog timer starts operating by setting value of the func-
tion set ROM data 2 (FSROM2: address 0FFA16) or writing to the
watchdog timer control register (WDTCON: address 003916).
Set “0” to the watchdog timer start selection bit (bit 1 of FSROM2)
when operation starts by setting value of FSROM2. In this case,
the watchdog timer starts operating after releasing reset.
Write an arbitrary value to WDTCON when FSROM2 is set to be
invalid and operation starts by program. Operation by program
can start even when “1” (stop state after releasing reset) is set to
the watchdog timer start selection bit.
(2) Operation of watchdog timer
Watchdog timer L is set to “FF16”and watchdog timer H is set to
“FF16” by reset or writing an arbitrary value to WDTCON.
When the watchdog timer starts operating, the selected clock is
counted and internal reset occurs by the watchdog timer H under-
flow.
Accordingly, write to WDTCON before underflow by program.
When WDTCON is read, the values of the STP instruction function
selection bit, watchdog timer H count source selection bit and the
high-order 6 bits of the watchdog timer H are read.
(3) Count source clock of watchdog timer
The count source clock of the watchdog timer can be selected by
the watchdog timer source clock selection bit (bit 0 of FSROM2).
If “0” is set to the watchdog timer source clock selection bit, the
count source clock of the watchdog timer always is the on-chip os-
cillator output/16.
It changes by setting the clock division ratio selection bits (bit 7
and bit 6 of the CPU mode register) when “1” is set to the watch-
dog timer source clock selection bit or FSROM2 is set to be
invalid.
When a double-speed mode, a high-speed mode, and a middle-
speed mode are selected by the clock division ratio selection bits,
the count source clock of the watchdog timer becomes f(XIN)/16.
When the supply from on-chip oscillator is selected, it becomes
the on-chip oscillator output/16.
(4) Watchdog timer H count source selection bit
The count source of watchdog timer H can be selected by
FSROM2 or program.
When “0” is set to watchdog timer H count source selection bit (bit
2 of FSROM2), the watchdog timer L underflow signal is selected
as the count source of watchdog timer H and the detection time is
131.072 ms at f(XIN) = 8 MHz.
When “1” is set to this bit, the clock selected as the count source
of watchdog timer L is input to watchdog timer H. In this case, the
detection time is 512 s at f(XIN) =8 MHz.
When FSROM2 is set to be invalid, the count source of watchdog
timer can be set by watchdog timer H count source selection bit
(bit 7 of WDTCON).
When “0” is set to this bit, the watchdog timer L underflow signal is
selected as the count source of watchdog timer H.
When “1” is set to this bit, the clock selected as the count source
of watchdog timer L is input to watchdog timer H.
This bit is cleared to “0” after reset.
(5) STP instruction function selection bit
The function of the STP instruction can be selected by FSROM2
or program.
When “0” is set to the STP instruction function selection bit (bit 3
of FSROM2), system enters into the stop mode at the STP instruc-
tion execution.
When “1” is set to this bit, internal reset occurs at the STP instruc-
tion execution. When the function of the STP instruction is set by
FSROM2, it cannot be changed by program.
When setting value of FSROM2 is invalid, the function of the STP
instruction can be set by the STP instruction function selection bit
(bit 6 of WDTCON).
When “0” is set to this bit, system enters into the stop mode at the
STP instruction execution.
When “1” is set to this bit, internal reset occurs at the STP instruc-
tion execution.
Once this bit is set to “1”, it cannot be changed to “0” by program.
This bit is cleared to “0” after reset.
■ Notes on watchdog timer
1. The watchdog timer is operating during the wait mode. Write
data to the watchdog timer control register to prevent timer un-
derflow.
2. The watchdog timer stops during the stop mode. However, the
watchdog timer is running during the oscillation stabilizing time
after the STP instruction is released. In order to avoid the un-
derflow of the watchdog timer, the watchdog timer count source
selection bit (bit 7 of watchdog timer control register (address
3916)) before executing the STP instruction.
3. The STP instruction function selection bit (bit 6 of watchdog
timer control register (address 3916)) can be rewritten only once
after releasing reset. After rewriting it is disable to write any data
to this bit.
相關(guān)PDF資料
PDF描述
M37547G4FP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO36
M37547G4-XXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO36
M37547G4-XXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO36
M37548G2-XXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO20
M37548G2FP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO20
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M37547G4FP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37547G4FP#U0 功能描述:MCU 2/5V 16K 36-SSOP RoHS:是 類(lèi)別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:740/38000 標(biāo)準(zhǔn)包裝:250 系列:80C 核心處理器:8051 芯體尺寸:8-位 速度:16MHz 連通性:EBI/EMI,I²C,UART/USART 外圍設(shè)備:POR,PWM,WDT 輸入/輸出數(shù):40 程序存儲(chǔ)器容量:- 程序存儲(chǔ)器類(lèi)型:ROMless EEPROM 大小:- RAM 容量:256 x 8 電壓 - 電源 (Vcc/Vdd):4.5 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x10b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 85°C 封裝/外殼:68-LCC(J 形引線) 包裝:帶卷 (TR)
M37547G4-XXXFP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37548G1FP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37548G1-XXXFP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER