Skip to main content
Visitor II
August 14, 2008
Question

Interrupts not interrupting

  • August 14, 2008
  • 2 replies
  • 752 views
Posted on August 14, 2008 at 06:04

Interrupts not interrupting

    This topic has been closed for replies.

    2 replies

    mokinchaAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:54

    Hi,

    I'm trying to get a basic vectors ISR going. I'm using Timer Example2 of in the FW lib to try to generate a timer-driver interrupt. The problem is that even though all the VIC bits get set (current ISR address, VIC0_ISR, VIC0_INTER, etc, the MCU never actually jumps to the interrupt vector (0x18) or otherwise alters program execution. It just goes on its merry way as if no interrupt occured.

    Is their some extra instruction I have to call to enable interupts in the CPU? I've tried triggering the interrupt by software, via the timer, etc. Each time the VICx_ISR bit gets set, but no change in program flow.

    Any ideas?

    Thanks!

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:54

    Hello mokincha,

    You should also configure the Timer interrupt source in the TIMx_CR2 register to enable the interrupt. Could you please refer to the second example of the timer in the new STR9 library v2.0 for more details. This example shows use of TIM1 output Compare 1 interrupt.

    Kind regards,

    mirou.