
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 5 Interrupt
5-18
Status B: Non-maskable interrupt is being processed
B-1: When a subroutine is not called in an interrupt routine
•Processing immediately after the start of interrupt routine execution
Specify "PUSH ELR, EPSW" to save the interrupt return address and the PSW status in the stack.
•Interrupt routine execution end processing
Specify "POP PSW, PC" to return the contents of the stack to PC and PSW.
Example of description: Status B-1
Intrpt_B-1:
; Start the interrupt routine
PUSH ELR,EPSW
; Save ELR and EPSW at the
beginning
:
:
POP PSW,PC
; Return PC from the stack
; Return PSW from the stack
; End the interrupt routine
B-2: When a subroutine is called in an interrupt routine
•IProcessing immediately after the start of interrupt routine
Specify "PUSH ELR, LR, EPSW" to save the interrupt return address, the subroutine return address,
and the EPSW status in the stack.
•Interrupt routine end processing
Specify "POP PSW, PC, LR" to return the saved data of the interrupt return address to PC, the saved data
of EPSW to PSW, and the saved data of LR to LR.
Example of description: Status B-2
Intrpt_B-2: ;
Start
PUSH
ELR,EPSW,LR
; Save ELR, EPSW, and LR at
the beginning
:
Sub_1:
;
:
:
BL Sub_1
; Call subroutine Sub_1
:
:
RT
; Return PC from LR
POP PSW,PC,LR
; Return PC from the stack
; End of subroutine
; Return PSW from the stack
; Return LR from the stack
;
End
Содержание ML610471
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...