2008-08-13 09:04 PM
2011-05-17 12:54 AM
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!2011-05-17 12:54 AM
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.