STM32 external interrupt mapping

Publisher:alpha11Latest update time:2018-06-15 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

STM32 defines 20 external interrupts, all of which are triggered by edges and do not support level triggering. Among the 20 external interrupts, EXTI0--EXTI15 correspond to 16 groups of GPIO, as shown below

The processing function on EXTI0 is EXTI0_IRQHandler().

The processing function on EXTI1 is EXTI1_IRQHandler().

The processing function on EXTI2 is EXTI2_IRQHandler().

The processing function on EXTI3 is EXTI3_IRQHandler().

The processing function on EXTI4 is EXTI4_IRQHandler().

The processing function of EXTI5--EXTI9 is ​​EXTI9_5_IRQHandler().

EXTI10--EXTI15's processing function is EXTI15_10_IRQHandler().


If the circuit design uses both PA0 and PB0 as interrupt input pins, then when the EXTI0 interrupt arrives, the software cannot determine whether the interrupt comes from PA0 or PB0, so an additional level detection circuit is required. From the perspective of design simplicity, the external interrupts should be staggered to prevent the problems mentioned above.


In addition to the 16 external interrupt lines mentioned above, there are 4 more external interrupt lines:

EXTI16------PVD output;

EXTI17------RTC Alarm event;

EXTI18------USB Wakeup event;

EXTI19------Ethernet Wakeup event; (only in interconnected devices)


Keywords:STM32 Reference address:STM32 external interrupt mapping

Previous article:Summary of how to use STM32 external interrupts
Next article:STM32F4 external interrupt entry and external interrupt line

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号