– viii –
21.1.1
21.1.2
EDGE DETECTION FOR PINS P20, P25 AND P26 ............................................
EDGE DETECTION FOR PIN P21 ............................................................................
EDGE DETECTION FOR PINS P22 TO P24 .........................................................
CAUTIONS.......................................................................................................................
External Interrupt Mode Registers (INTM0, INTM1) ......................................................
Sampling Clock Selection Register (SCS0) ...................................................................
501
504
505
506
507
508
21.2
21.3
21.4
21.5
CHAPTER 22 INTERRUPT FUNCTIONS ...................................................................................
22.1
INTERRUPT REQUEST SOURCES ............................................................................
22.1.1
Software Interrupts ..........................................................................................................
22.1.2
Operand Error Interrupts .................................................................................................
22.1.3
Non-Maskable Interrupts .................................................................................................
22.1.4
Maskable Interrupts .........................................................................................................
22.2
INTERRUPT SERVICE MODES ..................................................................................
22.2.1
Vectored Interrupt Service...............................................................................................
22.2.2
Macro Service ..................................................................................................................
22.2.3
Context Switching ............................................................................................................
22.3
INTERRUPT SERVICE CONTROL REGISTERS ......................................................
22.3.1
Interrupt Control Registers ..............................................................................................
22.3.2
Interrupt Mask Registers (MK0/MK1L) ...........................................................................
22.3.3
In-Service Priority Register (ISPR) .................................................................................
22.3.4
Interrupt Mode Control Register (IMC) ...........................................................................
22.3.5
Watchdog Timer Mode Register (WDM) ........................................................................
22.3.6
Program Status Word (PSW) ..........................................................................................
22.4
SOFTWARE INTERRUPT ACKNOWLEDGMENT OPERATIONS...........................
22.4.1
BRK Instruction Software Interrupt Acknowledgment Operation ..................................
22.4.2
BRKCS Instruction Software Interrupt (Software Context Switching)
Acknowledgment Operation ............................................................................................
22.5
OPERAND ERROR INTERRUPT ACKNOWLEDGMENT OPERATION ................
22.6
NON-MASKABLE INTERRUPT ACKNOWLEDGMENT OPERATION ....................
22.7
MASKABLE INTERRUPT ACKNOWLEDGMENT OPERATION .............................
22.7.1
Vectored Interruption .......................................................................................................
22.7.2
Context Switching ............................................................................................................
22.7.3
Maskable Interrupt Priority Levels ..................................................................................
22.8
MACRO SERVICE FUNCTION ....................................................................................
22.8.1
Outline of Macro Service Function .................................................................................
22.8.2
Types of Macro Service...................................................................................................
22.8.3
Basic Macro Service Operation ......................................................................................
22.8.4
Operation at End of Macro Service ................................................................................
22.8.5
Macro Service Control Registers ....................................................................................
22.8.6
Macro Service Type A .....................................................................................................
22.8.7
Macro Service Type B .....................................................................................................
22.8.8
Macro Service Type C .....................................................................................................
22.8.9
Counter Mode ..................................................................................................................
22.9
WHEN INTERRUPT REQUESTS AND MACRO SERVICE ARE
TEMPORARILY HELD PENDING................................................................................
22.10 INSTRUCTIONS WHOSE EXECUTION IS TEMPORARILY
SUSPENDED BY AN INTERRUPT OR MACRO SERVICE ...................................
509
510
512
512
512
512
513
513
513
513
514
517
521
523
524
525
526
526
526
527
528
529
533
535
535
537
543
543
543
546
547
550
553
558
563
577
579
581