2008-05-09 04:27 AM
2008-05-07 10:19 AM
I have configured the ARM7 for external interrupts on P2.8
I am toggling a i/o P2.12 in the interrupt handler (to indicate that it is getting executed). Whenever the interrupt is generated from the external hardware the led associated with P2.8 goes low (typically lit or high). But the led on P2.12 does not toggle. I looked through the configuration and they looked alrite. Also the vector table. The code snippet is attached here. Any leads would be appreciated. // Enable XTI and GPIO2 clocks on APB2 APB_ClockConfig(APB2, ENABLE, GPIO2_Periph | XTI_Periph); // XTI configuration XTI_Init(); XTI_LineModeConfig(XTI_Line2, XTI_FallingEdge); XTI_LineConfig(XTI_Line2, ENABLE); XTI_ModeConfig(XTI_Interrupt, ENABLE); // Configure XTI IRQ channel EIC_IRQChannelPriorityConfig(XTI_IRQChannel, 4); EIC_IRQChannelConfig(XTI_IRQChannel, ENABLE); EIC_IRQConfig(ENABLE); GPIO_Config(GPIO2, 0x0001 << 0x08, GPIO_IPUPD_WP);2008-05-09 04:27 AM
Some more information.
I see that the CICR and CIPR are set even before reaching my while loop. I made sure they are cleared using the EIC_Init(); Even then the registers get set for the channel I am intersted in just before entering the while loop. Any leads why this might be happening?