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
eight EXTI lines are connected as follows:
EXTI line 16 is connected to PVD output
EXTI line 17 is connected to RTC alarm event
EXTI line 18 is connected to the
EXTI line 19 is connected to the RTC wake-up event
EXTI line 20 is connected to
EXTI line 21 is connected to COMP1 output
EXTI line 22 is connected to COMP2 output
EXTI line 23 is connected to COMP3 output
EXTI Registers
EXTI base address: 0x40010400
EXTI register overview
Offset
Register
EXTI_IMASK
000h
Reset Value
EXTI_EMASK
004h
Reset Value
EXTI_RT_CFG
008h
Reset Value
EXTI_FT_CFG
00Ch
Reset Value
EXTI_SWIE
010h
Reset Value
EXTI_PEND
014h
Reset Value
EXTI_TS_SEL
018h
Reset Value
Interrupt Mask Register(EXTI_IMASK)
Address offset : 0x00
RTC timestamp event
wake-up interrupt
LPTIM
Table 6-2 EXTI register overview
Reserved
0
0
0
Reserved
0
0
0
Reserved
0
0
0
Reserved
0
0
0
Reserved
0
0
0
Reserved
0
0
0
IMASK[23:0]
0
0
0
0
0
0
0
0
0
EMASK[23:0]
0
0
0
0
0
0
0
0
0
RT_CFG[23:0]
0
0
0
0
0
0
0
0
0
FT_CFG[23:0]
0
0
0
0
0
0
0
0
0
SWIE[23:0]
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Reserved
185 / 647
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Nations Technologies Inc.
Tel:+86-755-86309900
Email:info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TSSEL[3:0]
0
0
0
0