SYSCFG external interrupt configuration register 1 SYSCFG_EXTICR1 EXTI中断0,1,2,3引脚选择 |
EXTIx[3:0]: EXTI x configuration (x = 0 to 3) |
0000: PA[x] pin 0001: PB[x] pin 0010: PC[x] pin 0011: PD[x] pin 0100: PE[x] pin 0101: Reserved 0110: Reserved 0111: PH[x] pin |
SYSCFG_EXTICR2 配置 EXTI4,5,6,7
SYSCFG_EXTICR3 配置 EXTI8,9,10,11
SYSCFG_EXTICR4 配置EXTI12,13,14,15
EXTI_IMR |
Interrupt mask register 中断屏蔽寄存器 |
MRx 0 : x is masked 1 : x is not masked |
|
EXTI_EMR |
Event mask register 事件屏蔽寄存器 |
MRx 0:x is masked 1: x is not masked |
|
EXTI_RTSR |
Rising trigger selection register 上升沿触发选择寄存器 |
TRx 0: Rising trigger disabled (for Event and Interrupt) for input line 1:Rising trigger enabled (for Event and Interrupt) for input line |
可以同时设置上升下降沿 |
EXTI_FTSR |
Falling trigger selection register 下降沿触发选择寄存器 |
TRx 0: Falling trigger disabled (for Event and Interrupt) for input line |
|
EXTI_SWIER |
Software interrupt event register 软件中断事件寄存器 |
SWIERx 为0时 写1 产生中断 为1时 写1 清除该位为0 |
|
EXTI_PR |
Pending register 挂起寄存器 |
PRx 0: No trigger request occurred 发生边沿事件,该位被置1 写1清除 |
标签:pin,register,trigger,寄存器,SYSCFG,EXTI From: https://www.cnblogs.com/Yannnnnn/p/17639075.html