2008-03-13 08:48 AM
Can´t activate ST7LITEU0 LITETIMER INTERRUPT
2008-03-13 08:48 AM
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