Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
128
/
631
EXTI line mapping
Figure 6-2 External interrupt generic I/O mapping
To configure external interrupts/events on the GPIO line using AFIO_EXTI_CFGy, the AFIO clock must be enabled
first. Universal I/O ports are connected to 16 external interrupt/event lines as shown above. The connection mode of
the other 9 EXTI lines is as follows:
EXTI line 16 is connected to the PVD output
EXTI line 17 is connected to the USB wake up event
EXTI0_CFG[3:0] Control
PC0
PD0
EXTI1_CFG[3:0] Control
EXTI2_CFG[3:0] Control
EXTI3_CFG[3:0] Control
EXTI12_CFG[3:0] Control
EXTI13_CFG[3:0] Control
EXTI14_CFG[3:0] Control
EXTI15_CFG[3:0] Control
AFIO_EXTI_CFG1
Register
AFIO_EXTI_CFG4
Register
EXTI0
EXTI1
PA0
PB0
PC1
PA1
PB1
EXTI2
PC2
PD2
PA2
PB2
EXTI3
EXTI12
EXTI13
EXTI14
EXTI15
PA14
PB14
PC14
PD14
PA15
PB15
PC15
PD15
AFIO_EXTI_CFG2
Register
PC13
PA13
PB13
PC3
PA3
PB3
EXTI4_CFG[3:0] Control
EXTI5_CFG[3:0] Control
EXTI6_CFG[3:0] Control
EXTI7_CFG[3:0] Control
EXTI4
EXTI5
PC5
PA5
PB5
EXTI6
EXTI7
PC7
PA7
PB7
PC6
PA4
PB5
PC6
PA6
PB6
AFIO_EXTI_CFG3
Register
EXTI8_CFG[3:0] Control
EXTI9_CFG[3:0] Control
EXTI10_CFG[3:0] Control
EXTI11_CFG[3:0] Control
EXTI8
EXTI9
PC9
PA9
PB9
EXTI10
EXTI11
PC11
PA11
PB11
PC8
PA8
PB8
PC10
PA10
PB10
PC12
PA12
PB12