UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
133 of 258
NXP Semiconductors
UM10429
Chapter 14: LPC1102 WatchDog Timer (WDT)
[1]
Reset Value reflects the data stored in used bits only. It does not include reserved bits content.
14.7.1 Watchdog Mode register (WDMOD - 0x4000 0000)
The WDMOD register controls the operation of the Watchdog through the combination of
WDEN and RESET bits. Note that a watchdog feed must be performed before any
changes to the WDMOD register take effect.
Once the
WDEN
and/or
WDRESET
bits are set, they can not be cleared by software. Both
flags are cleared by a 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 or a POR or Brown-Out-Detect reset.
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 NVIC or the watchdog interrupt request will be generated indefinitely. The
intent of the watchdog interrupt is to allow debugging watchdog activity without resetting
the device when the watchdog overflows.
Watchdog reset or interrupt will occur any time the watchdog is running and has an
operating clock source. Any clock source works in Sleep mode, and if a watchdog
interrupt occurs in Sleep mode, it will wake up the device.
Table 129. Register overview: Watchdog timer (base address 0x4000 4000)
Name
Access Address
offset
Description
Reset
Value
WDMOD
R/W
0x000
Watchdog mode register. This register contains the
basic mode and status of the Watchdog Timer.
0
WDTC
R/W
0x004
Watchdog timer constant register. This register
determines the time-out value.
0xFF
WDFEED
WO
0x008
Watchdog feed sequence register. Writing 0xAA
followed by 0x55 to this register reloads the
Watchdog timer with the value contained in WDTC.
NA
WDTV
RO
0x00C
Watchdog timer value register. This register reads
out the current value of the Watchdog timer.
0xFF
Table 130. Watchdog Mode register (WDMOD - address 0x4000 4000) bit description
Bit
Symbol
Description
Reset Value
0
WDEN
WDEN Watchdog enable bit (Set Only). When 1, the
watchdog timer is running.
0
1
WDRESET WDRESET Watchdog reset enable bit (Set Only). When 1,
a watchdog time-out will cause a chip reset.
0
2
WDTOF
WDTOF Watchdog time-out flag. Set when the watchdog
timer times out, cleared by software.
0 (Only after
POR and BOD
reset)
3
WDINT
WDINT Watchdog interrupt flag (Read Only, not clearable
by software).
0
7:4
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
31:8
-
reserved
-