Watchdog - Philips LPC2119 User Manual

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller

19. WATCHDOG

FEATURES
• Internally resets chip if not periodically reloaded
• Debug mode
• Enabled by software but requires a hardware reset or a Watchdog reset/interrupt to be disabled
• Incorrect/Incomplete feed sequence causes reset/interrupt if enabled
• Flag to indicate Watchdog reset
• Programmable 32-bit timer with internal pre-scaler
• Selectable time period from (t
APPLICATIONS
The purpose of the Watchdog is to reset the microcontroller within a reasonable amount of time if it enters an erroneous state.
When enabled, the Watchdog will generate a system reset if the user program fails to "feed" (or reload) the Watchdog within a
predetermined amount of time.
DESCRIPTION
The Watchdog consists of a divide by 4 fixed pre-scaler and a 32-bit counter. The clock is fed to the timer via a pre-scaler. The
timer decrements when clocked. The minimum value from which the counter decrements is 0xFF. Setting a value lower than
0xFF causes 0xFF to be loaded in the counter. Hence the minimum Watchdog interval is (t
Watchdog interval is (t
x 2
pclk
- Set the Watchdog timer constant reload value in WDTC register.
- Setup mode in WDMOD register.
- Start the Watchdog by writing 0xAA followed by 0x55 to the WDFEED register.
- Watchdog should be fed again before the Watchdog counter underflows to prevent reset/interrupt.
When the Watchdog counter underflows, the program counter will start from 0x00000000 as in the case of external reset. The
Watchdog time-out flag (WDTOF) can be examined to determine if the Watchdog has caused the reset condition. The WDTOF
flag must be cleared by software.
Watchdog
x 256 x 4) to (t
x 2
pclk
pclk
32
x 4) in multiples of (t
pclk
32
x 4) in multiples of t
pclk
x 4). The Watchdog should be used in the following manner:
222
Preliminary User Manual
LPC2119/2129/2292/2294
x 4
x 256 x 4) and the maximum
pclk
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents