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

Interrupt handling for 89C51

In the manual , example code written intrrupt is :
void example(void) interrupt 1 using 2
{ .....
.....
}

Can someone tell me what is meant by " using 2" there?

thanks

Parents
  • "For this, error appears saying error near void?" (my emphasis)

    The key word here is near.
    This probably means that you have made some error before this line, and it's only when the compiler came across the keyword 'void' when it wasn't expecting it that it realised that something was wrong!

    Look at the preceding lines for things like missing semicolons, brackets, braces, etc...

Reply
  • "For this, error appears saying error near void?" (my emphasis)

    The key word here is near.
    This probably means that you have made some error before this line, and it's only when the compiler came across the keyword 'void' when it wasn't expecting it that it realised that something was wrong!

    Look at the preceding lines for things like missing semicolons, brackets, braces, etc...

Children
No data