BS_Watchdog timer
RM0082
316/844
Doc ID 018672 Rev 1
16.5.2 Register
description
16.5.3 WdogLoad
register
The WdogLoad is a RW register that contains the value from which the counter is to
decrement. When this register is written to, the counter is immediately restarted from the
new value. The minimum valid value for WdogLoad is 32’h1.
Note:
1
If WdogLoad is set to 32’h0 then an interrupt is generated immediately.
2
The WdogLoad register must be programmed with the desired time-out interval before the
watchdog module is enabled (by setting the INTEN bit of the WdogControl register,
16.5.4 WdogValue
register
The WdogValue is a RO register that gives the current value of the decrementing counter.
16.5.5 WdogControl
register
The WdogControl is a RW register which allows the software to control the watchdog
module. The WdogControl register bit assignments are given in
.
16.5.6 WdogIntClr
register
A write of any value to the WO WdogIntClr (interrupt clear) register clears the watchdog
module interrupt. Then the counter is re-loaded with the value in the WdogLoad register and
another count down sequence starts.
Table 249.
WdogControl register bit assignments
Bit
Name
Reset value
Description
[31:02]
Reserved
-
Read: undefined. Write: should be zero.
[01]
RESEN
1’h0
Enable watchdog module reset output.
This bit acts as a mask for the reset output of the watchdog
module: it is set to enable the reset, and it is cleared to
disable the reset.
Note: If enabled (RESEN set to 1‘b1), the reset output is
asserted if the interrupt (raised when the counter reaches
zero) is not cleared by software (writing any value to
WdogIntClr register,
) before the counter next
reaches zero. After reset, the counter stops.
[00]
INTEN
1’h0
Enable the interrupt event.
Setting this bit, the counter and the interrupt are enabled. In
this case, the counter is re-loaded with the WdogLoad
register value and it starts to decrement according to
behaviour detailed in
. When the counter
reaches zero an interrupt is generated.
Clearing this bit, the counter and the interrupt are disabled.