
ML62Q1000 Series User's Manual
Chapter 5 Interrupts
FEUL62Q1000
5-40
5.3.1 Maskable Interrupt Processing
When an interrupt is generated with MIE set to "1", the following process is executed by hardware and the CPU goes to
the interrupt routine.
1.
Save the program counter (PC) in ELR1.
2.
Save CSR in ECSR1 (not processed if the program memory size is 64 Kbytes or less).
3.
Save PSW in EPSW1.
4.
Set ELEVEL of PSW to "1".
5.
Reset the MIE flag to "0".
6.
Set CSR to "0" (not processed if the program memory size is 64 Kbytes or less).
7.
Transfer the value of the interrupt vector address to the program counter (PC).
5.3.2 Non-Maskable Interrupt Processing
When an interrupt occurs, the following process is executed by hardware and the CPU goes to the interrupt routine
regardless of the value of MIE.
1.
Save the program counter (PC) in ELR2.
2.
Save CSR in ECSR2 (not processed if the program memory size is 64 Kbytes or less).
3.
Save PSW fin EPSW2.
4.
Set ELEVEL of PSW to "2".
5.
Set CSR to "0" (not processed if the program memory size is 64 Kbytes or less).
6.
Transfer the value of the interrupt vector address to the program counter (PC).
5.3.3 Software Interrupt Processing
The software interrupt is arbitrarily produced in software.
When the SWI instruction is performed within the program, a software interrupt occurs, the following process is
performed by hardware, and the CPU goes to the software interrupt routine. The vector table is specified with the SWI
instruction.
1.
Save the program counter (PC) in ELR1.
2.
Save CSR in ECSR1 (not processed if the program memory size is 64 Kbytes or less).
3.
Save PSW in EPSW1.
4.
Set ELEVEL of PSW to "1".
5.
Set the MIE flag to "0".
6.
Set CSR to "0" (not processed if the program memory size is 64 Kbytes or less).
7.
Transfer the value of the interrupt vector address to the program counter (PC).
See "nX-U16/100 Core Instruction Manual" for MIE, the program counter (PC), ELR1, CSR, ECSR1, PSW, EPSW1,
ELEVEL, ELR2, ECSR2, EPSW2 and vector table.
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...