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

Nordic chip, what number are the interrupts?

Hi!

I'm new to 8051 controllers and are now using the nRF24LE1 for a school project.

I am used to the AVR architecture and writing interrupts like "ISR_interrupt_vector()" but I can see that 8051 uses "void interrupt() interrupt #number", and I can not find what #number to use.

Can anyone help me with this issue?

Thank you all in advance!

Parents
  • some datasheets use interrupt numbers that are (as far as all toolsets I know of) wrong.

    The only way to ensure that you get the correct interrupt numbers is to go by the interrupt vector addresses in the datasheet and use the formula

    interrupt_number = (vector_address -3)/8

    Erik

Reply
  • some datasheets use interrupt numbers that are (as far as all toolsets I know of) wrong.

    The only way to ensure that you get the correct interrupt numbers is to go by the interrupt vector addresses in the datasheet and use the formula

    interrupt_number = (vector_address -3)/8

    Erik

Children