Power Up Initialization; Timeout Values; Using The Watchdog In An Application; Watchdog Reset - Intel NetStructure ZT 5504 Manual

System master processor board
Table of Contents

Advertisement

Power Up Initialization

The watchdog timer's logic is initialized at power up. This ensures that the STAGE1 MONITOR,
STAGE2 MONITOR, STAGE1 ENABLE, and STAGE2 ENABLE status and control bits power
up to unasserted states (0). This allows an application to determine if the reset was caused by
a watchdog timeout or a power up.

Timeout Values

The watchdog timer has a separate slow clock source that runs at a maximum frequency of
32 Hz (25 Hz nominal). Because the clock is based on an RC oscillator, the nominal timeout
period is approximately 30% longer than the minimum value. The watchdog is guaranteed to
timeout in no less than the programmed minimum value.

Using the Watchdog in an Application

The following topics are provided to aid you in learning to use watchdog in an application. The
watchdog's Reset and NMI functions are described and sample code is provided.
Watchdog Reset and NMI are controlled through the watchdog's "Control and Status Register",
documented in Appendix C as

Watchdog Reset

An application using the reset feature enables the watchdog reset, sets the terminal count
period, and then periodically strobes the watchdog to keep it from resetting the system. If a
strobe is missed, the watchdog times out and resets the system hardware.

Enabling the Watchdog Reset

C code for enabling the watchdog reset might look like the following:
#define WD_RESET_EN_BIT_SET
void EnableWatchdogReset(void){
unsigned char WdValue;
WdValue = inb(WD_CSR_IO_ADDRESS);
WdValue |= WD_RESET_EN_BIT_SET;
outb(WD_CSR_IO_ADDRESS,WdValue);
}
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Watchdog
(79h).
0x20
// Holds watchdog register values.
//
// Read the current contents of the
// watchdog register.
// Assert the enable bit in the
// local copy.
// Assert the enable in the
// watchdog register.
7. Watchdog Timer
47

Advertisement

Table of Contents
loading

Table of Contents