参数资料
型号: M37546G2SP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP32
封装: 8.90 X 28 MM, 1.78 MM PITCH, PLASTIC, SDIP-32
文件页数: 59/105页
文件大小: 1105K
代理商: M37546G2SP
REJ03B0160-0122 Rev.1.22 Mar 13, 2009
page 55 of 100
7546 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.
相关PDF资料
PDF描述
M38047M8-XXXHP 8-BIT, MROM, 8.4 MHz, MICROCONTROLLER, PQFP64
M102E1000.0000DL 1000 MHz, OTHER CLOCK GENERATOR, MDIP24
M102P0200.0000DL 200 MHz, OTHER CLOCK GENERATOR, MDIP24
M30201F6-FP 16-BIT, FLASH, 10 MHz, MICROCONTROLLER, PQFP56
M30800SGP 16-BIT, MROM, 20 MHz, MICROCONTROLLER, PQFP100
相关代理商/技术参数
参数描述
M37546G2SP#U0 功能描述:MCU 3/5V 8K 32-SDIP QZ-ROM RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:740/38000 标准包装:250 系列:80C 核心处理器:8051 芯体尺寸:8-位 速度:16MHz 连通性:EBI/EMI,I²C,UART/USART 外围设备:POR,PWM,WDT 输入/输出数:40 程序存储器容量:- 程序存储器类型:ROMless EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):4.5 V ~ 5.5 V 数据转换器:A/D 8x10b 振荡器型:内部 工作温度:-40°C ~ 85°C 封装/外壳:68-LCC(J 形引线) 包装:带卷 (TR)
M37546G2-XXXGP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37546G2-XXXHP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37546G2-XXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37546G4GP 功能描述:MCU 2/5V 16K 32-LQFP RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:740/38000 标准包装:250 系列:80C 核心处理器:8051 芯体尺寸:8-位 速度:16MHz 连通性:EBI/EMI,I²C,UART/USART 外围设备:POR,PWM,WDT 输入/输出数:40 程序存储器容量:- 程序存储器类型:ROMless EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):4.5 V ~ 5.5 V 数据转换器:A/D 8x10b 振荡器型:内部 工作温度:-40°C ~ 85°C 封装/外壳:68-LCC(J 形引线) 包装:带卷 (TR)