Design Considerations; Programming Considerations; Writing To The Wdt Reload Registers (Wdtrldh And Wdtrldl); Minimum Counter Reload Value - Intel 386 User Manual

Embedded microprocessor
Table of Contents

Advertisement

Intel386™ EX EMBEDDED MICROPROCESSOR USER'S MANUAL

17.5 DESIGN CONSIDERATIONS

This section outlines design considerations for the watchdog timer unit.
Depending on the system configuration, a WDT timeout can cause a maskable interrupt, a non-
maskable interrupt, or a system reset.
Maskable interrupt
Nonmaskable interrupt If you want a WDT timeout to cause a nonmaskable interrupt,
Reset

17.6 PROGRAMMING CONSIDERATIONS

This section outlines programming considerations for the watchdog timer unit.

17.6.1 Writing to the WDT Reload Registers (WDTRLDH and WDTRLDL)

WDTRLDH and WDTRLDL are 16 bit registers at addresses 0F4C0H and 0F4C2H respectively.
Therefore, when using a 32-bit write to load the two registers, the lower 16 bits should contain
the data for WDTRLDH and the higher 16 bits should contain the data for WDTRLDL.
For example, 4321H can be written to WDTRLDH and 0CCCCH to WDTRLDL using a 32-bit
write of the number 0CCCC4321H to I/O address 0F4C0H.

17.6.2 Minimum Counter Reload Value

To ensure correct operation of the Watchdog Timer, the WDT's counter should never be reloaded
with a value less than 8.

17.6.3 Watchdog Timer Unit Code Examples

This section includes these software routines:
ReLoadDownCounter
GetWDT_Count
WDT_BusMonitor
EnableWDTInterrupt
17-12
The WDT timeout signal is internally inverted and connected to the
interrupt control unit's slave IR7 line. If you want a WDT timeout to
generate a slave IR7 interrupt (maskable interrupt), you need only
enable (unmask) the interrupt (Refer to Chapter 9, for details).
Ensure that the slave 8259A is configured for edge-triggered
interrupts (refer to Chapter 9, Interrupt Control Unit) if IR7 is
unmasked. Otherwise, the WDT generates continuous interrupts.
connect the WDTOUT pin to the NMI input pin.
If you want a WDT timeout to reset the system, connect the
WDTOUT pin to the RESET input pin.
Initiates a lockout sequence
Reads the value of the counter
Places the WDT in Bus Monitor Mode
Enables WDT interrupts

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents