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!
what are you doing? these macros belong inside an ISR, yet you treat them are functions.
Thanks for the response! As I mentioned earlier, I am a new user of this chip. These codes come with the examples, except I called IENABLE() & IDISABLE() in the ISR that allowed other interrupt to trigger. Can you please show me how it should be set up properly? Thank you!
Hello, Can someone help me in writing/setting up properly the IENABLE & IDISABLE Macros for NESTING Interrupts? Thank you in advance!
>> 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.
A quick search of the Forum for IENABLE & IDISABLE yielded these Threads:
http://www.keil.com/forum/docs/thread8491.asp
http://www.keil.com/forum/docs/thread7882.asp
Thank you very much for your help! I've learned something today!