m30833fjgp Renesas Electronics Corporation., m30833fjgp Datasheet - Page 134

no-image

m30833fjgp

Manufacturer Part Number
m30833fjgp
Description
Renesas 16/32-bit Single-chip Microcomputer M16c Family / M32c/80 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m30833fjgp D5
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
m30833fjgp#U3
Manufacturer:
NXP
Quantity:
1 003
Part Number:
m30833fjgp#U3
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
m30833fjgp#U5
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R
R
M
11. Watchdog Timer
e
E
3
. v
J
Figure 11.1 Watchdog Timer Block Diagram
2
0
The watchdog timer detects a program which is out of control. The watchdog timer contains a 15-bit counter
which is decremented by the CPU clock that the prescaler divides. The CM06 bit in the CM0 register
determines whether the watchdog timer interrupt request or reset is generated when the watchdog timer
underflows. The CM06 bit can be set to "1" (reset) only. Once the CM06 bit is set to "1", it cannot be
changed to "0" ( watchdog timer interrupt) by program. The CM06 bit is set to "0" only after reset.
When the main clock, on-chip oscillator clock, or the PLL clock runs as the CPU clock, the WDC7 bit in the
WDC register determines whether the prescaler divides by 16 or by 128. When the sub clock runs as the
CPU clock, the prescaler divides by 2 regardless of the WDC7 bit setting. Watchdog timer cycle is calcu-
lated as follows. Marginal errors, due to the prescaler, may occur in watchdog timer cycle.
When the main clock, on-chip oscillator clock, or PLL clock is selected as the CPU clock:
When the sub clock is selected as the CPU clock,
For example, if the CPU clock frequency is 30MHz and the prescaler divides by 16, watchdog timer cycle is
approximately 17.5 ms.
The watchdog timer is reset when the WDTS register is set and when a watchdog timer interrupt request is
generated. The prescaler is reset only when the microcomputer is reset. Both watchdog timer and prescaler
stop after reset. They begin counting when the WDTS register is set.
Write the WDTS register with shorter cycle than the watchdog timer cycle. Set the WDTS register also in the
beginning of the watchdog timer interrupt routine.
The watchdog timer and prescaler stop in stop mode, wait mode and hold state. They resume counting
from the value held when the mode or state is exited.
Figure 11.1 shows a block diagram of the watchdog timer. Figure 11.2 shows registers associated with the
watchdog timer.
1
C
9
3 .
B
8 /
0
1
3
0
3
J
G
HOLD Signal
4
a
Internal Reset Signal
Write to WDTS Register
0 -
o r
CPU Clock
n
CM06, CM07 : Bits in CM0 register
WDC7 : Bit in WDC register
Watchdog timer cycle =
Watchdog timer cycle =
3 .
1
u
, 1
3
p
1
2
(
M
0
0
3
6
2
C
Page 111
8 /
, 3
M
3
2
C
f o
8 /
4
3
8
) T
8
Divided by 2 prescaler x counter value of watchdog timer (32768)
Divide by 16 or 128 prescaler x counter value of watchdog timer (32768)
Prescaler
1/128
1/16
1/2
CM07 = 0
WDC7 = 0
CM07 = 0
WDC7 = 1
CM07 = 1
CPU clock
CPU clock
Watchdog Timer
Set to
7FFF
16
CM06
0
1
11. Watchdog Timer
Watchdog Timer
Interrupt Request
Reset

Related parts for m30833fjgp