Hi,
There is an application note on using the interrupt vectors in C51 c programming for 8051. It goes like this-
unsigned int int_count; unsigned char second;
void timer0 (void) interrupt 1 using 2 { if (++int_count == 4000) { /* count to 4000 */ second++; /* second counter */ int_count = 0; /* clear interrupt counter */ } }
Can anyone explain what does that "using 2" at the end of the function denote?
I understand that interrupt 1 specifies that this is the ISR for interrupt number for timer0 overflow at adress 000Bh. Does the last keyword "using 2" denote the polling priority of the interrupt?
TIA, Mrunmoy
Actually, this forum should only be used for discussions specifically about Keil products...
But a higher number of high-quality technical discussions that are handled on _this_ forum, will result in a correspondingly fewer number of people who will visit other forums where they may accidentaly get recommendations to look at products by IA<beep> or similar.
Strictly speaking, it would be advantageous for Keil to allow general-purpose embedded discussions, possibly allowing people to filter away these threads if not interested. The cust of running a forum is not proportional to volume of posts.