Following a wakeup, the
pmucause
register indicates which event caused the wakeup. The
value in the
wakeupcause
field corresponds to the bit position of the event in
pmuie
, e.g., a
value of 2 indicates
dwakeup
. The value 0 indicates a wakeup from reset. These causes are
shown in Table 40.
In the event of a wakeup from reset, the
resetcause
field indicates which reset source triggered
the wakeup. Table 41 lists the values the
resetcause
field may take. The value in
resetcause
persists until the next reset.
pmucause: PMU Wakeup Cause (
pmucause
)
Register Offset
0x144
Bits
Field Name
Attr.
Rst.
Description
[31:0]
pmucause
RO
X
PMU Wakeup Cause
Table 40:
Wakeup cause values
Index
Meaning
0
Reset
1
RTC Wakup (
rtc
)
2
Digitial input wakeup (
dwakeup
)
Table 41:
Reset cause values
Index
Meaning
1
External reset
2
Watchdog timer reset
Table 39:
pmucause: PMU Wakeup Cause
Chapter 14 Power-Management Unit (PMU)
SiFive FE310-G000 Manual: v3p2
© SiFive, Inc.
Page 67