Professional Documents
Culture Documents
user program
time
Interrupt
time
Interrupt latency
Interrupt response
Interrupt
time
Interrupt response
Interrupt
Second
Interrupt
Source: http://www.keil.com/support/man/docs/mcbstr7/mcbstr7_interrupt_func1.png
Exceptions
Note: Exception handlers must save (restore) other registers on entry (exit)
Registers
• For all modes
– the same physical set of registers r0 to r7, r15 (pc) and CPSR are
used.
– have their own special stored program status registers,
SPSR_xxx, except the user the system modes
• For the mode _fiq
– all registers r8 to r14 are replaced by r8_fiq to r14_fiq
– r13 and r14 are replaced by alternatives, r13_xxx and r14_xxx,
except the system mode
CPSR register
MOV r14, r1
• Source operand is r1
– There is only one r1 (physical) register.
– Therefore, the source operand refers to the same register in all
modes
• The destination register is r14
– Depending on the processor mode, the destination register can be
r14_fiq (in FIQ mode) or r14_svc (in supervisor mode)
– The postfix _xxx added to register name is only used to show which
(physical) register are set, it is not used in assembly language
Summary
• Register organization
• CPSR bits
• Processor mode
• Register under different modes
What’s Next