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

Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm
HumanTak
Sun Apr 21 2024, 12:26 pm
Zacharybus
Sun Apr 21 2024, 02:45 am