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
  • I don't think that's entirely true but, as far as things like interrupt numbers go, it is completely irrelevant.

    The interrupt numbers are fixed by the architecture - they don't depend on what programming language you use.

    "...assembly, something I'm not comfortable with"

    I strongly suggest that you need to get confortable with it at least to the level of being able to follow the simple examples in things like the 8052.com tutorials.

    Most of those examples are just about writing to & reading from SFRs - which is has no real differences in 'C' or ASM.

    You don't necessarily need to be able to write your own assembler - but you should really be able to follow simple examples.

    When it comes to bedugging - even though your source is in 'C' - you are going to be greatly handicapped if you can't follow the instructions that the processor is actually executing.

Reply
  • I don't think that's entirely true but, as far as things like interrupt numbers go, it is completely irrelevant.

    The interrupt numbers are fixed by the architecture - they don't depend on what programming language you use.

    "...assembly, something I'm not comfortable with"

    I strongly suggest that you need to get confortable with it at least to the level of being able to follow the simple examples in things like the 8052.com tutorials.

    Most of those examples are just about writing to & reading from SFRs - which is has no real differences in 'C' or ASM.

    You don't necessarily need to be able to write your own assembler - but you should really be able to follow simple examples.

    When it comes to bedugging - even though your source is in 'C' - you are going to be greatly handicapped if you can't follow the instructions that the processor is actually executing.

Children