Watchdog Timer
11-2
Am186™CC/CH/CU Microcontrollers User’s Manual
11.3
SYSTEM DESIGN
Table 11-1 lists the watchdog timer signals that are multiplexed with other microcontroller
functions. Pinstraps are sampled only at external reset and do not affect the pin’s other
functions, so they are not shown in this table. Other multiplexed signals, when enabled,
either disable or alter any other functions that use the same pin.
.
Systems that require a guaranteed recovery time from software or hardware errors should
use the watchdog timer.
Generation of the internal NMI signal on the first watchdog timer time-out can be useful in
systems where it may be possible to recover from glitches, corrupted data, or incorrect code
without resetting either the controller or the board. This is especially true where potential
data recovery is important. Such systems should have the NMI interrupt handler routine in
ROM to ensure that it has not been corrupted by runaway code. However, in most systems,
the interrupt table, which must be located at address 00000h, is located in RAM and so is
subject to corruption.
Generation of the RESOUT signal should be used in systems where a system hang may
be caused by incorrect behavior of an external device. The watchdog timer reset duration,
and therefore the duration of the RESOUT signal on a watchdog timer reset, is 2
16
processor
clocks. This allows sufficient time for external devices to reach their reset state.
The watchdog timer must function in all cases where either the software or external devices
have failed to respond appropriately. The watchdog timer has incorporated several features
to ensure that this is the case.
■
The watchdog timer is active after reset.
■
The watchdog timer’s default configuration after a power-on reset is to generate a reset
on the first time-out and to assert the RESOUT signal.
■
Software can disable the Watchdog Timer Control (WDTCON) register after reset and,
while it is disabled, it can be written any number of times. When software enables the
watchdog timer, the register becomes read-only except for two flag bits. This allows
bootup or monitor code to disable the watchdog timer until the system has been
configured.
■
Each single write to the watchdog timer must be preceded by writes of a keyed sequence.
Detection of the keyed sequence allows a single write to the WDTCON register.
■
The watchdog timer time-out counter can only be reset by the initial enabling write to
the WDTCON register or by writing a special key sequence to the WDTCON register.
These features guarantee that the watchdog timer is not affected by runaway code.
Software can determine whether an NMI or reset event was caused by an external source
or by the watchdog timer by reading the WDTCON register. The NMIFLAG bit is set when
the watchdog timer generates an NMI; the RSTFLAG bit is set when the watchdog timer
generates a reset. Software can clear, but not set, these bits.
Table 11-1
Watchdog Timer Multiplexed Signals
Signal Function
Multiplexed
Signal(s)
Default
Signal
RES
Controller reset
—
RES
NMI
Nonmaskable interrupt
—
NMI
Содержание Am186 CC
Страница 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Страница 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Страница 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Страница 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Страница 39: ...Architectural Overview Am186 CC CH CU Microcontrollers User s Manual 1 15 Figure 1 6 32 Channel Linecard CH CC...
Страница 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Страница 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Страница 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Страница 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Страница 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Страница 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Страница 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Страница 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Страница 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Страница 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Страница 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Страница 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Страница 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...