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

Timer 0 ISR - Function declaration in Keil 4

Hello,

I have declared a Timer 0 ISR using Keil 4 as follows:

void timer0 (void) interrupt 1
{

// blank

// yet to add my ISR code

}

With this, I get the following two errors in Keil 4

timer.c(30): error C132: 'timer0': not in formal parameter list
timer.c(30): error C141: syntax error near 'interrupt'

Kindly assist for resolving this issue.

P.S. When compiled in Keil 3, I get 0 Errors, 0 Warnings

Thanks,
Dipen Shah