cancel
Showing results for 
Search instead for 
Did you mean: 

Can´t activate ST7LITEU0 LITETIMER INTERRUPT

martinh
Associate II
Posted on March 13, 2008 at 16:48

Can´t activate ST7LITEU0 LITETIMER INTERRUPT

1 REPLY 1
martinh
Associate II
Posted on March 13, 2008 at 16:48

Hello,

I can´t in any ways activate the ST7LITEU0 LITETIMER INTERRUPT.

Here´s a small code I was trying to:

#include

#define EnableInterrupts {_rim_();}

#define DisableInterrupts {_sim_();}

void trata_LT (void) interrupt 11

{

static unsigned char a = 0;

LTCSR = LTCSR & 0xf7; //1111 0111 // Clear Timebase interupt flag

a++;

LTCSR = LTCSR | 0x10;

}

void main ( void )

{

unsigned char b =0;

LTCSR = 0b00010000;

EnableInterrupts

while ( 1 )

{

b++;

}

}

Am I doing anything wrong?

I already contacted the support of Raisonance, because in their ''interrupts watch'' at debugger I can see all the interrupts but the Lite Timer´s.

Thanks in advance!

Martin