AnsweredAssumed Answered

new interrupt function and interrupt vector table

Question asked by sketkar on Jun 23, 2009
Latest reply on Aug 11, 2009 by DivyaS

Hello,

 

I have a new interrupt function that I wish to attach to my application.  It's a Timer interrupt.

 

I'm setting it up using the timer_set and attaching it to SIGTIMER as follows

 

if (timer_set(0x1000,0x1000,0) != 1)

{

     interrupt(SIGTIMER, Timer_ISR);

     timer_on();

}

 

I have also modified the interrupt vector table to use the new Timer_ISR function as follows

 

.SECTION/PM IVtimer;

.global ___tmri;

___tmri;

     ena sec_reg;

     jump _Timer_ISR;

     rti;

     rti;

___tmri.END;

 

During execution/debuggin, the Timer_ISR is either executed a single time or the application enter a strange state and the ICE can't communicate with the device and I have to reset the system.

Outcomes