dividing the clock rate by
, so for an input clock of 32.768 kHz, the LSB of
wdogs
will incre-
ment once per second.
The value of
wdogs
is memory-mapped and can be read as a single 16-bit value over the AON
TileLink bus.
The
wdogzerocmp
bit, if set, causes the watchdog counter
wdogcount
to be automatically reset
to zero one cycle after the
wdogs
counter value matches or exceeds the compare value in
wdogcmp
. This feature can be used to implement periodic counter interrupts, where the period is
independent of interrupt service time.
The
wdogrsten
bit controls whether the comparator output can set the
wdogrst
bit and hence
cause a full reset.
The
wdogip0
interrupt pending bit can be read or written.
wdogcmp0: Comparator 0 (
wdogcmp0
)
Register Offset
0x20
Bits
Field Name
Attr.
Rst.
Description
[15:0]
wdogcmp0
RW
X
Comparator 0
[31:16]
Reserved
The
wdogcmp
compare register is a 16-bit value against which the current
wdogs
value is com-
pared every cycle. The output of the comparator is asserted whenever the value of
wdogs
is
greater than or equal to
wdogcmp
.
The
wdogkey
register has one bit of state. To prevent spurious reset of the WDT, all writes to
wdogcfg
,
wdogfeed
,
wdogcount
,
wdogcount
,
wdogcmp
and
wdogip0
must be preceded by an
unlock operation to the
wdogkey
register location, which sets
wdogkey
. The value
0x51F15E
must be written to the
wdogkey
register address to set the state bit before any write access to
any other watchdog register. The state bit is reset at AON reset, and after any write to a watch-
dog register.
Watchdog registers may be read without setting
wdogkey
.
Table 38:
wdogcmp0: Comparator 0
Copyright © 2019, SiFive Inc. All rights reserved.
63
Содержание 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 ...