|
No subjectNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Mary Brown Posted 8-Jan-2009 07:55 GMT Toolset ARM |  No subject Mary Brown 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! | | Read-Only Author Tamir Michael Posted 8-Jan-2009 11:00 GMT Toolset ARM |  RE: No subject Tamir Michael what are you doing? these macros belong inside an ISR, yet you treat them are functions. | | Read-Only Author Mary Brown Posted 9-Jan-2009 00:20 GMT Toolset ARM |  RE: No subject Mary Brown 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! | | Read-Only Author Mary Brown Posted 12-Jan-2009 04:40 GMT Toolset ARM |  RE: No subject Mary Brown Hello, Can someone help me in writing/setting up properly the IENABLE & IDISABLE Macros for NESTING Interrupts? Thank you in advance! | | Read-Only Author a a Posted 13-Jan-2009 15:44 GMT Toolset ARM |  RE: "writing/setting up the IENABLE & IDISABLE Macros for NESTING Interrupts" a a 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 | | Read-Only Author Mary Brown Posted 14-Jan-2009 05:59 GMT Toolset ARM |  RE: "writing/setting up the IENABLE & IDISABLE Macros for NESTING Interrupts" Mary Brown Thank you very much for your help! I've learned something today! | | Read-Only Author a a Posted 13-Jan-2009 15:40 GMT Toolset ARM |  RE: "writing/setting up the IENABLE & IDISABLE Macros for NESTING Interrupts" a a >> 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. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|