Register Description; Watchdog Mode Register (Wdmod - 0Xe000 0000); User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

18.4 Register description

The watchdog contains 4 registers as shown in
Table 202: Watchdog register map
Name
WDMOD
WDTC
WDFEED Watchdog Feed sequence register. Writing 0xAA
WDTV
[1]

18.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.
Table 203: Watchdog operating modes selection
WDEN
0
1
1
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.

User manual

Description
Watchdog Mode register. This register contains
the basic mode and status of the Watchdog Timer.
Watchdog Timer Constant register. This register
determines the time-out value.
followed by 0x55 to this register reloads the
Watchdog timer to its preset value.
Watchdog Timer Value register. This register reads
out the current value of the Watchdog timer.
Reset value reflects the data stored in used bits only. It does not include reserved bits content.
WDRESET
Mode of Operation
X (0 or 1)
Debug/Operate without the watchdog running.
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
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.
Rev. 01 — 12 January 2006
UM10161
Table 202
below.
Access Reset
value
R/W
0
R/W
0xFF
WO
NA
RO
0xFF
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Chapter 18: WDT
Address
[1]
0xE000 0000
0xE000 0004
0xE000 0008
0xE000 000C
226

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents