
5.3 Registers and register details
54
Chapter 5: Watchdog Timer, Timebase Timer, and Watch Timer Functions
MB90580 Series
5.3.1 WDTC (Watch-Dog Timer Control Register)
Don’t use read-modify-write command to access this register, otherwise malfunction will occur.
[bits 7 to 3] PONR, STBR, WRST, ERST, and SRST
These flags indicate the reset causes. The flags are set upon a reset as described in Table 5.3.1a.
All bits are cleared to '0' after the WDTC register is read. The WDTC register is a read-only register.
This is a read-only register. Note that during power-on only, the contents of the bits that indicate
sources other than power-on are not guaranteed. Therefore, software should be designed to ignore the
other bits when the PONR bit is "1".
Table 5.3.1a Reset cause registers
(*: The previous value is maintained.)
[bit 2] WTE
While the watch-dog timer is stopped, writing '0' to this bit activates the watch-dog timer. Subsequently,
writing '0' clears the watch-dog timer counter. Writing '1' has no effect.
The watch-dog timer is stopped by power-on, hardware standby, or reset by watch-dog timer. '1' is
always read from this bit.
[Bits 1, 0] WT1, WT0
These bits select the watchdog interval time. Only the data written when the watchdog timer is started
up is valid. Data written to these bits at any time other than watchdog startup is ignored. Note that the
clock that is input to the watchdog timer is selected according to the result of ANDing the WDCS bit of
the WTC and the SCM bit of the LPMCR. In other words, if WDCS is set to "1", then the timebase timer
output can be selected if the main clock and the PLL clock are selected, and the watch timer output
can be selected if the subclock is selected.
The interval time settings are shown in Table 5.3.1a.
These bits are write-only bits.
Reset cause
PONR
STBR
WRST
ERST
SRST
Power-on
1
—
—
—
—
Hardware standby
*
1
*
*
*
Watch-dog timer
*
*
1
*
*
External pin
*
*
*
1
*
RST bit
*
*
*
*
1
PONR
STBR
WRST
ERST
SRST
WTE
WT1
WT0
7
6
5
4
3
2
1
0
Address : 0000A8
H
(R)
(X)
(R)
(X)
(R)
(X)
(R)
(X)
(R)
(X)
(W)
(1)
(W)
(1)
(W)
(1)
Read/write
Initial value
Bit number
Watch-Dog timer control register
WDTC