EXTI Interrupt : how do i know which port has triggerd the ISR?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-08-26 1:21 AM
Posted on August 26, 2008 at 10:21
EXTI Interrupt : how do i know which port has triggerd the ISR?
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:42 AM
Posted on May 17, 2011 at 12:42
How can i distinguish the source of an interrupt-request for e.g. EXTI0 (PA0, PB0..) in the ISR?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:42 AM
Posted on May 17, 2011 at 12:42
on one EXTI-line you can use only one source, it is
selected with the register AFIO_EXTICRx (see http://www.st.com/mcu/forums-cat-7068-23.html). If you use more then one line in the isr (eg. IRQ EXTI9-5) you can use more then one source and you can distinguish the source in the pending register EXTI_PR.