43
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Figure 2-2 External interrupt GPIO mapping
To configure external interrupts/events on the GPIO line through AFIO_EXTI_CFGy, the AFIO clock must be
enabled first. The general I/O port is connected to 16 external interrupt/event lines in the way shown above. The other
5 EXTI lines are connected as follows:
The EXTI line 16 is connected to PVD output
The EXTI line 17 is connected to RTC alarm event
The EXTI line 18 is connected to the USB wake-up event
The EXTI line 19 is connected to the Ethernet wake-up event.
EXTI0_CFG[3:0] Control
EXTI1_CFG[3:0] Control
EXTI2_CFG[3:0] Control
EXTI3_CFG[3:0] Control
EXTI4_CFG[3:0] Control
EXTI5_CFG[3:0] Control
EXTI6_CFG[3:0] Control
EXTI7_CFG[3:0] Control
AFIO_EXTI_CFG1
Register
AFIO_EXTI_CFG2
Register
EXTI0
EXTI1
EXTI2
EXTI3
EXTI4
EXTI5
EXTI6
EXTI7
EXTI12_CFG[3:0] Control
EXTI13_CFG[3:0] Control
EXTI14_CFG[3:0] Control
EXTI15_CFG[3:0] Control
AFIO_EXTI_CFG4
Register
EXTI12
EXTI13
EXTI14
EXTI15
EXTI8_CFG[3:0] Control
EXTI9_CFG[3:0] Control
EXTI10_CFG[3:0] Control
EXTI11_CFG[3:0] Control
EXTI8
EXTI9
EXTI10
EXTI11
AFIO_EXTI_CFG3
Register
PC1
PD1
PA1
PB1
PE1
PF1
PG1
PC2
PD2
PA2
PB2
PE2
PF2
PG2
PC3
PD3
PA3
PB3
PE3
PF3
PG3
PC4
PD4
PA4
PB4
PE4
PF4
PG4
PC6
PD6
PA6
PB6
PE6
PC7
PD7
PA7
PB7
PE7
PC5
PD5
PA5
PB5
PE5
PF5
PG5
PC8
PD8
PA8
PB8
PE8
PC9
PD9
PA9
PB9
PE9
PG9
PC10
PD10
PA10
PB10
PE10
PC11
PD11
PA11
PB11
PE11
PC12
PD12
PA12
PB12
PE12
PF12
PC13
PD13
PA13
PB13
PE13
PF13
PC14
PD14
PA14
PB14
PE14
PF14
PC15
PD15
PA15
PB15
PE15
PF15
PC0
PD0
PA0
PB0
PE0
PG0