We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
"guide me in my voyage to master the art of programming"
Fundamental to this is a thorough reading of the Manuals for the tools, and the Datasheets for the devices. You cannot hope to get anywhere by skimping on these.
I have written a driver I hope this is language confusion. If you are working from a book that talks about 'device drivers' either switch to another processor or throw the book away.
however if what you mean is "I have succesfully done output and input" cudos to you
Erik