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
Dear All,
If you do not mind then I would like to have your contact details, so that i can post my questions to you directly.
Jonny Doin Jason Daniel Per Westermark Andy Neil Erik Malund
Kindly provide me your details.
Best Regards, Mrunmoy.
and deprive all other members of the information?
discussing through a forum has many purposes, let me mention two 1) others may pick up valueable information. I have learned much by seing information posted I was not aware of and did not even think of asking about. e.g. I have picked up a technique or two where I had no idea that a more efficient way than mine (and many others) "tried and true" method existed. 2) if someone makes a wrong reply it is (almost) immediately corrected.
So, please do not suggest taking this discussion off the forum
Erik
Mrunmoy,
Given the nature of your job situation, I can understand that you might want to ask some questions privately. You can email me at jdaniel@NOSPAM.ieee.org. (Remove the NOSPAM. to get my real address). That being said, please take the advice of others about the forum: If you're going to ask a technical question, do it here so that others who have similar concerns will be able to find it and learn from it.
-Jay Daniel
Thanks Daniel.
But as Erik said. Everyone should get benefited by the technical discussions in this forum. I will post all technical questions in here.
Jay,
Sorry for referring you with your last name.