
CH32V003
Reference Manual
V1.3
46
SYS
RESE
T
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
SET
EVE
NT
SEV
ONPE
ND
WFIT
O
WFE
SLEE
P
DEEP
SLEEP
ONEX
IT
Reser
ved
Bit
Name
Access
Description
Reset value
31
SYSRESET
WO
System reset, clear 0 automatically. write 1
valid, write 0 invalid, same effect as
PFIC_CFGR register.
0
[30:6]
Reserved
RO
Reserved
0
5
SETEVENT
WO
Set the event to wake up the WFE case.
0
4
SEVONPEND
RW
When an event occurs or interrupts a
pending state, the system can be woken up
from after the WFE instruction, or if the
WFE instruction is not executed, the
system will be woken up immediately after
the next execution of the instruction.
1: enabled events and all interrupts
(including unenabled interrupts) can wake
up the system.
0: Only enabled events and enabled
interrupts can wake up the system.
0
3
WFITOWFE
RW
Execute the WFI command as if it were a
WFE.
1: treat the subsequent WFI instruction as a
WFE instruction.
0: No effect.
0
2
SLEEPDEEP
RW
Low-power mode of the control system.
1
:
deep sleep 0
:
sleep
0
1
SLEEPONEXIT
RW
System status after control leaves the
interrupt service program.
1: The system enters low-power mode.
0: The system enters the main program.
0
0
Reserved
RO
Reserved
0
6.5.3 Dedicated CSR registers
A number of Control and Status Registers (CSRs) are defined in the RISC-V architecture to configure or
identify or record the operational status. The CSR registers are internal to the core and use a dedicated 12-bit
address space; the CH32V003 chip adds a number of vendor-defined registers in addition to the standard
registers defined in the RISC-V privileged architecture document, which need to be accessed using the csr
instruction.
Note: These registers are labeled "MRW,MRO,MRW1" and require the system to be in machine mode to access
them.
6.5.3.1 Interrupt system control register (INTSYSCR)
CSR address: 0x804
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
INES HWS