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

No subject

Hello All,
I am a new user of the ARM7 LPC2100 chip. Can anyone help?
I cannot exercise the code that was supposed to enable and disable in the nested interrupts (IENABLE & IDISABLE MACRO). These two MACROs are in EX14 of the "lpc2100bookexamples".
__asm void IENABLE(void)
{

MRS LR, SPSR STMFD SP!, {LR} MSR CPSR_c, #0x1F (***1) STMFD SP!, {LR}
} __asm void IDISABLE(void)
{ (***2) LDMFD SP!, {LR} MSR CPSR_c, #0x92 LDMFD SP!, {LR} MSR SPSR_cxsf, LR
} I stepped through IENABLE. When it reached (***1), it went straigt to (***2). It did not return to where it was called, but went to (***2) instead. Have I done anything wrong? Thanks in advance!

Parents
  • >> Can someone help me in writing/setting up properly the IENABLE & IDISABLE Macros for NESTING Interrupts?

    You seem new to posting on forums

    You would not have to bump your own post if you followed the tips of how to post source code:

    http://www.keil.com/forum/tips.asp

    When creating the forum Thread I recommend you make a useful Summery such as "writing/setting up the IENABLE & IDISABLE Macros for NESTING Interrupts"

    The easier you make it for people to help you the better a chance they will.

Reply
  • >> Can someone help me in writing/setting up properly the IENABLE & IDISABLE Macros for NESTING Interrupts?

    You seem new to posting on forums

    You would not have to bump your own post if you followed the tips of how to post source code:

    http://www.keil.com/forum/tips.asp

    When creating the forum Thread I recommend you make a useful Summery such as "writing/setting up the IENABLE & IDISABLE Macros for NESTING Interrupts"

    The easier you make it for people to help you the better a chance they will.

Children
No data