
CH32V003
Reference Manual
V1.3
32
Chapter 6 Interrupt and Events (PFIC)
The CH32V003 series has a built-in programmable fast interrupt controller (PFIC Programmable Fast Interrupt
Controller) that supports up to 255 interrupt vectors. The current system manages 23 peripheral interrupt
channels and 4 core interrupt channels, the others are reserved.
6.1 Main features
6.1.1
PFIC controller
l
23 peripheral interrupts, each interrupt request has independent trigger and mask control bits, with
dedicated status bits
l
Programmable multi-level interrupt nesting, maximum nesting depth 2 levels, hardware stack depth 2
levels
l
Fast interrupt entry and exit mechanism, hardware automatic stacking and recovery
l
Vector Table Free (VTF) interrupt response mechanism, 2-way programmable direct access to interrupt
vector addresses
6.2 System timer
l
CH32V003 Series
The core comes with a 32-bit add counter (SysTick) that supports HCLK or HCLK/8 as a time base with high
priority and can be used as a time reference after calibration.
6.3 Vector table of interrupts and exceptions
Table 6-1 CH32V003 series vector table
No.
Priority
Type
Name
Description
Entrance
address
0
-
-
-
-
0x00000000
1
-
-
-
-
0x00000004
2
-2
fixed
NMI
Non-maskable interrupts
0x00000008
3
-1
fixed
HardFault
Abnormal interruptions
0x0000000C
4-11
-
-
-
Reserved
0x00000010-
0x0000002C
12
0
programmable
SysTick
System timer interrupt
0x00000030
13
-
-
-
Reserved
0x00000034
14
1
programmable
SW
Software interrupt
0x00000038
15
-
-
-
Reserved
0x0000003C
16
2
programmable
WWDG
Window timer interrupt
0x00000040
17
3
programmable
PVD
Supply voltage detection interrupt
(EXTI)
0x00000044
18
4
programmable
FLASH
Flash global interrupt
0x00000048
19
5
programmable
RCC
Reset and clock control interrupts
0x0000004C
20
6
programmable
EXTI7_0
EXTI line 0-7 interrupt
0x00000050
21
7
programmable
AWU
Wake-up interrupt
0x00000054
22
8
programmable
DMA1_CH1
DMA1 channel 1 global interrupt
0x00000058
23
9
programmable
DMA1_CH2
DMA1 channel 2 global interrupt
0x0000005C
24
10
programmable
DMA1_CH3
DMA1 channel 3 global interrupt
0x00000060
25
11
programmable
DMA1_CH4
DMA1 channel 4 global interrupt
0x00000064
26
12
programmable
DMA1_CH5
DMA1 channel 5 global interrupt
0x00000068
27
13
programmable
DMA1_CH6
DMA1 channel 6 global interrupt
0x0000006C
28
14
programmable
DMA1_CH7
DMA1 channel 7 global interrupt
0x00000070