The counter is incremented at a maximum rate determined by the watchdog clock selection.
Each cycle, the counter can be conditionally incremented depending on the existence of certain
conditions, including always incrementing or incrementing only when the processor is not
asleep.
The counter can also be reset to zero depending on certain conditions, such as a successful
write to
wdogfeed
or the counter matching the compare value.
The WDT unit clock,
wdogclk
, is driven by the low-frequency clock
lfclk
. It runs at approxi-
mately 32 kHz.
Watchdog Configuration Register (
wdogcfg: wdog Configuration (
wdogcfg
)
Register Offset
0x0
Bits
Field Name
Attr.
Rst.
Description
[3:0]
wdogscale
RW
X
Counter scale value.
[7:4]
Reserved
8
wdogrsten
RW
0x0
Controls whether the comparator output can set
the wdogrst bit and hence cause a full reset.
9
wdogzerocmp
RW
X
Reset counter to zero after match.
[11:10]
Reserved
12
wdogenalways
RW
0x0
Enable Always - run continuously
13
wdogcoreawake
RW
0x0
Increment the watchdog counter if the processor is
not asleep
[27:14]
Reserved
28
wdogip0
RW
X
Interrupt 0 Pending
[31:29]
Reserved
The
wdogen*
bits control the conditions under which the watchdog counter
wdogcount
is incre-
mented. The
wdogenalways
bit, if set, means the watchdog counter always increments. The
wdogencoreawake
bit, if set, means the watchdog counter increments if the processor core is
not asleep. The WDT uses the
corerst
signal from the wakeup sequencer to know when the
core is sleeping. The counter increments by one each cycle only if any of the enabled conditions
are true. The
wdogen*
bits are reset on AON reset.
The 4-bit
wdogscale
field scales the watchdog counter value before feeding it to the compara-
tor. The value in
wdogscale
is the bit position within the
wdogcount
register of the start of a
16-bit
wdogs
field. A value of 0 in
wdogscale
indicates no scaling, and
wdogs
would then be
equal to the low 16 bits of
wdogcount
. The maximum value of 15 in
wdogscale
corresponds to
Table 37:
wdogcfg: wdog Configuration
Copyright © 2019, SiFive Inc. All rights reserved.
62
Содержание FE310-G002
Страница 1: ...SiFive FE310 G002 Manual v19p05 SiFive Inc ...
Страница 11: ...Figure 1 FE310 G002 top level block diagram Copyright 2019 SiFive Inc All rights reserved 9 ...
Страница 15: ...Chapter 2 List of Abbreviations and Terms 13 ...
Страница 23: ...Chapter 4 Memory Map The memory map of the FE310 G002 is shown in Table 4 21 ...