© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
288
Philips Semiconductors
UM10139
Volume 1
Chapter 20: WDT
20.4 Register description
The watchdog contains 4 registers as shown in
below.
[1]
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
20.4.1 Watchdog Mode register (WDMOD - 0xE000 0000)
The WDMOD register controls the operation of the watchdog as per the combination of
WDEN and RESET bits.
Once the WDEN and/or WDRESET bits are set they can not be cleared by software. Both
flags are cleared by an external reset or a watchdog timer underflow.
WDTOF The Watchdog Time-Out Flag is set when the watchdog times out. This flag is
cleared by software.
WDINT The Watchdog Interrupt Flag is set when the watchdog times out. This flag is
cleared when any reset occurs. Once the watchdog interrupt is serviced, it can be
disabled in the VIC or the watchdog interrupt request will be generated indefinitely.
Table 281: Watchdog register map
Name
Description
Access Reset
value
Address
WDMOD
Watchdog Mode register. This register contains
the basic mode and status of the Watchdog Timer.
R/W
0
0xE000 0000
WDTC
Watchdog Timer Constant register. This register
determines the time-out value.
R/W
0xFF
0xE000 0004
WDFEED Watchdog Feed sequence register. Writing 0xAA
followed by 0x55 to this register reloads the
Watchdog timer to its preset value.
WO
NA
0xE000 0008
WDTV
Watchdog Timer Value register. This register reads
out the current value of the Watchdog timer.
RO
0xFF
0xE000 000C
Table 282: Watchdog operating modes selection
WDEN
WDRESET
Mode of Operation
0
X (0 or 1)
Debug/Operate without the watchdog running.
1
0
Watchdog Interrupt Mode: debug with the Watchdog interrupt but no
WDRESET enabled.
When this mode is selected, a watchdog counter underflow will set the
WDINT flag and the watchdog interrupt request will be generated.
1
1
Watchdog Reset Mode: operate with the watchdog interrupt and
WDRESET enabled.
When this mode is selected, a watchdog counter underflow will reset
the microcontroller. While the watchdog interrupt is also enabled in
this case (WDEN = 1) it will not be recognized since the watchdog
reset will clear the WDINT flag.