Discussion in "ARM Development" started by    Fejsu    Mar 31, 2009.
Tue Mar 31 2009, 09:04 pm
#1
HELLO ,

PLEASE HELP! I NEED TO SWITCH IMMEADITELY BACK TO USER MODE WHILE I AM IN INTERRUPT MODE USING ARM LPC2148 PROCESSOR.I NEED TO STORE THE SP AND OTHER USER MODE REGISTERS WHILE I AM IN INTERRUPT MODE.
How can i do this in assembly language.I am using KeiluVision.

Thanks alot for your feedback


Thu Apr 02 2009, 03:34 pm
#2
I am not sure how CPU will behave changing mode when servicing interrupt in IRQ mode.

mode can be changed by changing modebits M0-M4 in CPSR register.

can you tell me why you want to store SP? as in IRQ mode SP is banked so need not to be saved.
Thu Apr 02 2009, 03:36 pm
#3
[Topic moved to ARM Discussion forum]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AngeloFoown
Sat Apr 13 2024, 12:17 pm
JamesLex
Sat Apr 13 2024, 05:23 am
RobertWah
Fri Apr 12 2024, 08:01 pm
solar_qcor
Fri Apr 12 2024, 08:38 am
Rosalvascuth
Thu Apr 11 2024, 06:07 am
WilliamAmazy
Wed Apr 10 2024, 10:13 pm
slm_pkPn
Wed Apr 10 2024, 08:43 pm
LaurenBramn
Wed Apr 10 2024, 02:08 pm