This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer3 interrupt - SPP protocol

Hello,
I have following problem - part of my code:
(I am using in my program - SPP protocol(Timer3))
..........
status=receiveData(user_prg_xdata);
//INT_ENABLE(INUM_TIMER3,INT_OFF);

if (status == SPP_RX_TIMEOUT) {
YLED = LED_ON;
} else if (status == SPP_RX_TOO_LONG) {
BLED = LED_ON;
} else if (status == SPP_RX_FINISHED) {
GLED = LED_ON;
}

halWait(200,CC1010EB_CLKFREQ); //200ms
GLED = LED_OFF;
........

The green led stay light - the program frozen on the "halWait" function.
But when I use INT_ENABLE(INUM_TIMER3,INT_OFF); -dissable the interrupt from Timer3 the program works correct. Do you know where can be problem?
Thank you, Peter

0