ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 5 Interrupt
5-15
5.3.1 Maskable Interrupt Processing
When an interrupt is generated with the MIE flag set to “1”, the following processing is executed by hardware and the
processing of program shifts to the interrupt destination.
(1)
Transfer the program counter (PC) to ELR1
(2)
Transfer CSR to ECSR1
(3)
Transfer PSW to EPSW1
(4)
Set the MIE flag to “0”
(5)
Set the ELEVEL field to“1”
(6)
Load the interrupt start address into PC
5.3.2 Non-Maskable Interrupt Processing
When an interrupt is generated regardless of the state of MIE flag, the following processing is performed by hardware
and the processing of program shifts to the interrupt destination.
(1)
Transfer PC to ELR2
(2)
Transfer CSR to ECSR2
(3)
Transfer PSW to EPSW2
(4)
Set the ELEVEL field to “2”
(5)
Load the interrupt start address into PC
5.3.3 Software Interrupt Processing
A software interrupt is generated as required within an application program. When the SWI instruction is performed
within the program, a software interrupt is generated, the following processing is performed by hardware, and the
processing program shifts to the interrupt destination. The vector table is specified by the SWI instruction.
(1)
Transfer PC to ELR1
(2)
Transfer CSR to ECSR1
(3)
Transfer PSW to EPSW1
(4)
Set the MIE flag to “0”
(5)
Set the ELEVEL field to“1”
(6)
Load the interrupt start address into PC
Reference:
For the MIE flag, Program Counter (PC), CSR, PSW, and ELEVEL, see “nX-U8/100 Core Instruction Manual”.
Содержание ML610472
Страница 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...