
Rev. 1.00
153 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
11 External Interrupt / Event Controller (EXTI)
Register Descriptions
EXTI Interrupt n Configuration Register – EXTICFGRn, n = 0 ~ 15
This register is used to specify the debounce function and select the trigger type.
Offset:
0x000 (0) ~ 0x03C (15)
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
DBnEN
SRCnTYPE
Reserved
Type/Reset RW 0 RW 0 RW 0 RW 0
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
DBnCNT
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
DBnCNT
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[31]
DBnEN
EXTIn De-bounce Circuit Enable Bit (n = 0 ~ 15)
0: De-bounce circuit is disabled
1: De-bounce circuit is enabled
[30:28]
SRCnTYPE
EXTIn Interrupt Source Trigger Type (n = 0 ~ 15)
SRCnTYPE [2:0]
Interrupt Source Type
0
0
0
Low-level Sensitive
0
0
1
High-level Sensitive
0
1
0
Negative-edge Triggered
0
1
1
Positive-edge Triggered
1
X
X
Both-edge Triggered
[15:0]
DBnCNT
EXTIn De-bounce Counter (n = 0 ~ 15)
The de-bounce time is calculated with DBnCNT × APB clock (EXTI_PCLK) period
and should be long enough to take effect on the input signal.