2 Pins interrupts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-06-29 2:13 AM
Posted on June 29, 2013 at 11:13
Hi ,
I have the following initialisation ://ADXL interrupt port pin AFIO->EXTICR[0] |= AFIO_EXTICR1_EXTI2_PD; EXTI->IMR |= EXTI_IMR_MR2; EXTI->RTSR = EXTI_RTSR_TR2; NVIC_EnableIRQ(EXTI2_IRQn); //user alert button PA0 input pulled down by external resistor AFIO->EXTICR[0] |= AFIO_EXTICR1_EXTI0_PA; EXTI->IMR |= EXTI_IMR_MR0; EXTI->RTSR = EXTI_RTSR_TR0; NVIC_EnableIRQ(EXTI0_IRQn);If i leave them both the interrupt for ADXL wont trigger . If i comment the pin init for the Button , the adxl interrupt is triggered when signal asserted .What am i doing wrong ? I use ST32Discovery board with 32f100 uc
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-06-29 2:27 AM
Posted on June 29, 2013 at 11:27
No more need for help . I found the mistake EXTI->RTSR = EXTI_RTSR_TR2; I didn;t used |= .
