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

Timer/counter/External Interrupts code in ARM assembly

hi all,

I am on the learning stage of LPC2148 and I have done basic programs like interrupts ... ADC ... TIMER/COUNTER. But all the code I have written is in C Language.

Though I had written some basic progarams of LED in assembly but not the interrupt part.

Could any one here tell me what are the rules to write the assembly code for interrupts i.e. for FIQ, IRQ and NV IRQ.

If possible plz guide me with some source code.

I am using KEIL uvision 4.

Arvind Shrivastava

Parents
  • Could any one here tell me what are the rules to write the assembly code for interrupts i.e. for FIQ, IRQ and NV IRQ.

    There is no difference. All you need to make sure is that you do the right thing - namely, acknowledge the interrupt, don't loop etc. - just like in C.
    Why bother with assembly? time critical stuff? code size? isn't the optimization of the compiler good enough? something?

Reply
  • Could any one here tell me what are the rules to write the assembly code for interrupts i.e. for FIQ, IRQ and NV IRQ.

    There is no difference. All you need to make sure is that you do the right thing - namely, acknowledge the interrupt, don't loop etc. - just like in C.
    Why bother with assembly? time critical stuff? code size? isn't the optimization of the compiler good enough? something?

Children