This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't find clear explanations on Timer Interrupts...

Hello everyone,

I spent a lot of time trying to get into an interrupt routine but I can't manage... 

The program is very easy: I configure the dedicated registers: IER0 at 0x4, IFR0 at 0x10, INTM bit a 0, the counter registers are set to start at a fairly high value with a prescalair with an auto-reload, I write an interrupt routine:

 

interrupt void _Timer_isr(void)

{

draw_string(30, 80, "IRQ WORKS", 0xFF);

    IFR0 &= 0x0010; // clear timer int flag

/* Clear Timer0 bit in Timer Aggregate register*/

*CPU_TIMINT_AGGR = *CPU_TIMINT_AGGR | 0x0001 ;

    start_timer0(); //restart the timer to count 

}

 

but nothing appear on the screen... I've got the writing function working very fine on the board so it's definitely an interrupt problem. Looks like it never gets into the vector!

Any help would be really appreciated

cheers

Silvere