Watchdog control (wdcon), Watchdog control (wdcon) -36 – Maxim Integrated Ultra-High-Speed Flash Microcontroller User Manual
Page 44

4-36
Ultra-High-Speed Flash
Microcontroller User’s Guide
R = Unrestricted read, W = Unrestricted write, T = Timed-access write only, -n = Value after reset, * = see description
Watchdog Control (WDCON)
7
6
5
4
3
2
1
0
SFR D8h
SMOD_1
POR
EPFI
PFI
WDIF
WTRF
EWT
RWT
RW-0
RT-*
RW-0
RW-*
RT-0
RW-*
RT-*
RT-0
SMOD_1
Bit 7
POR
Bit 6
EPFI
Bit 5
PFI
Bit 4
WDIF
Bit 3
WTRF
Bit 2
EWT
Bit 1
Serial Modification. This bit controls the doubling of the serial port 1 baud rate in modes 1, 2, and 3.
0 = Serial port 1 baud rate operates at normal speed.
1 = Serial port 1 baud rate is doubled.
Power-On Reset Flag. This bit indicates whether the last reset was a power-on reset. This bit is typ-
ically interrogated following a reset to determine if the reset was caused by a power-on reset. It must
be cleared by a timed access write before the next reset of any kind or user software may erroneously
determine that another power-on reset has occurred. This bit is set following a power-on reset and
unaffected by all other resets. This bit automatically cleared when the ROM loader is invoked.
0 = Last reset was from a source other than a power-on reset.
1 = Last reset was a power-on reset.
Enable Power-Fail Interrupt. This bit enables/disables the ability of the internal bandgap refer-
ence to generate a power-fail interrupt when V
CC
falls below approximately 4.5V. While in stop
mode, both this bit and the bandgap Select bit, BGS (EXIF.0), must be set to enable the power-fail
interrupt.
0 = Power-fail interrupt disabled.
1 = Power-fail interrupt enabled during normal operation. Power-fail interrupt enabled in stop mode
if BGS is set.
Power-Fail Interrupt Flag. When set, this bit indicates that a power-fail interrupt has occurred. This
bit must be cleared in software before exiting the interrupt service routine, or another interrupt is
generated. Setting this bit in software generates a power-fail interrupt, if enabled. This bit is auto-
matically cleared when the ROM loader is invoked.
Watchdog Interrupt Flag. This bit indicates if a watchdog timer event has occurred. The timeout
period of the watchdog timer is controlled by the Watchdog Timer Mode Select bits (CKCON.7-6).
The Watchdog Timer Interrupt Enable bit, EWDI (EIE.4), and Enable Watchdog Timer Reset bit, EWT
(WDCON.1), determine what action is taken. This bit must be cleared in software before exiting the
interrupt service routine or another interrupt is generated. Setting this bit in software generates a
watchdog interrupt if enabled. This bit can only be modified using a Timed Access Procedure.
Watchdog Timer Reset Flag. When set, this bit indicates that a watchdog timer reset has occurred.
It is typically interrogated to determine if a reset was caused by watchdog timer reset. It is cleared
by a power-on reset but otherwise must be cleared by software before the next reset of any kind or
software can erroneously determine that a watchdog timer reset has occurred. Setting this bit in soft-
ware does not generate a watchdog timer reset. If the EWT bit is cleared, the watchdog timer has
no effect on this bit. This bit is automatically cleared when the ROM loader is invoked.
Enable Watchdog Timer Reset. This bit enables/disables the generation of a watchdog timer
reset 512 system clocks after the occurrence of a watchdog timeout. This bit can only be modified
using a Timed Access Procedure and is unaffected by all other resets. The default power-on reset
state of EWT is determined by Option Control Register bit 3 (OCR.3) located in flash memory. This
bit will automatically be cleared when the ROM loader is invoked.
0 = A watchdog reset is not generated after a watchdog timeout
1 = A watchdog reset is generated 512 system clocks after a watchdog timeout unless RWT is
strobed or EWT is cleared.
Maxim Integrated