NEC V850/SA1 mPD703015 Preliminary User's Manual page 128

32-/16-bit single-chip microcontrollers
Table of Contents

Advertisement

(1) To accept maskable interrupts in service program
Service program of maskable interrupt or exception
...
...
• Saves EIPC to memory or register
• Saves EIPSW to memory or register
• EI instruction (enables interrupt acceptance)
...
...
...
...
• DI instruction (disables interrupt acceptance)
• Restores saved value to EIPSW
• Restores saved value to EIPC
• RETI instruction
(2) To generate exception in service program
Service program of maskable interrupt or exception
...
...
• Saves EIPC to memory or register
• Saves EIPSW to memory or register
• EI instruction (enables interrupt acceptance)
...
• TRAP instruction
• Illegal op code
...
• Restores saved value to EIPSW
• Restores saved value to EIPC
• RETI instruction
128
CHAPTER 5
INTERRUPT/EXCEPTION PROCESSING FUNCTION
←Accepts interrupt such as INTP input
← Accepts exception such as TRAP instruction
← Accepts exception such as illegal op code

Advertisement

Table of Contents
loading

Table of Contents