Interrupt And Events (Pfic); Pfic Controller; System Timer; Vector Table Of Interrupts And Exceptions - WCH CH32V003 Series Reference Manual

Table of Contents

Advertisement

CH32V003 Reference Manual
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

No.
Priority
0
-
1
-
2
-2
3
-1
4-11
-
12
0
programmable
13
-
14
1
programmable
15
-
16
2
programmable
17
3
programmable
18
4
programmable
19
5
programmable
20
6
programmable
21
7
programmable
22
8
programmable
23
9
programmable
24
10
programmable
25
11
programmable
26
12
programmable
27
13
programmable
28
14
programmable
V1.3
Table 6-1 CH32V003 series vector table
Type
Name
-
-
-
-
fixed
NMI
fixed
HardFault
-
-
SysTick
-
-
SW
-
-
WWDG
PVD
FLASH
RCC
EXTI7_0
AWU
DMA1_CH1
DMA1_CH2
DMA1_CH3
DMA1_CH4
DMA1_CH5
DMA1_CH6
DMA1_CH7
Description
-
-
Non-maskable interrupts
Abnormal interruptions
Reserved
System timer interrupt
Reserved
Software interrupt
Reserved
Window timer interrupt
Supply voltage detection interrupt
(EXTI)
Flash global interrupt
Reset and clock control interrupts
EXTI line 0-7 interrupt
Wake-up interrupt
DMA1 channel 1 global interrupt
DMA1 channel 2 global interrupt
DMA1 channel 3 global interrupt
DMA1 channel 4 global interrupt
DMA1 channel 5 global interrupt
DMA1 channel 6 global interrupt
DMA1 channel 7 global interrupt
32
http://wch.cn
Entrance
address
0x00000000
0x00000004
0x00000008
0x0000000C
0x00000010-
0x0000002C
0x00000030
0x00000034
0x00000038
0x0000003C
0x00000040
0x00000044
0x00000048
0x0000004C
0x00000050
0x00000054
0x00000058
0x0000005C
0x00000060
0x00000064
0x00000068
0x0000006C
0x00000070

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents