
CH32V003
Reference Manual
V1.3
47
T
EN
TKE
N
Bit
Name
Access
Description
Reset value
[31:2]
Reserved
MRO
Reserved
0
1
INESTEN
MRW
Interrupt nesting enable.
0: interrupt nesting function off.
1: Interrupt nesting function is enabled.
0
0
HWSTKEN
MRW
Hardware stack enable.
0: hardware stacking function off.
1: Hardware stacking function is enabled.
0
6.5.3.2 Exception entry base address register (MTVEC)
CSR address: 0x305
31
30
29
28
27
26
25
24
23
22
21
20
19 18
17
16
BASEADDR[31:16]
15
14
13
12
11
10
9
8
7
6
5
4
3 2
1
0
BASEADDR[15:2]
MODE
1
MOD
E0
Bit
Name
Access
Description
Reset value
[31:2]
BASEADDR[31:2]
MRW Interrupt vector table base address.
0
1
MODE1
MRW
Interrupt vector table identifies patterns.
0: identification by jump instruction,
limited range, support for non-jump
instructions.
1: Identify by absolute address,
support
full range, but must jump.
0
0
MODE0
MRW
Interrupt or exception entry address mode
selection.
0: use of a unified entry address.
1: Address offset based on interrupt number
*4.
0
6.5.4 STK register description
Table 6-5 STK-related registers list
Name
Access address
Description
Reset value
R32_STK_CTLR
0xE000F000
System count control register
0x00000000
R32_STK_SR
0xE000F004
System count status register
0x00000000
R32_STK_CNTL
0xE000F008
System counter low register
0x00000000
R32_STK_CMPLR
0xE000F010
Counting comparison low register
0x00000000
6.5.4.1 System count control register (STK_CTLR)
Offset address: 0x00
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
SWIE
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
STRE STCL
K
STIE STE