Skip to main content
Visitor II
May 9, 2008
Question

xti to arm7

  • May 9, 2008
  • 2 replies
  • 739 views
Posted on May 09, 2008 at 13:27

xti to arm7

    This topic has been closed for replies.

    2 replies

    smshenoyAuthor
    Visitor II
    May 7, 2008
    Posted on May 07, 2008 at 19:19

    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);

    smshenoyAuthor
    Visitor II
    May 9, 2008
    Posted on May 09, 2008 at 13:27

    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?